2016-11-04 18:50:15 +01:00
|
|
|
# Zulip server release checklist
|
|
|
|
|
|
|
|
This document has reminders of things one might forget to do when
|
|
|
|
preparing a new release.
|
|
|
|
|
|
|
|
### A week before the release
|
|
|
|
|
2022-07-16 02:16:51 +02:00
|
|
|
- _Major releases only (e.g. 4.0):_
|
2021-08-20 21:45:39 +02:00
|
|
|
- Upgrade all Python dependencies in
|
2020-09-22 03:08:47 +02:00
|
|
|
`requirements` to latest upstream versions so they can burn in (use
|
|
|
|
`pip list --outdated`).
|
2022-02-10 03:00:59 +01:00
|
|
|
- Upgrade all puppet dependencies in `puppet/deps.yaml`
|
|
|
|
- Upgrade all puppet-installed dependencies (e.g. Smokescreen, go,
|
|
|
|
etc) in `puppet/zulip/manifests/common.pp`
|
2021-08-20 21:45:39 +02:00
|
|
|
- [Upload strings to
|
2022-02-16 01:39:15 +01:00
|
|
|
Transifex](../translating/internationalization.md#translation-process)
|
2021-08-20 21:53:28 +02:00
|
|
|
using `push-translations`. Post a Transifex
|
2023-06-13 02:06:32 +02:00
|
|
|
[announcement](https://app.transifex.com/zulip/communication/?q=project%3Azulip)
|
2021-03-29 09:10:26 +02:00
|
|
|
notifying translators that we're approaching a release.
|
2021-08-20 21:45:39 +02:00
|
|
|
- Merge draft updates to the [changelog](../overview/changelog.md)
|
2021-03-29 09:10:26 +02:00
|
|
|
with changes since the last release. While doing so, take notes on
|
|
|
|
things that might need follow-up work or documentation before we
|
|
|
|
can happily advertise them in a release blog post.
|
2021-08-20 21:45:39 +02:00
|
|
|
- Inspect all `TODO/compatibility` comments for whether we can
|
2021-04-16 19:02:30 +02:00
|
|
|
remove any backwards-compatibility code in this release.
|
2021-08-20 21:45:39 +02:00
|
|
|
- Create a burn-down list of issues that need to be fixed before we can
|
2017-06-06 23:20:02 +02:00
|
|
|
release, and make sure all of them are being worked on.
|
2021-08-20 21:53:28 +02:00
|
|
|
- Draft the release blog post (a.k.a. the release notes) in Paper. In
|
2020-09-16 02:43:15 +02:00
|
|
|
it, list the important changes in the release, from most to least
|
|
|
|
notable.
|
2016-11-04 18:50:15 +01:00
|
|
|
|
|
|
|
### Final release preparation
|
|
|
|
|
2021-08-20 21:45:39 +02:00
|
|
|
- Update the Paper blog post draft with any new commits.
|
2023-06-07 21:32:59 +02:00
|
|
|
- Download updated translation strings from Transifex and commit
|
|
|
|
them. Use the `--branch 6.x` parameter for maintenance releases.
|
2022-06-25 02:54:09 +02:00
|
|
|
- Use `build-release-tarball` to generate a pre-release tarball.
|
2021-08-20 21:45:39 +02:00
|
|
|
- Test the new tarball extensively, both new install and upgrade from last
|
2022-11-16 21:29:36 +01:00
|
|
|
release, on Ubuntu 20.04 or 22.04.
|
2021-08-20 21:45:39 +02:00
|
|
|
- Repeat until release is ready.
|
|
|
|
- Send around the Paper blog post draft for review.
|
2022-12-08 02:10:45 +01:00
|
|
|
- Move the blog post draft to Astro:
|
|
|
|
- Use "··· > Export > Markdown" to get a pretty good Markdown
|
|
|
|
conversion, and save it in `src/posts` with a filename appropriate
|
|
|
|
for a URL slug.
|
|
|
|
- Add the needed YAML frontmatter.
|
|
|
|
- Move any images into `public` and update their references.
|
2022-03-22 04:26:16 +01:00
|
|
|
- Proofread, especially for formatting.
|
2022-12-08 02:10:45 +01:00
|
|
|
- If the draft post should remain secret until release, avoid using
|
|
|
|
a guessable Git branch name for the pull request (the deployment
|
|
|
|
preview URL is based on the branch name).
|
2023-06-07 21:32:59 +02:00
|
|
|
- _Major releases only (e.g. 4.0):_ Schedule team members to provide
|
|
|
|
extra responsive #production help support following the release.
|
2016-11-04 18:50:15 +01:00
|
|
|
|
|
|
|
### Executing the release
|
|
|
|
|
2021-08-20 21:45:39 +02:00
|
|
|
- Create the release commit, on `main` (for major releases) or on the
|
2020-09-16 02:43:15 +02:00
|
|
|
release branch (for minor releases):
|
2021-08-20 21:45:39 +02:00
|
|
|
- Copy the Markdown release notes for the release into
|
2020-09-16 02:43:15 +02:00
|
|
|
`docs/overview/changelog.md`.
|
2022-03-22 04:26:16 +01:00
|
|
|
- Verify the changelog passes lint, and has the right release date.
|
2022-07-16 02:16:51 +02:00
|
|
|
- _Major releases only:_ Adjust the `changelog.md` heading to have
|
2021-05-06 02:44:16 +02:00
|
|
|
the stable release series boilerplate.
|
2021-08-20 21:45:39 +02:00
|
|
|
- Update `ZULIP_VERSION` and `LATEST_RELEASE_VERSION` in `version.py`.
|
2022-07-16 02:16:51 +02:00
|
|
|
- _Major releases only:_ Update `API_FEATURE_LEVEL` to a feature
|
2020-09-16 02:43:15 +02:00
|
|
|
level for the final release, and document a reserved range.
|
2022-06-25 02:54:09 +02:00
|
|
|
- Run `tools/release` with the release version.
|
2022-03-22 04:26:16 +01:00
|
|
|
- Update the [Docker image](https://github.com/zulip/docker-zulip):
|
2022-11-16 21:29:58 +01:00
|
|
|
- Commit the Docker updates:
|
|
|
|
- Update `ZULIP_GIT_REF` in `Dockerfile`
|
|
|
|
- Update `README.md`
|
|
|
|
- Update the image in `docker-compose.yml`, as well as the `ZULIP_GIT_REF`
|
|
|
|
- Commit the Helm updates:
|
|
|
|
- Add a new entry to `kubernetes/chart/zulip/CHANGELOG.md`
|
|
|
|
- Update the `appVersion` in `kubernetes/chart/zulip/Chart.yaml`
|
|
|
|
- Update the `tag` in `kubernetes/chart/zulip/values.yaml`
|
|
|
|
- Update the docs by running `helm-docs`
|
|
|
|
- Update the `image` in `kubernetes/manual/zulip-rc.yml`
|
2022-03-22 04:26:16 +01:00
|
|
|
- Build the image: `docker build . -t zulip/docker-zulip:4.11-0 --no-cache`
|
|
|
|
- Also tag it with `latest`: `docker build . -t zulip/docker-zulip:latest`
|
|
|
|
- Push those tags: `docker push zulip/docker-zulip:4.11-0; docker push zulip/docker-zulip:latest`
|
2022-11-16 21:29:58 +01:00
|
|
|
- Push the commits to `main`.
|
2023-05-19 22:54:30 +02:00
|
|
|
- Merge the blog post PR.
|
2022-03-22 04:26:16 +01:00
|
|
|
- Announce the release, pointing to the blog post, via:
|
|
|
|
- Email to [zulip-announce](https://groups.google.com/g/zulip-announce)
|
2023-05-19 22:54:30 +02:00
|
|
|
- Email to [zulip-blog-announce](https://groups.google.com/a/zulip.com/g/zulip-blog-announce)
|
2022-03-22 04:26:16 +01:00
|
|
|
- Message in [#announce](https://chat.zulip.org/#narrow/stream/1-announce)
|
|
|
|
- Tweet from [@zulip](https://twitter.com/zulip).
|
2023-05-19 22:54:54 +02:00
|
|
|
- Toot from [fosstodon.org/@zulip](https://fosstodon.org/@zulip)
|
2017-06-06 23:20:02 +02:00
|
|
|
|
|
|
|
### Post-release
|
|
|
|
|
2022-03-22 04:26:16 +01:00
|
|
|
- The DigitalOcean one-click image will report in an internal channel
|
2022-11-16 21:33:39 +01:00
|
|
|
once it is built, and how to test it. Verify it, then publish it to
|
|
|
|
DigitalOcean marketplace.
|
2022-07-16 02:16:51 +02:00
|
|
|
- _Major releases only:_
|
2021-08-20 21:45:39 +02:00
|
|
|
- Create a release branch (e.g. `4.x`).
|
|
|
|
- On the release branch, update `ZULIP_VERSION` in `version.py` to
|
2020-09-17 03:16:46 +02:00
|
|
|
the present release with a `+git` suffix, e.g. `4.0+git`.
|
2021-08-20 21:45:39 +02:00
|
|
|
- On `main`, update `ZULIP_VERSION` to the future major release with
|
2021-08-20 21:53:28 +02:00
|
|
|
a `-dev+git` suffix, e.g. `5.0-dev+git`. Make a Git tag for this
|
|
|
|
update commit with a `-dev` suffix, e.g. `5.0-dev`. Push the tag
|
2021-02-03 02:57:29 +01:00
|
|
|
to both zulip.git and zulip-internal.git to get a correct version
|
|
|
|
number for future Cloud deployments.
|
2021-08-20 21:45:39 +02:00
|
|
|
- Consider removing a few old releases from ReadTheDocs; we keep about
|
2021-05-13 21:36:23 +02:00
|
|
|
two years of back-versions.
|
2022-05-28 00:22:17 +02:00
|
|
|
- Update Transifex to add the new `4.x` style release branch
|
|
|
|
resources and archive the previous release branch's resources with
|
|
|
|
the "Translations can't translate this resource" setting.
|
2022-07-16 02:34:09 +02:00
|
|
|
- Add a new CI production upgrade target:
|
|
|
|
- Build a docker image: `cd tools/ci && docker build . -f Dockerfile.prod --build-arg=BASE_IMAGE=zulip/ci:bullseye --build-arg=VERSION=5.0 --tag=zulip/ci:bullseye-5.0 && docker push zulip/ci:bullseye-5.0`
|
|
|
|
- Add a new line to the `production_upgrade` matrix in
|
|
|
|
`.github/workflows/production-suite.yml`.
|
2022-07-16 02:16:51 +02:00
|
|
|
- _Minor releases only (e.g. 3.2):_
|
2022-03-22 04:26:16 +01:00
|
|
|
- On the release branch, update `ZULIP_VERSION` to the present
|
|
|
|
release with a `+git` suffix, e.g. `3.2+git`.
|
2022-11-16 21:34:02 +01:00
|
|
|
- On main, update `LATEST_RELEASE_VERSION` with the released
|
|
|
|
version, as well as the changelog changes from the release branch.
|
2023-05-30 02:31:37 +02:00
|
|
|
- _Prereleases only (e.g. 7.0-beta3):_
|
|
|
|
- Atop the prerelease commit (e.g. `7.0-beta3`), make a commit
|
|
|
|
updating `ZULIP_VERSION` to the prerelease version with a `+git`
|
|
|
|
suffix, e.g. `7.0-beta3+git`. Push this to `main`. (If `main` has
|
|
|
|
already diverged from the prerelease, a merge commit will be
|
|
|
|
needed here.)
|
|
|
|
- Delete the prerelease branch (e.g. `7.0-beta3-branch`); it's now
|
|
|
|
an ancestor of `main` and thus unnecessary.
|