mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
5053999ff3
Updated release instruction after build-release.sh fixes. Add Docker buildx and QEMU instruction in reproducible
7.1 KiB
7.1 KiB
Release checklist
Here's a checklist for the release process.
Leading Up To The Release
- Talk to team about whether there are any changes which MUST go in this release which may cause delay.
- 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
- Check that
CHANGELOG.md
is well formatted, ordered in areas, covers all signficant changes, and sub-ordered approximately by user impact & coolness. - Use
devtools/changelog.py
to 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_TOKEN
environment variable to a Personal Access Token from https://github.com/settings/tokens - 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 thebuild-release.sh
script relies on this. - Update the contrib/pyln package versions:
make update-pyln-versions NEW_VERSION=<VERSION>
- Create a PR with the above.
Releasing -rc1
- Merge the above PR.
- Tag it
git pull && 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
- Push the tag to remote
git push --tags
. - Announce rc1 release on core-lightning's release-chat channel on Discord & BuildOnL2.
- Use
devtools/credit --verbose v<PREVIOUS-VERSION>
to get commits, days and contributors data for release note. - Prepare draft release notes including information from above step, and share with the team for editing.
- Upgrade your personal nodes to the rc1, to help testing.
- Follow reproducible build for Builder image setup. It will create builder images
cl-repro-<codename>
which are required for the next step. - Run
tools/build-release.sh bin-Fedora-28-amd64 bin-Ubuntu sign
script to prepare required builds for the release. Withbin-Fedora-28-amd64 bin-Ubuntu sign
, it will build a zipfile, a non-reproducible Fedora, reproducible Ubuntu images. Once it is done, the script will sign the release contents and create SHA256SUMS and SHA256SUMS.asc in the release folder. - RC images are not uploaded on Docker. Hence they can be removed from the target list for RC versions. Each docker image takes approx. 90 minutes to bundle but it is highly recommended to test docker setup once, if you haven't done that before. Prior to building docker images, ensure that
multiarch/qemu-user-static
setup is working on your system as described here.
Releasing -rc2, ..., -rcN
- Change rc(N-1) to rcN in CHANGELOG.md.
- Update the contrib/pyln package versions:
make update-pyln-versions NEW_VERSION=<VERSION>
- Add a PR with the rcN.
- Tag it
git pull && git tag -s v<VERSION>rcN && git push --tags
- Announce tagged rc release on core-lightning's release-chat channel on Discord & BuildOnL2.
- Upgrade your personal nodes to the rcN.
Tagging the Release
- Update the CHANGELOG.md; remove -rcN in both places, update the date and add title and namer.
- Update the contrib/pyln package versions:
make update-pyln-versions NEW_VERSION=<VERSION>
- Add a PR with that release.
- Merge the PR, then:
export VERSION=23.05
git pull
git tag -a -s v${VERSION} -m v${VERSION}
git push --tags
- Run
tools/build-release.sh
to: - The tarballs may be owned by root, so revert ownership if necessary:
sudo chown ${USER}:${USER} *${VERSION}*
- Upload the resulting files to github and save as a draft. (https://github.com/ElementsProject/lightning/releases/)
- Send
SHA256SUMS
&SHA256SUMS.asc
files to the rest of the team to check and sign the release. - Team members can verify the release with the help of
build-release.sh
: 9.1 Rename release captain'sSHA256SUMS
toSHA256SUMS-v${VERSION}
andSHA256SUMS.asc
toSHA256SUMS-v${VERSION}.asc
. 9.2 Copy them in the root folder (lightning
). 9.3 Runtools/build-release.sh --verify
. It will create reproducible images, verify checksums and sign. 9.4 Send your signatures fromrelease/SHA256SUMS.new
to release captain. 9.5 Or follow link for manual verification instructions. - Append signatures shared by the team into the
SHA256SUMS.asc
file, verify withgpg --verify SHA256SUMS.asc
and include the file in the draft release. make pyln-release
to upload pyln modules to pypi.org. This requires keys for each of pyln-client, pyln-proto, and pyln-testing accessible to poetry. This can be done by configuring the python keyring library along with a suitable backend. Alternatively, the key can be set as an environment variable and each of the pyln releases can be built and published independently:export POETRY_PYPI_TOKEN_PYPI=<pyln-client token>
make pyln-release-client
- ... repeat for each pyln package.
Performing the Release
- Edit the GitHub draft and include the
SHA256SUMS.asc
file. - Publish the release as not a draft.
- Announce the final release on core-lightning's release-chat channel on Discord & BuildOnL2.
- Send a mail to c-lightning and lightning-dev mailing lists, using the same wording as the Release Notes in github.
- Write release blog, post it on Blockstream and announce the release on Twitter.
Post-release
- Look through PRs which were delayed for release and merge them.
- Close out the Milestone for the now-shipped release.
- Update this file with any missing or changed instructions.