summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-06-11 12:31:25 -0700
committerTim Smith <tsmith@chef.io>2019-06-11 12:31:25 -0700
commit5e5a57067e672eaea4504bb0dcf7115d565a6bd6 (patch)
tree3a4c07bc8677ff0e23c468d3ae8b10ec5ace34ad
parentc2072098c6f8fffb5d8ba8752f2b3f617c98b27e (diff)
downloadchef-5e5a57067e672eaea4504bb0dcf7115d565a6bd6.tar.gz
Documen how to release Chef
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--RELEASE_NOTES.md1
-rw-r--r--docs/dev/how_to/releasing_chef_infra.md63
2 files changed, 64 insertions, 0 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index bfcac301f4..9e245afd78 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -482,6 +482,7 @@ The windows_certificate resource now imports nested certificates while importing
- ruby 2.5.3 -> 2.5.5
- InSpec 3.7.1 -> 3.9.0
- The unused windows-api gem is no longer bundled with Chef on Windows hosts
+
# Chef Infra Client Release Notes 14.11:
## Updated Resources
diff --git a/docs/dev/how_to/releasing_chef_infra.md b/docs/dev/how_to/releasing_chef_infra.md
new file mode 100644
index 0000000000..2c55271a84
--- /dev/null
+++ b/docs/dev/how_to/releasing_chef_infra.md
@@ -0,0 +1,63 @@
+# Releasing Chef Infra
+
+## Validate we're ready to ship
+
+ 1. Has the version number been bumped for releasing? This can be done by merging in a PR that has the "Expeditor: Bump Version Minor" label applied.
+ 2. Are there any outstanding community PRs that should be merged? Ideally we don't make a community member wait multiple months for a code contribution to ship. Merge anything that's been reviewed.
+ 3. Are new resource "introduced" fields using the correct version? From time to time we incorrectly merge a PR that has the wrong "introduced" version in a new resource or new resource property. If we added new resources or properties make sure these fields match the version we're about to ship.
+ 4. Have any changes in Ohai been shipped to rubygems?
+ 5. Do we have a build in the `current` channel? If not you might wanna fix that.
+
+## Prepare the Release
+
+### Write the release notes
+
+The importance of our release notes cannot be understated. As developers we understand changes between releases and we're accustomed to reading git history. Users are not and if don't call out new functionality they will not find it on their own. We need to take the time and effort to write quality release notes that give a compelling reason to upgrade and also properly warn of any potential breaking changes. Make sure to involve the docs team so we can make sure our English is legible.
+
+#### Overall Release Notes Structure
+
+1. `New Resources`: If we ship new resources we want to make sure to brag about those resources. Use this section to give the elevator pitch for the new resource including an example of how it might be used if available.
+2. `Updated Resources`: It's important to let users know about new functionality in resources they may already be using. Cover any important bug fixes or new properties/actions here.
+3. `Major new features`: Document new features with a high level bullet. This is a great opportunity to show off our work and sell users on new workflows.
+4. `Updated InSpec Releases`: We should always call out the updated InSpec release with a description of new functionality included.
+5. `Security Updates`: Call out any updated components we're shipping with links to the CVEs if available.
+
+### Update the Docs Site
+
+If there are any new or updated resources the docs site will need to be updated. This is a `partially` automated process. If you are making a single resource update or changing wording it may just be easier to do it by hand.
+
+#### Resource Documentation Automation
+
+1. Checkout the `doc_generator` branch in `chef/chef`
+2. Rebase the branch against master
+3. Run `bundle install`
+4. Run `bundle exec ./docs.rb`, which generates resouruce_FOO.rst files in the root of the git repo.
+5. Diff the relevant generated files with the docs site content in the `chef_master/source` directory. The generated files are missing some content such as action descriptions and don't have perfect formatting so this is a bit of an art form.
+
+## Release Chef Infra Client
+
+### Promote the build
+
+Chef employees can promote a build to stable from Slack. This is done with expeditor using a chatops command in the following format:
+
+`/expeditor promote chef/chef:master 15.1.9`
+
+or for a previous release branch:
+
+`/expeditor promote chef/chef:chef-14 14.13.9`
+
+### Announce the Build
+
+We want to make sure to announce the build on Discourse and it's helpful that these announcements come from real people because people like people and not machines. You can copy an previous release announcement and change the version numbers and release notes content.
+
+Also make sure to announce the build in any social media platforms you present on if you feel comfortable doing so. It's great to announce it in `#sous-chefs` and `#general` in Community Slack as well as on Twitter where we tend to get a good response.
+
+### Update homebrew Content
+
+Many of our users consume Chef via Homebrew using our casks. Make sure to update those here: https://github.com/chef/homebrew-chef
+
+### Update Chocolatey Packages
+
+Many Windows users consume our packages via Chocolatey.
+
+Process docs incoming