Skip to content

Commit 93e86be

Browse files
committed
suggestions
1 parent e596fa5 commit 93e86be

File tree

1 file changed

+74
-49
lines changed

1 file changed

+74
-49
lines changed

doc/release-process.md

Lines changed: 74 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ Before every minor and major release:
1111
* [ ] Update DIPs with any changes introduced by this release (see [this pull request](https://github.com/dashpay/dips/pull/142) for an example)
1212
* [ ] Update version in `configure.ac` (don't forget to set `CLIENT_VERSION_IS_RELEASE` to `true`) (don't forget to set `CLIENT_VERSION_RC` to `0`)
1313
* [ ] Write release notes (see below)
14-
* [ ] Update `src/chainparams.cpp` nMinimumChainWork with information from the getblockchaininfo rpc.
15-
* [ ] Update `src/chainparams.cpp` defaultAssumeValid with information from the getblockhash rpc.
14+
* [ ] Update `src/chainparams.cpp` `nMinimumChainWork` with information from the `getblockchaininfo` rpc.
15+
* [ ] Update `src/chainparams.cpp` `defaultAssumeValid` with information from the `getblockhash` rpc.
1616
- The selected value must not be orphaned so it may be useful to set the value two blocks back from the tip.
1717
- Testnet should be set some tens of thousands back from the tip due to reorgs there.
18-
- This update should be reviewed with a reindex-chainstate with assumevalid=0 to catch any defect
19-
that causes rejection of blocks in the past history.
18+
- This update should be reviewed with a `reindex-chainstate` with `assumevalid=0` to catch any defect
19+
that causes rejection of blocks in the past history.
2020
* [ ] Ensure all TODOs are evaluated and resolved if needed
2121
* [ ] Verify Insight works
2222
* [ ] Verify p2pool works (unmaintained; no responsible party)
@@ -26,8 +26,8 @@ Before every minor and major release:
2626
Before every major release:
2727

2828
* [ ] Update hardcoded [seeds](/contrib/seeds/README.md), see [this pull request](https://github.com/dashpay/dash/pull/5692) for an example.
29-
* [ ] Update [`src/chainparams.cpp`](/src/chainparams.cpp) m_assumed_blockchain_size and m_assumed_chain_state_size with the current size plus some overhead (see [this](#how-to-calculate-m_assumed_blockchain_size-and-m_assumed_chain_state_size) for information on how to calculate them).
30-
* [ ] Update `src/chainparams.cpp` chainTxData with statistics about the transaction count and rate. Use the output of the RPC `getchaintxstats`, see
29+
* [ ] Update [`src/chainparams.cpp`](/src/chainparams.cpp) `m_assumed_blockchain_size` and `m_assumed_chain_state_size` with the current size plus some overhead (see [this](#how-to-calculate-m_assumed_blockchain_size-and-m_assumed_chain_state_size) for information on how to calculate them).
30+
* [ ] Update `src/chainparams.cpp` `chainTxData` with statistics about the transaction count and rate. Use the output of the RPC `getchaintxstats`, see
3131
[this pull request](https://github.com/dashpay/dash/pull/5692) for an example. Reviewers can verify the results by running `getchaintxstats <window_block_count> <window_last_block_hash>` with the `window_block_count` and `window_last_block_hash` from your output.
3232

3333
### First time / New builders
@@ -37,24 +37,32 @@ Install Guix using one of the installation methods detailed in
3737

3838
Check out the source code in the following directory hierarchy.
3939

40-
cd /path/to/your/toplevel/build
41-
git clone https://github.com/dashpay/guix.sigs.git
42-
git clone https://github.com/dashpay/dash-detached-sigs.git
43-
git clone https://github.com/dashpay/dash.git
40+
```sh
41+
cd /path/to/your/toplevel/build
42+
git clone https://github.com/dashpay/guix.sigs.git
43+
git clone https://github.com/dashpay/dash-detached-sigs.git
44+
git clone https://github.com/dashpay/dash.git
45+
```
4446

4547
### Dash Core maintainers/release engineers, suggestion for writing release notes
4648

4749
Write release notes. git shortlog helps a lot, for example:
4850

49-
git shortlog --no-merges v(current version, e.g. 19.3.0)..v(new version, e.g. 20.0.0)
51+
```sh
52+
git shortlog --no-merges v(current version, e.g. 19.3.0)..v(new version, e.g. 20.0.0)
53+
```
5054

5155
Generate list of authors:
5256

53-
git log --format='- %aN' v(current version, e.g. 19.3.0)..v(new version, e.g. 20.0.0) | sort -fiu
57+
```sh
58+
git log --format='- %aN' v(current version, e.g. 19.3.0)..v(new version, e.g. 20.0.0) | sort -fiu
59+
```
5460

5561
Tag version (or release candidate) in git
5662

57-
git tag -s v(new version, e.g. 20.0.0)
63+
```sh
64+
git tag -s v(new version, e.g. 20.0.0)
65+
```
5866

5967
### Setup and perform Guix builds
6068

@@ -99,7 +107,7 @@ Follow the relevant Guix README.md sections:
99107

100108
### Next steps:
101109

102-
Commit your signature to guix.sigs:
110+
Commit your signature to `guix.sigs`:
103111

104112
```sh
105113
pushd guix.sigs
@@ -115,31 +123,41 @@ Codesigner only: Create Windows/macOS detached signatures:
115123

116124
Codesigner only: Sign the macOS binary:
117125

118-
transfer dashcore-osx-unsigned.tar.gz to macOS for signing
126+
* Transfer `dashcore-osx-unsigned.tar.gz` to macOS for signing
127+
* Extract and sign:
128+
129+
```sh
119130
tar xf dashcore-osx-unsigned.tar.gz
120131
./detached-sig-create.sh -s "Key ID" -o runtime
121-
Enter the keychain password and authorize the signature
122-
Move signature-osx.tar.gz back to the guix-build host
132+
```
133+
134+
* Enter the keychain password and authorize the signature
135+
* Move `signature-osx.tar.gz` back to the guix-build host
123136

124137
Codesigner only: Sign the windows binaries:
125138

139+
* Extract and sign:
140+
141+
```sh
126142
tar xf dashcore-win-unsigned.tar.gz
127143
./detached-sig-create.sh -key /path/to/codesign.key
128-
Enter the passphrase for the key when prompted
129-
signature-win.tar.gz will be created
144+
```
145+
146+
* Enter the passphrase for the key when prompted
147+
* `signature-win.tar.gz` will be created
130148

131149
Codesigner only: Commit the detached codesign payloads:
132150

133151
```sh
134152
pushd ~/dashcore-detached-sigs
135153
# checkout the appropriate branch for this release series
154+
git checkout "v${VERSION}"
136155
rm -rf *
137156
tar xf signature-osx.tar.gz
138157
tar xf signature-win.tar.gz
139158
git add -A
140-
git commit -m "point to ${VERSION}"
141-
git tag -s "v${VERSION}" HEAD
142-
git push the current branch and new tag
159+
git commit -m "add detached sigs for win/osx for ${VERSION}"
160+
git push
143161
popd
144162
```
145163

@@ -164,18 +182,20 @@ popd
164182
### After 3 or more people have guix-built and their results match:
165183

166184
* [ ] Combine the `all.SHA256SUMS.asc` file from all signers into `SHA256SUMS.asc`:
167-
```bash
168-
cat "$VERSION"/*/all.SHA256SUMS.asc > SHA256SUMS.asc
169-
```
185+
186+
```sh
187+
cat "$VERSION"/*/all.SHA256SUMS.asc > SHA256SUMS.asc
188+
```
189+
170190
* [ ] GPG sign each download / binary
171-
* [ ] Upload zips and installers, as well as SHA256SUMS.asc from last step, to GitHub as GitHub draft release.
191+
* [ ] Upload zips and installers, as well as `SHA256SUMS.asc` from last step, to GitHub as GitHub draft release.
172192
1. The contents of each `./dash/guix-build-${VERSION}/output/${HOST}/` directory, except for
173193
`*-debug*` files.
174194

175-
Guix will output all of the results into host subdirectories, but the SHA256SUMS
195+
Guix will output all of the results into host subdirectories, but the `SHA256SUMS`
176196
file does not include these subdirectories. In order for downloads via torrent
177197
to verify without directory structure modification, all of the uploaded files
178-
need to be in the same directory as the SHA256SUMS file.
198+
need to be in the same directory as the `SHA256SUMS` file.
179199

180200
The `*-debug*` files generated by the guix build contain debug symbols
181201
for troubleshooting by developers. It is assumed that anyone that is
@@ -190,34 +210,37 @@ cat "$VERSION"/*/all.SHA256SUMS.asc > SHA256SUMS.asc
190210
2. The `SHA256SUMS` file
191211

192212
3. The `SHA256SUMS.asc` combined signature file you just created
193-
* [ ] Validate SHA256SUMS.asc and all binaries attached to GitHub draft release are correct
213+
* [ ] Validate `SHA256SUMS.asc` and all binaries attached to GitHub draft release are correct
194214
* [ ] Notarize macOS binaries
195-
* [ ] Release on GitHub
215+
* [ ] Publish release on GitHub
216+
* [ ] Fast-forward `master` branch on GitHub
196217
* [ ] Update the dash.org download links
197218
* [ ] Ensure that docker hub images are up to date
198219

199220
### Announce the release:
200221

201-
- [ ] Release on Dash forum: https://www.dash.org/forum/topic/official-announcements.54/ (necessary so we have a permalink to use on twitter, reddit, etc.)
202-
- [ ] Prepare product brief (major versions only)
203-
- [ ] Prepare a release announcement tweet
204-
- [ ] Follow-up tweets with any important block heights for consensus changes
205-
- [ ] Post on Reddit
206-
- [ ] Celebrate
222+
* [ ] Release on Dash forum: https://www.dash.org/forum/topic/official-announcements.54/ (necessary so we have a permalink to use on twitter, reddit, etc.)
223+
* [ ] Prepare product brief (major versions only)
224+
* [ ] Prepare a release announcement tweet
225+
* [ ] Follow-up tweets with any important block heights for consensus changes
226+
* [ ] Post on Reddit
227+
* [ ] Celebrate
207228

208229
### After the release:
209-
- [ ] Submit patches to BTCPay to ensure they use latest / compatible version see https://github.com/dashpay/dash/issues/4211#issuecomment-966608207
210-
- [ ] Update Core and User docs (docs.dash.org)
211-
- [ ] Test Docker build runs without error in Dashmate
212-
- [ ] Add new Release Process items to repo [Release Process](release-process.md) document
230+
* [ ] Submit patches to BTCPay to ensure they use latest / compatible version see https://github.com/dashpay/dash/issues/4211#issuecomment-966608207
231+
* [ ] Update Core and User docs (docs.dash.org)
232+
* [ ] Test Docker build runs without error in Dashmate
233+
* [ ] Add new Release Process items to repo [Release Process](release-process.md) document
234+
* [ ] Merge `master` branch back into `develop` so that `master` could be fast-forwarded on next release again
213235

214236
### MacOS Notarization
215237

216238
#### Prerequisites
217239
Make sure you have the latest Xcode installed on your macOS device. You can download it from the Apple Developer website.
218240
You should have a valid Apple Developer ID under the team you are using which is necessary for the notarization process.
219-
To avoid including your password as cleartext in a notarization script, you can provide a reference to a keychain item. You can add a new keychain item named AC_PASSWORD from the command line using the notarytool utility:
220-
```
241+
To avoid including your password as cleartext in a notarization script, you can provide a reference to a keychain item. You can add a new keychain item named `AC_PASSWORD` from the command line using the `notarytool` utility:
242+
243+
```sh
221244
xcrun notarytool store-credentials "AC_PASSWORD" --apple-id "AC_USERNAME" --team-id <WWDRTeamID> --password <secret_2FA_password>
222245
```
223246

@@ -226,25 +249,27 @@ Open Terminal, and navigate to the location of the .dmg file.
226249

227250
Then, run the following command to notarize the .dmg file:
228251

229-
```
252+
```sh
230253
xcrun notarytool submit dashcore-{version}-{x86_64, arm64}-apple-darwin.dmg --keychain-profile "AC_PASSWORD" --wait
231254
```
232-
Replace "{version}" with the version you are notarizing. This command uploads the .dmg file to Apple's notary service.
233255

234-
The --wait option makes the command wait to return until the notarization process is complete.
256+
Replace `{version}` with the version you are notarizing. This command uploads the .dmg file to Apple's notary service.
257+
258+
The `--wait` option makes the command wait to return until the notarization process is complete.
235259
236260
If the notarization process is successful, the notary service generates a log file URL. Please save this URL, as it contains valuable information regarding the notarization process.
237261
238262
#### Notarization Validation
239263
240-
After successfully notarizing the .dmg file, extract "Dash-Qt.app" from the .dmg.
264+
After successfully notarizing the .dmg file, extract `Dash-Qt.app` from the .dmg.
241265
To verify that the notarization process was successful, run the following command:
242266
243-
```
267+
```sh
244268
spctl -a -vv -t install Dash-Qt.app
245269
```
246-
Replace "Dash-Qt.app" with the path to your .app file. This command checks whether your .app file passes Gatekeeper’s
247-
checks. If the app is successfully notarized, the command line will include a line stating source=Notarized Developer ID.
270+
271+
Replace `Dash-Qt.app` with the path to your .app file. This command checks whether your .app file passes Gatekeeper’s
272+
checks. If the app is successfully notarized, the command line will include a line stating `source=<Notarized Developer ID>`.
248273
249274
### Additional information
250275

0 commit comments

Comments
 (0)