* Change the bump-version workflow's schedule Either I don't understand cron or GitHub doesn't understand cron. It's not clear which. I think that https://github.com/bytecodealliance/wasmtime/pull/3511 may have fallen within our schedule but it was supposed to be on a weekday. Otherwise https://github.com/bytecodealliance/wasmtime/pull/3499 was certainly spurious. This commit moves to a simpler "just do it on the same day each month" and we can manually figure out weekdays and such. Hopefully this should reduce the number of spurious PRs we're getting to bump versions. This also removes the script to force a version bump since I found a button on the GitHub UI to do the same thing. Additionally I've updated the patch-release documentation to use this button. Note that this button takes inputs as well which means we can further automate patch releases to look even more like normal release process, differing only in one part of the argument used to trigger the workflow. * Fix a typo
3.5 KiB
Release Process
This is intended to serve as documentation for Wasmtime's release process. It's largely an internal checklist for those of us performing a Wasmtime release, but others might be curious in this as well!
Releasing a major version
Major versions of Wasmtime are relased once-a-month. Most of this is automatic and all that needs to be done is to merge the GitHub PR that CI will generate on the second Monday of each month.
Specifically what happens for a major version release is:
- One day a month (configured via
.github/workflows/bump-version.yml) a CI job will run. This CI job will:
- Download the current
mainbranch - Run
./scripts/publish.rswith thebumpargument - Commit the changes with a special marker in the commit message
- Push these changes to a branch
- Open a PR with this branch against
main
- A maintainer of Wasmtime signs off on the PR and merges it.
- Most likely someone will need to push updates to
RELEASES.mdbeforehand. - A maintainer should double-check there are no open security issues.
- The
.github/workflow/push-tag.ymlworkflow is triggered on all commits tomain, including the one just created with a PR merge. This workflow will:- Scan the git logs of pushed changes for the special marker added by
bump-version.yml. - If found, tags the current
maincommit and pushes that to the main repository.
- Scan the git logs of pushed changes for the special marker added by
- Once a tag is created CI runs in full on the tag itself. CI for tags will
create a GitHub release with release artifacts and it will also publish
crates to crates.io. This is orchestrated by
.github/workflows/main.yml.
If all goes well you won't have to read up much on this and after hitting the Big Green Button for the automatically created PR everything will merrily carry on its way.
Releasing a patch release
Making a patch release is somewhat more manual than a major version. At this
time the process for making a patch release of 2.0.1 the process is:
- All patch release development should be happening on a branch
release-2.0.1.
- Maintainers need to double-check that the
PUBLIC_CRATESlisted inscripts/publish.rsdo not have semver-API-breaking changes (in the strictest sense). All security fixes must be done in such a way that the API doesn't break between the patch version and the original version.
- Visit this patch and manually trigger the
bump-version.ymlworkflow for therelease-2.0.1branch with thebump-patchargument. This will simulate step (1) of the above release process. - Review the generated PR, probably updating
RLEASES.mdas well.
- Note that if historical branches may need updates to source code or CI to pass itself since the CI likely hasn't been run in a month or so. When in doubt don't be afraid to pin the Rust version in use to the rustc version that was stable at the time of the branch's release.
- Merge the generated PR, and that's the whole patch release.
From this point automated processes should take care of the rest of the steps,
basically resuming from step 3 above for major releases where push-tag.yml
will recognize the commit message and push an appropriate tag. This new tag will
then trigger full CI and building of release artifacts.