Release Checklist
Release checklist
Here's a checklist for the release process.
Branches
There is no merge freeze: master stays open for the whole release cycle.
- Each release gets a
release-<VERSION>branch, created frommasterwhen rc1 is prepared. Every rc and the final release are tagged on it. - The rcN and final PRs target
release-<VERSION>, notmaster. - Fixes for the release land on
masterfirst, then are cherry-picked intorelease-<VERSION>with a PR against that branch. - After each rc and the final release, open a PR against
masterthat cherry-picks theCHANGELOG.mdandupdate-versionschanges fromrelease-<VERSION>, somasterstays up to date for the next release.
Leading Up To The Release
- Talk to team about whether there are any changes which MUST be in rc1.
- Look through outstanding issues, to identify any problems that might be necessary to fixup before the release. Good candidates are reports of the project not building on different architectures or crashes.
- Identify a good lead for each outstanding issue, and ask them about a fix timeline.
- Create a milestone for the next release on Github, and go though open issues and PRs and mark accordingly.
- Ask (via email) the most significant contributor who has not already named a release to name the release (use
devtools/credit --verbose v<PREVIOUS-VERSION>to find this contributor). CC previous namers and team.
Preparing for -rc1
- Create the
release-<VERSION>branch frommasterand push it to the ElementsProject repository. - Make sure any
CHANGELOG.mdchanges from point releases have been imported. - Use
devtools/changelog.pyto collect the changelog entries from pull request commit messages and merge them into the manually maintainedCHANGELOG.md. This does API queries to GitHub, which are severely ratelimited unless you use an API token: set theGH_TOKENenvironment variable to a Personal Access Token from https://github.com/settings/tokens - Check that
CHANGELOG.mdis well formatted, ordered in areas, covers all significant changes, and sub-ordered approximately by user impact & coolness. - Manually remove any entries which were mentioned for in the previous point releases (they will be duplicates!). Do the same for fixes that were cherry-picked into the previous release's rcs and final: they land on
masterwith different commit ids, sodevtools/changelog.pycollects them again. - Create a new CHANGELOG.md heading to
v<VERSION>rc1, and create a link at the bottom. Note that you should exactly copy the date and name format from a previous release, as the release tooling parses the date from it. - Update the package versions:
uv run make update-versions NEW_VERSION=v<VERSION>rc1 - Create a PR with the above, targeting
release-<VERSION>.
Releasing -rc1
- Merge the above PR.
- Check out
release-<VERSION>at the merged commit and tag it:git tag -s v<VERSION>rc1. Note that you should get a prompt to give this tag a 'message'. Make sure you fill this in. - Confirm that the tag will show up for builds with
git describe. Do not push the tag:tools/reprobuild publishpushes it, last, once everything else has gone out. - Build and sign the release locally:
tools/reprobuild all. This is the whole build: three static tarballs, the source zip, the multi-arch image and the signed manifest, and it needs only docker, coreutils and python3. Every rc is a rehearsal of the release flow, so do not skip it. The signing key has to answer before the build starts, so that an hour of building cannot end on a key nobody can reach. If you would rather not sit next to the machine for that hour, add--wait-for-key: the build then runs unattended and waits (30 minutes by default,--wait-for-key=SECONDSto change it) once it has something to sign, so you only need to plug in and unlock the smartcard at the end. It polls the key rather than waiting for a keypress, so this works for a detached run whose log you are tailing. - Send
SHA256SUMS-v<VERSION>rc1and your signature to the co-signers. They runtools/reprobuild verify SHA256SUMS-v<VERSION>rc1, which rebuilds from the commit and timestamp the manifest names, and send backSHA256SUMS-v<VERSION>rc1.asc.<keyid>. - Put their signatures next to yours in
release/and check each one withgpg --verify SHA256SUMS-v<VERSION>rc1.asc.<keyid> SHA256SUMS-v<VERSION>rc1. Always pass the manifest as the second argument, orgpgmay verify a payload embedded in the.ascand exit successfully without reading the checksums. Three good signatures (yours plus two co-signers', distinct keys fromcontrib/keys/) are required before publishing, rcs included;publishchecks. - Disable the "Release 🚀" workflow (
gh workflow disable "Release 🚀"): pushing a tag would otherwise publish the pyln modules on its own schedule, andpublishrefuses while it is enabled. - Publish the rc:
tools/reprobuild publish. That is the whole publication: tarballs, manifest, signatures and the source zip to the download host, the multi-arch image to Docker Hub, the tag to GitHub, and the GitHub release as a draft.latestis never applied to an rc. - Re-enable the "Release 🚀" workflow (
gh workflow enable "Release 🚀") and publish the pyln modules to test PyPI by hand, since the tag push did not trigger it:gh workflow run "Release 🚀" --ref v<VERSION>rc1 -f version=v<VERSION>rc1 -f dist-location=test. Check that the modules appear onhttps://test.pypi.org/project/pyln-*/#history. - Use
devtools/credit --markdown v<PREVIOUS-VERSION>to generate a single contributor list for the release notes. Usedevtools/credit --verbose v<PREVIOUS-VERSION>for namer selection and detailed annotations. - Prepare release notes draft including the contributor list from above, and share with the team for editing.
- Publish the GitHub pre-release (change it from draft to public).
- Announce rc1 release on core-lightning's release-chat channel on Discord & Telegram.
- Upgrade your personal nodes to the rc1, to help testing.
- Open a PR against
masterthat cherry-picks the rc1CHANGELOG.mdandupdate-versionscommit.
Releasing -rc2, ..., -rcN
- Make sure every fix meant for this rc has landed on
masterand been cherry-picked intorelease-<VERSION>. - Update CHANGELOG.md by changing rc(N-1) to rcN. Update the changelog list with information from the newly cherry-picked PRs also.
- Update the package versions:
uv run make update-versions NEW_VERSION=v<VERSION>rcN - Add a PR with the rcN targeting
release-<VERSION>, and merge it. - Check out
release-<VERSION>at the merged commit and tag it:git tag -s v<VERSION>rcN. Do not push the tag. - Build, co-sign and publish as for rc1 (steps 4 to 9):
tools/reprobuild all, the co-signers'tools/reprobuild verify SHA256SUMS-v<VERSION>rcN, three good signatures, the "Release 🚀" workflow disabled,tools/reprobuild publish, then the workflow re-enabled and the pyln modules published to test PyPI by hand. - Prepare the release notes and publish the GitHub pre-release.
- Announce tagged rc release on core-lightning's release-chat channel on Discord & Telegram.
- Upgrade your personal nodes to the rcN.
- Open a PR against
masterthat cherry-picks the rcNCHANGELOG.mdandupdate-versionscommit.
Tagging the Release
- Make sure every fix meant for the release has landed on
masterand been cherry-picked intorelease-<VERSION>. - Update CHANGELOG.md: remove -rcN in both places, update the date, and add the title and namer.
- Update project-wide package versions:
uv run make update-versions NEW_VERSION=v<VERSION> - Create a PR with above changes, targeting
release-<VERSION>. - After the PR is merged, check out
release-<VERSION>at the merged commit and create a signed, annotated tag:git tag -a -s v<VERSION> -m "v<VERSION>". Do not push the tag:tools/reprobuild publishpushes it, last, once everything else has gone out and been verified. - Build and sign everything:
tools/reprobuild all. It ends withSHA256SUMS-v<VERSION>, signed with your key. The build takes 1–2 hours for all three architectures. - Send the manifest and your signature to the co-signers. They run
tools/reprobuild verify SHA256SUMS-v<VERSION>, which rebuilds from the commit and timestamp the manifest names, and send backSHA256SUMS-v<VERSION>.asc.<keyid>. - Put their signatures next to yours in
release/and check each one withgpg --verify SHA256SUMS-v<VERSION>.asc.<keyid> SHA256SUMS-v<VERSION>. Always pass the manifest as the second argument, orgpgmay verify a payload embedded in the.ascand exit successfully without reading the checksums. Three good signatures (yours plus two co-signers', distinct keys fromcontrib/keys/) are required before publishing;publishchecks. - Run the acceptance suite if you have not since certifying:
tools/reprobuild accept. It runs the portability matrix and the two-tree probe;tools/reprobuild certifyis the fuller version that rebuilds everything from source without the binary cache. - Disable the "Release 🚀" workflow (
gh workflow disable "Release 🚀");publishrefuses while it is enabled. - Publish:
tools/reprobuild publish, ortools/reprobuild publish --latestif this release should also becomelateston Docker Hub. This uploads the artifacts and the source zip, reads them back and checks them against the signed manifest, pushes the images, pushes the tag and creates the GitHub release as a draft, in that order, so the irreversible step comes last. Docker images are published here; there is nothing to trigger in CI.
Performing the Release
- Check that the GitHub release draft reads the way you want, and publish it.
- Re-enable the "Release 🚀" workflow (
gh workflow enable "Release 🚀") and publish the pyln modules to pypi.org by hand, since the tag push did not trigger it:gh workflow run "Release 🚀" --ref v<VERSION> -f version=v<VERSION> -f dist-location=prod. Check that the modules appear onhttps://pypi.org/project/pyln-*. If the workflow fails, publish them manually withuv run make pyln-release. This requires keys for each of thepyln-client,pyln-proto, andpyln-testingmodules to be accessible to uv. You can set the key as an environment variable and build and publish each pyln release independently:export UV_PUBLISH_TOKEN=<pyln-client token>uv run make pyln-release-client- ... repeat for each pyln package with the appropriate token.
- Announce the final release on core-lightning's release-chat channel on Discord & Telegram.
- Write release blog, post it on Blockstream and announce the release on Twitter.
Post-release
- Open a PR against
masterthat cherry-picks the finalCHANGELOG.mdandupdate-versionscommit fromrelease-<VERSION>. - Create a PR to update:
Makefile: variables CLN_NEXT_VERSION and CLN_PREV_VERSION (this may break tests as deprecated things are disabled!)tools/lightning-downgrade.c: to downgrade to the just-released version..github/workflows/ci.yaml: change old-cln to download the just-released version..github/PULL_REQUEST_TEMPLATE.md: the rc1 and final release dates for the next release.
- Close out the Milestone for the now-shipped release.
- Update this file with any missing or changed instructions.
- Fetch the latest bolt revision in ../bolts. Then run
./devtools/bolt-catchup.shto update BOLTVERSION in the Makefile and runmake check-bolt-quotes. It may get confused by merges in the BOLTs repository, so you may have to do some manual work. Note: this step may involve a significant amount of work for new spec changes! - Go through
doc/developers-guide/deprecated-features.mdand remove features and code whoseLast Supportedwas the prior version (i.e. now two versions ago: we give one version where the user can usei-promise-to-fix-broken-api-user=FEATURENAMEto re-enable it). Also remove the features from any schemas and other documentation.
Performing the Point (hotfix) Release
- Create a new branch named
release-<VERSION>.<POINT_VERSION>, where each new branch is based on the commit from the previous release tag. For example,release-<VERSION>.1is based onrelease-<VERSION>,release-<VERSION>.2is based onrelease-<VERSION>.1, and so on. - Cherry-pick all necessary commits for the hotfix into the new branch.
- Add entries for changes and fixed issues in
CHANGELOG.mdunder a new heading forv<VERSION>.<POINT_VERSION>. - Update project package versions by running
uv run make update-versions NEW_VERSION=<VERSION>.<POINT_VERSION> - Create a new commit that includes the updates from
update-versionsandCHANGELOG.md. - Tag the release with
git tag -s v<VERSION>.<POINT_VERSION>. You will be prompted to enter a tag message, ensure this is filled out. - Confirm that the tag is properly set up for builds by running
git describe. Do not push the tag by hand;tools/reprobuild publishdoes it. - Build and sign:
tools/reprobuild all. - Send the manifest and your signature to the co-signers, who run
tools/reprobuild verify SHA256SUMS-v<VERSION>.<POINT_VERSION>and send back their detached signatures. - Put their signatures next to yours in
release/; three good ones from distinct committed keys are required before publishing. Check each one withgpg --verify SHA256SUMS-v<VERSION>.<POINT_VERSION>.asc.<keyid> SHA256SUMS-v<VERSION>.<POINT_VERSION>: the manifest must be the second argument, orgpgmay verify a payload embedded in the.ascinstead. - Disable the "Release 🚀" workflow (
gh workflow disable "Release 🚀");publishrefuses while it is enabled. tools/reprobuild publish. Add--latestonly if this point release should becomelateston Docker Hub. It publishes the artifacts and the Docker images, pushes the tag and creates the GitHub release as a draft.- Finalize and publish the release (change it from draft to public).
- Re-enable the "Release 🚀" workflow and publish the pyln modules to pypi.org by hand:
gh workflow run "Release 🚀" --ref v<VERSION>.<POINT_VERSION> -f version=v<VERSION>.<POINT_VERSION> -f dist-location=prod. Check that they appear onhttps://pypi.org/project/pyln-*, or publish them manually withuv run make pyln-release. - Open a PR against
masterthat cherry-picks theCHANGELOG.mdandupdate-versionscommit, to keep it up to date for the next release. - Announce the hotfix release in the core-lightning release-chat channel on Discord and on Telegram.
Updated 2 days ago
Did this page help you?