-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Meta
- Release owner: @galargh
- Release reviewer: @ajnavarro
- Expected RC date:
2022-09-222022-09-26 - Expected final release date:
2022-09-292022-10-032022-10-04 - Accompanying PR for improving the release process: docs: init release issue template improvement process v0.16.0 #9283
See the Kubo release process for more info.
Kubo 0.16.0 Release
We're happy to announce Kubo 0.16.0, bla bla...
As usual, this release includes important fixes, some of which may be critical for security. Unless the fix addresses a bug being exploited in the wild, the fix will not be called out in the release notes. Please make sure to update ASAP. See our release process for details.
🗺 What's left for release
- fix: require IPNS V2 signatures #9265
- feat(cmds/add): --to-files option as files cp #8927
- chore: bump go-libp2p v0.23.1 #9285
- feat: Delegated routing with custom configuration. #9274
- feat(gateway): _redirects file support #8890
- feat: add webtransport as an optin transport #9293
- fix: ensure hasher is registered when using a hashing function #9303
Ideal, but not blocking:
-
ipfs addwith exotic hash functions panics (the daemon and the client) #9297 - feat: configurable ProviderSearchDelay in bitswap #9053
🔦 Highlights
< top highlights for this release notes. For ANY version (final or RCs) >
✅ Release Checklist
- Stage 0 - Prerequisites
- Ensure that the
What's left for releasesection has all the checkboxes checked. If that's not the case, discuss the open items with Kubo maintainers and update the release schedule accordingly. - Create
docs-release-vX.Y.Zbranch, open a draft PR and keep updatingdocs/RELEASE_ISSUE_TEMPLATE.mdon that branch as you go. - Ensure you have GPG key generated and added to your GitHub account. This will enable you to created signed tags.
- Ensure you have admin access to IPFS Discourse. Admin access is required to globally pin posts and create banners. @2color might be able to assist you.
- Access to #bifrost channel in FIL Slack might come in handy. Ask the release reviewer to invite you over.
- After the release is deployed to our internal infrastructure, you're going to need read access to IPFS network metrics dashboards. Open an access request in https://github.com/protocol/pldw/issues/new/choose if you don't have it yet (example).
- You're also going to need NPM installed on your system. See here for instructions.
- Prepare changelog proposal in docs/changelogs/vX.Y.md.
- Skip filling out the
### Changelogsection (the one where which lists all the commits and contributors) for now. We will populate it after the release branch is cut.
- Skip filling out the
- Install ZSH (instructions). It is needed by the changelog creation script.
- Ensure you have
kubochecked out under$(go env GOPATH)/src/github.com/ipfs/kubo. This is required by the changelog creation script.- If you want your clone to live in a different location, you can symlink it to the expected location by running
mkdir -p $(go env GOPATH)/src/github.com/ipfs && ln -s $(pwd) $(go env GOPATH)/src/github.com/ipfs/kubo.
- If you want your clone to live in a different location, you can symlink it to the expected location by running
- Ensure that README.md is up to date.
- Ensure that the
- Stage 1 - Initial Preparations
- Upgrade to the latest patch release of Go that CircleCI has published (currently used version:
1.19.1)- See the list here: https://hub.docker.com/r/cimg/go/tags
- ipfs/distributions: bump this version
- ipfs/kubo: example PR
- Fork a new branch (
release-vX.Y.Z) frommaster. - Bump the version in
version.goin themasterbranch tovX.(Y+1).0-dev.
- Upgrade to the latest patch release of Go that CircleCI has published (currently used version:
- Stage 2 - Release Candidate - if any non-trivial changes need to be included in the release, return to this stage
- Bump the version in
version.goin therelease-vX.Y.Zbranch tovX.Y.Z-rcN. - If applicable, add new commits to the
release-vX.Y.Zbranch frommasterusinggit cherry-pick -x ...- Note:
release-*branches are protected. You can do all needed updates on a separated branch (e.g.wip-release-vX.Y.Z) and when everything is settled push torelease-vX.Y.Z
- Note:
- Update the docs/changelogs/vX.Y.md with the new commits and contributors.
- Run
./bin/mkreleaselogtwice to generate the changelog and copy the output.- The first run of the script might be poluted with
git cloneoutput.
- The first run of the script might be poluted with
- Paste the output into the
### Changelogsection of the changelog file inside the<details><summary></summary></details>block. - Commit the changelog changes.
- Run
- Push the
release-vX.Y.Zbranch to GitHub (git push origin release-vX.Y.Z) and create a draft PR targettingreleasebranch if it doesn't exist yet (example). - Wait for CI to run and complete PR checks. All checks should pass.
- Tag HEAD
release-vX.Y.Zcommit withvX.Y.Z-rcN(git tag -s vX.Y.Z-rcN -m 'Pre-release X.Y.Z-rcn') - Push the
vX.Y.Z-rcNtag to GitHub (git push origin vX.Y.Z-rcN; DO NOT USEgit push --tagsbecause it pushes all your local tags). - Add artifacts to https://dist.ipfs.tech by making a PR against ipfs/distributions
- Clone the
ipfs/distributionsrepo locally. - Create a new branch (
kubo-release-vX.Y.Z-rcn) frommaster. - Run
./dist.sh add-version kubo vX.Y.Z-rcNto add the new version to theversionsfile (instructions).- If you're adding a new RC,
dist.shwill print WARNING: not marking pre-release kubo vX.Y.Z-rc1n as the current version..
- If you're adding a new RC,
- Push the
kubo-release-vX.Y.Z-rcnbranch to GitHub and create a PR from that branch (example). - Wait for PR to build artifacts and generate diff (~30min)
- Inspect results, merge if CI is green and the diff looks ok
- Wait for
masterbranch to build. It will automatically update DNSLink at https://dist.ipfs.tech (~30min)
- Clone the
- Publish the RC to the NPM package by running https://github.com/ipfs/npm-go-ipfs/actions/workflows/main.yml (it happens automatically but it is safe to speed up the process and kick of a run manually)
- Cut a pre-release on GitHub (instructions, example)
- Use
vX.Y.Z-rcNas the tag. - Link to the release issue in the description.
- Link to the relevant changelog in the description.
- Check
This is a pre-release.
- Use
- Synchronize release artifacts by running sync-release-assets workflow.
- Announce the RC
- Create a new post on IPFS Discourse. (example)
- Use
Kubo vX.Y.Z-rcn Release Candidate is out!as the title. - Use
kuboandgo-ipfsas topics. - Repeat the title as a heading (
##) in the description. - Link to the GitHub Release, binaries on IPNS, docker pull command and release notes in the description.
- Use
- Pin the topic globally so that it stays at the top of the category.
- If there is no more important banner currently set on Discourse (e.g. IPFS Camp announcement), make the topic into a banner.
- Check if Discourse post was automatically copied to:
- IPFS Discord #ipfs-chatter
- FIL Slack #ipfs-chatter
- Matrix
- Mention early testers in the comment under the release issue (example).
- Create a new post on IPFS Discourse. (example)
- Bump the version in
- Stage 3 - Internal Testing
- Library Testing.
- interop
- Clone the
ipfs/interoprepo locally. - Create a new branch (
kubo-release-vX.Y.Z-rcn) frommaster. - Update
go-ipfsversion tovX.Y.Z-rcNin package.json. - Run
npm installlocally - Push the
kubo-release-vX.Y.Z-rcnbranch to GitHub and create a draft PR from that branch (example).
- Clone the
- go-ipfs-api
- Create a branch with kubo version pinned in the test setup action (example).
- Ensure that CI is green.
- Delete the branch.
- go-ipfs-http-client
- Create a branch with kubo version pinned in the test setup action (example).
- Ensure that CI is green.
- Delete the branch.
- WebUI
- Run CI workflow with
vX.Y.Z-rcNfor thekubo-versioninput. - Ensure that CI is green.
- Run CI workflow with
- interop
- Infrastructure Testing.
- Open an issue against bifrost-infra (example).
- Spell out all that we want updated - gateways, the bootstraper and the cluster/preload nodes
- Mention @protocol/bifrost-team in the issue if you opened it prior to the release
- [Optional] Reply under a message about the issue in the #bifrost channel on FIL Slack once the RC is out. Send the message to the channel.
- Check metrics every day.
- Compare the metrics trends week over week.
- If there is an unexpected variation in the trend, message the #bifrost channel on FIL Slack and ask for help investigation the cause.
- Open an issue against bifrost-infra (example).
- IPFS Application Testing.
- IPFS Desktop
- Upgrade to the RC in ipfs-desktop
- Run
npm installto updatepackage-lock.json. - Push to a branch (example)
- Open a draft PR to track through the final release (example)
- Ensure CI tests pass
- IPFS Companion
- Start kubo daemon of the version to release.
- Start a fresh chromium or chrome instance using
chromium --user-data-dir=$(mktemp -d)(macos/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=$(mktemp -d)) - Start a fresh firefox instance using
firefox --profile $(mktemp -d)(macos/Applications/Firefox.app/Contents/MacOS/firefox --profile $(mktemp -d)) - Install IPFS Companion from vendor-specific store.
- Check that the comunication between Kubo daemon and IPFS companion is working properly checking if the number of connected peers changes.
- IPFS Desktop
- Library Testing.
- Stage 5 - Release - ONLY FOR FINAL RELEASE
- Prepare the
releasebranch.- Bump the version in
version.goin therelease-vX.Y.Zbranch tovX.Y.Z. - Push the
release-vX.Y.Zbranch to GitHub (git push origin release-vX.Y.Z) - Mark the PR created from
release-vX.Y.Zas ready for review.- Ensure the PR is targetting
releasebranch. - Ensure that CI is green.
- Have release reviewer review the PR.
- Ensure the PR is targetting
- Merge the PR into
releasebranch using theCreate a merge commit(do NOT useSquash and mergenorRebase and mergebecause we need to be able to sign the merge commit). - Checkout the
releasebranch locally.- Remember to pull the latest changes.
- Create a signed tag for the release.
- Have release reviewer review the subsequent tagging commits you intend to run.
- This is a dangerous operation, as it is difficult to reverse due to Go modules and automated Docker image publishing
- Tag HEAD
releasecommit withvX.Y.Z(git tag -s vX.Y.Z -m 'Release X.Y.Z') - Push the
vX.Y.Ztag to GitHub (git push origin vX.Y.Z; DO NOT USEgit push --tagsbecause it pushes all your local tags).
- Have release reviewer review the subsequent tagging commits you intend to run.
- Wait for Publish docker image workflow run initiated by the tag push to finish.
- Bump the version in
- Add artifacts to https://dist.ipfs.tech by making a PR against ipfs/distributions
- Clone the
ipfs/distributionsrepo locally. - Create a new branch (
kubo-release-vX.Y.Z) frommaster. - Run
./dist.sh add-version kubo vX.Y.Zto add the new version to theversionsfile (instructions). - Push the
kubo-release-vX.Y.Zbranch to GitHub and create a PR from that branch (example). - Wait for PR to build artifacts and generate diff (~30min)
- Inspect results, merge if CI is green and the diff looks ok
- Wait for
masterbranch to build. It will automatically update DNSLink at https://dist.ipfs.tech (~30min)
- Clone the
- Publish the release to the NPM package by running https://github.com/ipfs/npm-go-ipfs/actions/workflows/main.yml (it happens automatically but it is safe to speed up the process and kick of a run manually)
- Publish the release to chocolatey by running https://github.com/ipfs/choco-go-ipfs/actions/workflows/main.yml (it happens automatically but it is safe to speed up the process and kick of a run manually)
-
Wait for Chocolatey to approve the release (usually takes a few hours)
-
- Ensure the release is published to snap
- Ensure the release is published to arch (flag it out of date)
- Cut the release on GitHub (instructions, example)
- Synchronize release artifacts by running sync-release-assets workflow.
- Announce the RC
- Create a new post on IPFS Discourse. (example)
- Use
Kubo vX.Y.Z Release is out!as the title. - Use
kuboandgo-ipfsas topics. - Repeat the title as a heading (
##) in the description. - Link to the GitHub Release, binaries on IPNS, docker pull command and release notes in the description.
- Use
- Pin the topic globally so that it stays at the top of the category.
- If there is no more important banner currently set on Discourse (e.g. IPFS Camp announcement), make the topic into a banner.
- Check if Discourse post was automatically copied to:
- IPFS Discord #ipfs-chatter
- FIL Slack #ipfs-chatter
- Matrix
- Create a new post on IPFS Discourse. (example)
- Add a link from release notes to Discuss post (like we did here: https://github.com/ipfs/kubo/releases/tag/v0.15.0)
- Update the draft PR created for interop to use the new release and mark it as ready for review.
- Update the draft PR created for IPFS Desktop to use the new release and mark it as ready for review.
- Update docs by merging the auto-created PR in https://github.com/ipfs/ipfs-docs/pulls (example) (they are created automatically every 12 hours)
- Get the blog post created and shared
- Submit a request for blog post creation using the form.
- Notify marketing in #shared-pl-marketing-requests about the blog entry request (since the form tends to go to spam).
- Don't mark this as done until the blog entry is live.
- Submit a request for blog post creation using the form.
- Share link to the release on:
- Twitter (request in Filecoin Slack channel #shared-pl-marketing-requests)
- Prepare the
- Stage 6 - Post-Release
- Merge the
releasebranch back intomaster, ignoring the changes toversion.go(keep the-devversion from master). - Create an issue using this release issue template for the next release.
- Merge the
⁉️ Do you have questions?
The best place to ask your questions about IPFS, how it works and what you can do with it is at discuss.ipfs.io. We are also available at the #ipfs channel on Freenode, which is also accessible through our Matrix bridge.
Release improvements for next time
< Add any release improvements that were observed this cycle here so they can get incorporated into future releases. >
Items for a separate comment
< Do these as a separate comment to avoid the main issue from getting too large and checkbox updates taking too long. >
Changelog
< changelog generated by bin/mkreleaselog > (add it to a separated comment if it is too big)
❤️ Contributors
< list generated by bin/mkreleaselog >
Would you like to contribute to the IPFS project and don't know how? Well, there are a few places you can get started:
- Check the issues with the
help wantedlabel in the ipfs/kubo repo - Join an IPFS All Hands, introduce yourself and let us know where you would like to contribute - https://github.com/ipfs/team-mgmt/#weekly-ipfs-all-hands
- Hack with IPFS and show us what you made! The All Hands call is also the perfect venue for demos, join in and show us what you built
- Join the discussion at discuss.ipfs.io and help users finding their answers.
- Join the 🚀 IPFS Core Implementations Weekly Sync 🛰 and be part of the action!