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/DEBIAN/control
39 contrib/gitian-descriptors/gitian-linux.yml
42 In `configure.ac` and `clientversion.h`:
44 - Increment `CLIENT_VERSION_BUILD` according to the following schema:
46 - 0-24: `1.0.0-beta1`-`1.0.0-beta25`
47 - 25-49: `1.0.0-rc1`-`1.0.0-rc25`
49 - 51-99: `1.0.0-1`-`1.0.0-49`
50 - (`CLIENT_VERSION_REVISION` rolls over)
51 - 0-24: `1.0.1-beta1`-`1.0.1-beta25`
53 - Change `CLIENT_VERSION_IS_RELEASE` to false while Zcash is in beta-test phase.
55 ### B2. write release notes
57 git shortlog helps a lot, for example:
59 $ git shortlog --no-merges v${ZCASH_RELEASE_PREV}..HEAD \
60 > ./doc/release-notes/release-notes-${ZCASH_RELEASE}.md
62 Update the Debian package changelog:
64 export DEBVERSION='1.0.0-rc1'
66 export DEBFULLNAME="${DEBFULLNAME:-Zcash Company}"
68 dch -v $DEBVERSION -D jessie -c contrib/DEBIAN/changelog
70 ### B3. change the network magics
72 If this release breaks backwards compatibility, change the network magic
73 numbers. Set the four `pchMessageStart` in `CTestNetParams` in `chainparams.cpp`
76 ### B4. merge the previous changes
78 Do the normal pull-request, review, testing process for this release PR.
80 ## C. Verify code artifact hosting
82 ### C1. Ensure depends tree is working
84 https://ci.z.cash/builders/depends-sources
86 ### C2. Ensure public parameters work
88 Run `./fetch-params.sh`.
90 ## D. make tag for the newly merged result
92 In this example, we ensure master is up to date with the
93 previous merged PR, then:
95 $ git tag -s v${ZCASH_RELEASE}
96 $ git push origin v${ZCASH_RELEASE}
100 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:
102 * builds Zcash based on the specified branch
103 * deploys it as a public service (e.g. betatestnet.z.cash, mainnet.z.cash)
104 * 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
105 * possible manual steps: blowing away the `testnet3` dir, deleting old parameters, restarting DNS seeder
107 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.
109 ## F. publish the release announcement (blog, zcash-dev, slack)
114 * deterministic or reproducible builds
116 * thorough pre-release testing (presumably more thorough than standard PR tests)
118 * release deployment steps (eg: updating build-depends mirror, deploying testnet, etc...)
120 * proper Zcash-specific versions and names in software and documentation.