diff options
author | Tim Smith <tsmith@chef.io> | 2019-06-11 14:51:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-11 14:51:49 -0700 |
commit | 4b42068ff72deb7cb6b3222e0053f5a36e7d7eb5 (patch) | |
tree | 313d4492a34f63ab4452789619232158bc7a16e4 | |
parent | c2072098c6f8fffb5d8ba8752f2b3f617c98b27e (diff) | |
parent | a1dc4a69815c8e4060be021b30dec368b01bc6d9 (diff) | |
download | chef-4b42068ff72deb7cb6b3222e0053f5a36e7d7eb5.tar.gz |
Merge pull request #8649 from chef/releasing_chef
Document how to release Chef
-rw-r--r-- | RELEASE_NOTES.md | 1 | ||||
-rw-r--r-- | docs/dev/design_documents/how_chef_is_tested_and_built.md | 6 | ||||
-rw-r--r-- | docs/dev/how_to/releasing_chef_infra.md | 71 |
3 files changed, 74 insertions, 4 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/design_documents/how_chef_is_tested_and_built.md b/docs/dev/design_documents/how_chef_is_tested_and_built.md index fabcc52891..94fbaa8051 100644 --- a/docs/dev/design_documents/how_chef_is_tested_and_built.md +++ b/docs/dev/design_documents/how_chef_is_tested_and_built.md @@ -1,4 +1,4 @@ -# How Chef is Tested and Built +# How Chef Infra Client is Tested and Built This document describes the process that a change flows through from opened PR to omnibus build in our current channel. @@ -37,6 +37,4 @@ Once the builds complete, Jenkins will move to the test phase where each of thes ## Releasing Chef -Once a build has been blessed by our Jenkins gauntlet and everyone has agreed that we are ready to release, an artifact can be promoted from current to stable channels via Expeditor in Slack: - -``/expeditor promote chef/chef:master 14.6.47`` +Once a build has been blessed by our Jenkins gauntlet and everyone has agreed that we are ready to release, an artifact can be promoted from current to stable channels. For the complete release process see [Releasing Chef Infra Client](../how_to/releasing_chef_infra.md) 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..022cb6d3ef --- /dev/null +++ b/docs/dev/how_to/releasing_chef_infra.md @@ -0,0 +1,71 @@ +# Releasing Chef Infra + +## Steps to validate that we are 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 are 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 are accustomed to reading git history. Users are not, and if we 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 Chef InSpec release and include a description of new functionality. +5. `Security Updates`: Call out any updated components we are shipping and include 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 resource_FOO.rst files in the root of the git repo. +5. Compare 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. It is helpful that these announcements come from real people because people like people and not machines. You can copy a previous release announcement, and change the version numbers and release notes content. + +Also, make sure to announce the build on any social media platforms that you occupy if you feel comfortable doing so. It's great to make an announcement 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. Make sure to update the various version strings and sha checksums here: https://github.com/chef/chocolatey-packages + +Once this is updated, you'll need to build / push the artifact to the Chocolatey site from a Windows host: + 1. `choco pack .\chef-client\chef-client.nuspec` + 2. `choco push .\chef-client.15.1.9.nupkg --key API_KEY_HERE` + +Note: In order to push the artifact, you will need to be added as a maintainer on [Chocolatey.org](https://chocolatey.org/). + +### Relax + +You're done. You have a month to relax. |