3 Meta: There should always be a single release engineer to disambiguate responsibility.
7 Check all of the following:
9 - All dependencies have been updated as appropriate:
14 - libsnark (upstream of our fork)
19 ## A. Define the release version as:
21 $ ZCASH_RELEASE=MAJOR.MINOR.REVISION(-BUILD_STRING)
25 $ ZCASH_RELEASE=1.0.0-beta2
27 Also, the following commands use the `ZCASH_RELEASE_PREV` bash variable for the
30 $ ZCASH_RELEASE_PREV=1.0.0-beta1
32 ## B. Create a new release branch / github PR
33 ### B1. Update (commit) version in sources
38 contrib/gitian-descriptors/gitian-linux.yml
40 In `configure.ac` and `clientversion.h`:
42 - Increment `CLIENT_VERSION_BUILD` according to the following schema:
44 - 0-24: `1.0.0-beta1`-`1.0.0-beta25`
45 - 25-49: `1.0.0-rc1`-`1.0.0-rc25`
47 - 51-99: `1.0.0-1`-`1.0.0-49`
48 - (`CLIENT_VERSION_REVISION` rolls over)
49 - 0-24: `1.0.1-beta1`-`1.0.1-beta25`
51 - Change `CLIENT_VERSION_IS_RELEASE` to false while Zcash is in beta-test phase.
53 If this release changes the behavior of the protocol or fixes a serious bug, we may
54 also wish to change the `PROTOCOL_VERSION` in `version.h`.
56 Commit these changes. (Be sure to do this before building, or else the built binary will include the flag `-dirty`)
58 Build by running `./zcutil/build.sh`.
60 Then perform the following command:
62 $ bash contrib/devtools/gen-manpages.sh
66 ### B2. Write release notes
68 Run the release-notes.py script to generate release notes and update authors.md file. For example:
70 $ python zcutil/release-notes.py --version $ZCASH_RELEASE
72 Add the newly created release notes to the Git repository:
74 $ git add doc/release-notes/release-notes-$ZCASH_RELEASE.md
76 Update the Debian package changelog:
78 export DEBVERSION="${ZCASH_RELEASE}"
80 export DEBFULLNAME="${DEBFULLNAME:-Zcash Company}"
82 dch -v $DEBVERSION -D jessie -c contrib/debian/changelog
84 (`dch` comes from the devscripts package.)
86 ### B3. Change the network magics
88 If this release breaks backwards compatibility, change the network magic
89 numbers. Set the four `pchMessageStart` in `CTestNetParams` in `chainparams.cpp`
92 ### B4. Merge the previous changes
94 Do the normal pull-request, review, testing process for this release PR.
96 ## C. Verify code artifact hosting
98 ### C1. Ensure depends tree is working
100 https://ci.z.cash/builders/depends-sources
102 ### C2. Ensure public parameters work
104 Run `./fetch-params.sh`.
106 ## D. Make tag for the newly merged result
108 Checkout master and pull the latest version to ensure master is up to date with the release PR which was merged in before.
110 Check the last commit on the local and remote versions of master to make sure they are the same.
112 Then create the git tag:
114 $ git tag -s v${ZCASH_RELEASE}
115 $ git push origin v${ZCASH_RELEASE}
119 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:
121 * builds Zcash based on the specified branch
122 * deploys it as a public service (e.g. betatestnet.z.cash, mainnet.z.cash)
123 * 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
124 * possible manual steps: blowing away the `testnet3` dir, deleting old parameters, restarting DNS seeder
126 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.
128 ## F. Update the 1.0 User Guide
130 ## G. Publish the release announcement (blog, zcash-dev, slack)
132 ### G1. Check in with users who opened issues that were resolved in the release
134 Contact all users who opened `user support` issues that were resolved in the release, and ask them if the release fixes or improves their issue.
136 ## H. Make and deploy deterministic builds
138 - Run the [Gitian deterministic build environment](https://github.com/zcash/zcash-gitian)
139 - Compare the uploaded [build manifests on gitian.sigs](https://github.com/zcash/gitian.sigs)
140 - If all is well, the DevOps engineer will build the Debian packages and update the
141 [apt.z.cash package repository](https://apt.z.cash).
148 * thorough pre-release testing (presumably more thorough than standard PR tests)
150 * automated release deployment (e.g.: updating build-depends mirror, deploying testnet, etc...)