Appearance
Releasing
A milestone release (0.9, 1.0, ...) closes a milestone. A patch release (0.9.1, 0.9.2, ...) ships changes that are merged on main and measured. See CONTRIBUTING.md, "Versions and releases".
Steps
Set
CN_VERSIONinsrc/util/cn_base.h.Add the release section to CHANGELOG.md, with its numbers.
Update the README where the numbers changed. Run
make check-claimsandmake publish-check. Then search for the old version (for examplegrep -rn "0\.9\.1" README.md docs) and change each place that still names it as current. The docs read the version fromsrc/util/cn_base.hand the release date from CHANGELOG.md.Run the full tests:
make test, the EEST state, blockchain and engine suites (see CONTRIBUTING.md). Release builds use the defaultARCH(x86-64-v3 with ADX and SHA). Do not setARCH=nativefor a release build or for the release check: a native build can have instructions that the CPUs of users do not have. Examine the release binaries:python3 tools/check_isa.py build/release-pgo-lto/bin/cinder build/release-pgo-lto/bin/statetest. The command must end with status 0.Do the release check on live mainnet (next section). Release only when it passes.
Commit "Release X.Y.Z", tag
vX.Y.Z, push the commit and the tag.Make the source archive and its checksum, and publish the release with the notes below:
git archive --format=tar.gz --prefix=cinder-X.Y.Z/ -o cinder-X.Y.Z.tar.gz vX.Y.Z sha256sum cinder-X.Y.Z.tar.gz > SHA256SUMS gh release create vX.Y.Z --title "Cinder X.Y.Z" --notes-file notes.md cinder-X.Y.Z.tar.gz SHA256SUMSThe archive holds
tools/release-commit.txtwith the commit and its tags (export-substin.gitattributes). A build from the archive then reports the release (web3_clientVersiongivesCinder/vX.Y.Z/...).make testchecks this with a temporary archive (tools/test_gen_build_git.py).Close the issues of the release with a comment that gives the numbers.
Release check
The release build runs for at least one hour on the test instance, on live mainnet, next to reth, before the release. The reference instance stays on the previous release during the check.
Build the release commit (PGO and LTO, the same flags as the reference, the default
ARCH) and start it on the test instance. After a newmake pgo-train, the build must link without a clean build directory: a new profile builds all objects again (tools/test_pgo_rebuild.pyinmake test).For the whole hour, every block is VALID on the test instance and the Engine API mirror shows no INVALID, SYNCING or error answer.
In that hour, run the JSON-RPC comparisons against reth on the test instance with one command:
make rpc-check CINDER=<url of the release build> RETH=<url of reth> MINUTES=60The command runs, at low priority and with read-only calls:
- the scenario matrix (every served method with normal, edge and invalid values, overrides, tracer options and request framing).
- the wide comparison over the newest 50 blocks (
cinder-rpc-diffwith blocks, receipts, logs, state, calls, filters, block traces with each tracer and proofs, andtools/measure/replaydiff.pyfortrace_replayTransactionat several depths). - the JavaScript tracer cases against reth's answers.
It asks every difference again, to rule out a head that moved. It sorts each answer as equal, by design (with the reason) or other. It prints one table and writes
summary.json(inbuild/rpccheck, or inOUT=) for the release notes. The command ends with status 0 only for the verdict PASS: no answer in "other" and no step cut short. The reasons for "by design" are intools/rpccheck/by_design.json. Seetools/rpccheck/README.md.Every difference is either listed as by design on the Differences page (and in
tools/rpccheck/by_design.json), or is a bug. Each answer in "other" is a new difference: find out which one it is. A bug stops the release: it gets an issue, a fix with a test that failed first, a review, and the check starts again.If the release changes the block path, it also needs an interleaved A/B with a 95% interval (CONTRIBUTING.md). The one-hour check does not replace it.
Write the numbers of the check (answers compared, differences, the reasons for each one by design) into the release notes and the CHANGELOG.
Release notes template
## Summary
One to three sentences: what this release does for an operator.
## Update priority
| User | Priority |
|---|---|
| Node operators | low / medium / high |
| JSON-RPC users | low / medium / high |
## Breaking changes
None, or a list (flags, database format, JSON-RPC answers).
## Numbers
The measurement, its date and setup, and a link to the record.
## Known issues
Open issues that a user can meet, with links.
## Full changelog
CHANGELOG.md, section X.Y.Z.