Skip to content

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 ​

  1. Set CN_VERSION in src/util/cn_base.h.

  2. Add the release section to CHANGELOG.md, with its numbers.

  3. Update the README where the numbers changed. Run make check-claims and make publish-check. Then search for the old version (for example grep -rn "0\.9\.1" README.md docs) and change each place that still names it as current. The docs read the version from src/util/cn_base.h and the release date from CHANGELOG.md.

  4. Run the full tests: make test, the EEST state, blockchain and engine suites (see CONTRIBUTING.md). Release builds use the default ARCH (x86-64-v3 with ADX and SHA). Do not set ARCH=native for 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.

  5. Do the release check on live mainnet (next section). Release only when it passes.

  6. Commit "Release X.Y.Z", tag vX.Y.Z, push the commit and the tag.

  7. 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 SHA256SUMS

    The archive holds tools/release-commit.txt with the commit and its tags (export-subst in .gitattributes). A build from the archive then reports the release (web3_clientVersion gives Cinder/vX.Y.Z/...). make test checks this with a temporary archive (tools/test_gen_build_git.py).

  8. 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.

  1. 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 new make pgo-train, the build must link without a clean build directory: a new profile builds all objects again (tools/test_pgo_rebuild.py in make test).

  2. For the whole hour, every block is VALID on the test instance and the Engine API mirror shows no INVALID, SYNCING or error answer.

  3. 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=60

    The 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-diff with blocks, receipts, logs, state, calls, filters, block traces with each tracer and proofs, and tools/measure/replaydiff.py for trace_replayTransaction at 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 (in build/rpccheck, or in OUT=) 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 in tools/rpccheck/by_design.json. See tools/rpccheck/README.md.

  4. 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.

  5. 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.

  6. 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.