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