2013-05-19 21:30:00 -07:00
|
|
|
Release Process
|
|
|
|
====================
|
2016-05-16 22:08:35 -07:00
|
|
|
Meta: There should always be a single release engineer to disambiguate responsibility.
|
2013-05-19 21:30:00 -07:00
|
|
|
|
2022-04-14 15:58:38 -07:00
|
|
|
If this is a hotfix release, please see the [Hotfix Release
|
|
|
|
Process](https://github.com/zcash/zcash/blob/master/doc/hotfix-process.md) documentation
|
|
|
|
before proceeding.
|
2017-08-30 06:19:09 -07:00
|
|
|
|
2016-09-28 17:59:29 -07:00
|
|
|
## Pre-release
|
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
### Github Milestone
|
|
|
|
|
|
|
|
Ensure all goals for the github milestone are met. If not, remove tickets
|
|
|
|
or PRs with a comment as to why it is not included. (Running out of time
|
|
|
|
is a common reason.)
|
|
|
|
|
|
|
|
### Pre-release checklist:
|
|
|
|
|
2022-04-04 09:42:39 -07:00
|
|
|
Check that dependencies are properly hosted.
|
2017-05-22 12:34:00 -07:00
|
|
|
|
2022-04-04 09:42:39 -07:00
|
|
|
Check that there are no surprising performance regressions.
|
2017-05-22 12:34:00 -07:00
|
|
|
|
2016-10-21 22:33:25 -07:00
|
|
|
Update `src/chainparams.cpp` nMinimumChainWork with information from the getblockchaininfo rpc.
|
|
|
|
|
2020-06-24 11:21:42 -07:00
|
|
|
Check that dependencies are up-to-date or have been postponed:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ ./qa/zcash/updatecheck.py
|
|
|
|
```
|
|
|
|
|
2021-11-12 02:02:19 -08:00
|
|
|
If you are missing the `.updatecheck-token` file required to run this script,
|
2021-01-25 12:48:02 -08:00
|
|
|
please ask Taylor or another Zcash developer for a copy, or create an
|
|
|
|
unprivileged personal access token for a github account and save it to the
|
|
|
|
file in the format `username:hex-token`.
|
|
|
|
|
2020-06-24 11:21:42 -07:00
|
|
|
If there are updates that have not been postponed, review their changelogs
|
|
|
|
for urgent security fixes, and if there aren't any, postpone the update by
|
|
|
|
adding a line to `qa/zcash/postponed-updates.txt`.
|
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
### Protocol Safety Checks:
|
2016-09-28 17:59:29 -07:00
|
|
|
|
2017-05-19 17:16:59 -07:00
|
|
|
If this release changes the behavior of the protocol or fixes a serious
|
|
|
|
bug, verify that a pre-release PR merge updated `PROTOCOL_VERSION` in
|
|
|
|
`version.h` correctly.
|
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
If this release breaks backwards compatibility or needs to prevent
|
|
|
|
interaction with software forked projects, change the network magic
|
|
|
|
numbers. Set the four `pchMessageStart` in `CTestNetParams` in
|
|
|
|
`chainparams.cpp` to random values.
|
|
|
|
|
|
|
|
Both of these should be done in standard PRs ahead of the release
|
|
|
|
process. If these were not anticipated correctly, this could block the
|
|
|
|
release, so if you suspect this is necessary, double check with the
|
|
|
|
whole engineering team.
|
2017-03-27 13:05:10 -07:00
|
|
|
|
2017-09-19 14:32:59 -07:00
|
|
|
## Release dependencies
|
|
|
|
|
|
|
|
The release script has the following dependencies:
|
|
|
|
|
|
|
|
- `help2man`
|
|
|
|
- `debchange` (part of the devscripts Debian package)
|
|
|
|
|
|
|
|
You can optionally install the `progressbar2` Python module with pip to have a
|
|
|
|
progress bar displayed during the build process.
|
|
|
|
|
2017-03-27 13:05:10 -07:00
|
|
|
## Release process
|
|
|
|
|
2022-04-14 15:58:38 -07:00
|
|
|
Identify the commit from which the release will be made. This is frequently the current
|
|
|
|
`HEAD` of `master`, but it's also often useful to instead use a release stabilization
|
|
|
|
branch based upon a previous release candidate when producing a release, so that
|
|
|
|
development can proceed unblocked on the `master` branch during the release candidate
|
|
|
|
testing and bug-fixing process.
|
|
|
|
|
|
|
|
In the commands below, <RELEASE> and <RELEASE_PREV> must be prefixed with a v, i.e. v1.0.9
|
|
|
|
(not 1.0.9). <COMMIT_ID> is the `git` hash identifying the commit on which the release
|
|
|
|
branch will be based. It is recommended to use the entire hash value to identify the
|
|
|
|
commit, although a prefix of at least 10 characters is also permitted.
|
2017-08-30 06:19:09 -07:00
|
|
|
|
|
|
|
### Create the release branch
|
|
|
|
|
2022-04-14 15:58:38 -07:00
|
|
|
Run the release script, which will create a branch based upon the specified commit ID,
|
|
|
|
then commit standard automated changes to that branch locally:
|
2013-05-19 21:30:00 -07:00
|
|
|
|
2022-04-14 15:58:38 -07:00
|
|
|
$ ./zcutil/make-release.py <COMMIT_ID> <RELEASE> <RELEASE_PREV> <RELEASE_FROM> <APPROX_RELEASE_HEIGHT>
|
2016-10-01 04:27:50 -07:00
|
|
|
|
2017-12-22 02:13:40 -08:00
|
|
|
Examples:
|
2013-05-19 21:30:00 -07:00
|
|
|
|
2022-04-14 15:58:38 -07:00
|
|
|
$ ./zcutil/make-release.py 600c4acee1 v1.1.0-rc1 v1.0.0 v1.0.0 280300
|
|
|
|
$ ./zcutil/make-release.py b89b48cda1 v1.1.0 v1.1.0-rc1 v1.0.0 300600
|
2017-03-08 11:06:34 -08:00
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
### Create, Review, and Merge the release branch pull request
|
2017-02-17 13:33:11 -08:00
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
Review the automated changes in git:
|
2017-02-17 13:33:11 -08:00
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
$ git log master..HEAD
|
2016-10-14 09:57:58 -07:00
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
Push the resulting branch to github:
|
2016-10-14 09:57:58 -07:00
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
$ git push 'git@github.com:$YOUR_GITHUB_NAME/zcash' $(git rev-parse --abbrev-ref HEAD)
|
2016-10-14 09:57:58 -07:00
|
|
|
|
2022-04-14 15:58:38 -07:00
|
|
|
Then create the PR on github. Complete the standard review process and wait
|
|
|
|
for CI to complete.
|
2016-06-16 18:46:43 -07:00
|
|
|
|
2022-04-14 15:58:38 -07:00
|
|
|
## Make tag for the the tip of the release branch
|
2013-05-19 21:30:00 -07:00
|
|
|
|
2022-04-14 15:58:38 -07:00
|
|
|
NOTE: This has changed from the previously recommended process. The tag should be created
|
|
|
|
at the tip of the release branch; this ensures that any changes made to the `master`
|
|
|
|
branch since the initiation of the release process are not accidentally tagged as being
|
|
|
|
part of the release as a consequence of having been included in a merge commit.
|
2014-05-13 16:23:22 -07:00
|
|
|
|
2022-04-14 15:58:38 -07:00
|
|
|
Check the last commit on the local and remote versions of the release branch to make sure
|
|
|
|
they are the same:
|
2015-10-17 03:10:45 -07:00
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
$ git log -1
|
2016-05-16 22:08:35 -07:00
|
|
|
|
2019-07-31 08:16:17 -07:00
|
|
|
If you haven't previously done so, set the gpg key id you intend to use for signing:
|
|
|
|
|
|
|
|
git config --global user.signingkey <keyid>
|
|
|
|
|
2019-07-31 08:16:17 -07:00
|
|
|
Then create the git tag. The `-s` means the release tag will be signed.
|
|
|
|
Enter "Release <version>." and save when prompted for a commit message.
|
|
|
|
**CAUTION:** Remember the `v` at the beginning here:
|
2013-05-19 21:30:00 -07:00
|
|
|
|
2022-04-04 09:42:39 -07:00
|
|
|
$ git tag -s v1.1.0
|
|
|
|
$ git push origin v1.1.0
|
2017-03-08 11:06:34 -08:00
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
## Make and deploy deterministic builds
|
2017-03-08 11:06:34 -08:00
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
- Run the [Gitian deterministic build environment](https://github.com/zcash/zcash-gitian)
|
|
|
|
- Compare the uploaded [build manifests on gitian.sigs](https://github.com/zcash/gitian.sigs)
|
|
|
|
- If all is well, the DevOps engineer will build the Debian packages and update the
|
|
|
|
[apt.z.cash package repository](https://apt.z.cash).
|
2015-10-17 03:10:45 -07:00
|
|
|
|
2017-09-12 04:05:02 -07:00
|
|
|
## Add release notes to GitHub
|
|
|
|
|
|
|
|
- Go to the [GitHub tags page](https://github.com/zcash/zcash/tags).
|
|
|
|
- Click "Add release notes" beside the tag for this release.
|
|
|
|
- Copy the release blog post into the release description, and edit to suit
|
|
|
|
publication on GitHub. See previous release notes for examples.
|
|
|
|
- Click "Publish release" if publishing the release blog post now, or
|
|
|
|
"Save draft" to store the notes internally (and then return later to publish
|
|
|
|
once the blog post is up).
|
|
|
|
|
|
|
|
Note that some GitHub releases are marked as "Verified", and others as
|
|
|
|
"Unverified". This is related to the GPG signature on the release tag - in
|
|
|
|
particular, GitHub needs the corresponding public key to be uploaded to a
|
|
|
|
corresponding GitHub account. If this release is marked as "Unverified", click
|
|
|
|
the marking to see what GitHub wants to be done.
|
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
## Post Release Task List
|
2016-08-25 13:21:33 -07:00
|
|
|
|
2022-04-14 15:58:38 -07:00
|
|
|
### Merge the release branch
|
|
|
|
|
|
|
|
Merge the release branch back to `master` to ensure that any changes made during
|
|
|
|
release stabilization are reflected in the master branch's history.
|
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
### Deploy testnet
|
2016-10-03 11:06:36 -07:00
|
|
|
|
2022-04-14 15:58:38 -07:00
|
|
|
Notify the Zcash DevOps engineer/sysadmin that the release has been tagged. They update
|
|
|
|
some variables in the company's automation code and then run an Ansible playbook, which:
|
2016-10-03 11:06:36 -07:00
|
|
|
|
|
|
|
* builds Zcash based on the specified branch
|
|
|
|
* deploys it as a public service (e.g. betatestnet.z.cash, mainnet.z.cash)
|
2022-04-14 15:58:38 -07:00
|
|
|
* often the same server can be re-used, and the role idempotently handles upgrades, but if
|
|
|
|
not then they also need to update DNS records
|
|
|
|
* possible manual steps: blowing away the `testnet3` dir, deleting old parameters,
|
|
|
|
restarting DNS seeder
|
2016-10-04 15:46:18 -07:00
|
|
|
|
2022-04-14 15:58:38 -07:00
|
|
|
Then, verify that nodes can connect to the testnet server, and update the guide on the
|
|
|
|
wiki to ensure the correct hostname is listed in the recommended zcash.conf.
|
2016-10-03 11:06:36 -07:00
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
### Update the 1.0 User Guide
|
2015-10-17 03:10:45 -07:00
|
|
|
|
2017-09-18 00:34:34 -07:00
|
|
|
This also means updating [the translations](https://github.com/zcash/zcash-docs).
|
|
|
|
Coordinate with the translation team for now. Suggestions for improving this
|
|
|
|
part of the process should be added to #2596.
|
|
|
|
|
2017-09-12 04:05:02 -07:00
|
|
|
### Publish the release announcement (blog, github, zcash-dev, slack)
|
2014-12-11 15:53:24 -08:00
|
|
|
|
2017-05-22 12:34:00 -07:00
|
|
|
## Celebrate
|