Closed
Description
Release preparation
- Prepare the changelog entry:
crystal:scripts/github-changelog.cr
Changelog for 1.16.2 crystal#15716- Ensure that all merged PRs are added to the milestone (check
is:pr is:merged sort:updated-desc no:milestone
). - Ensure that all milestoned PRs are properly labelled (check
is:pr is:merged sort:updated-desc no:label milestone:1.16.2
).
- Ensure that all merged PRs are added to the milestone (check
- Start preparing release notes
- Publish release PR draft
- It should be populated with updates to
CHANGELOG.md
,src/VERSION
and the version inshard.yml
.
- It should be populated with updates to
- Ensure that test-ecosystem functions and succeeds on master
Release process (on 2025-04-29)
Source release
- Finalize the release PR
- Make sure all changes are mentioned in the changelog
- Check release date
- Un-draft the PR
- Verify Maintenance CI workflow succeeds on the HEAD of the release branch
- Smoke test with test-ecosystem
- Run Test Crystal & Shards Workflow with the release branch as
crystal_branch
.
- Run Test Crystal & Shards Workflow with the release branch as
- Merge the release PR
- Make the release and publish it on GitHub:
../distribution-scripts/processes/scripts/make-crystal-release.sh
(run fromcrystallang/[email protected]
work tree). This performs these steps:- Tag & annotate the commit with the changelog using
<M.m.p>
pattern as version
git tag -s -a -m 1.16.2 1.16.2
git push --tags
- Publish Github release (https://github.com/crystal-lang/crystal/releases/new)
- Copy the changelog section as description
- Binaries are added later
- Tag & annotate the commit with the changelog using
- Close milestone (https://github.com/crystal-lang/crystal/milestones)
- Wait for the release build in circle CI (https://app.circleci.com/pipelines/github/crystal-lang/crystal)
Binary releases
- Publish build artifacts from CircleCI and GitHub Actions to GitHub release. For
URL_TO_CIRCLECI_ARTIFACT
grab the URL
of any of the build artifacts in circleCI (doesn't matter which).- Upload build artifacts from CircleCI:
../distribution-scripts/processes/scripts/publish-crystal-packages-on-github.sh $URL_TO_CIRCLECI_ARTIFACT
(run fromcrystallang/[email protected]
work tree)crystal-*-darwin-*.tar.gz
crystal-*-linux-*.tar.gz
crystal-*.pkg
crystal-*-docs.tar.gz
- Upload build artifacts from GHA (Windows):
- Windows CI:
crystal.zip
->crystal-1.16.2-windows-x86_64-msvc-unsupported.zip
- Windows CI:
crystal-installer.zip
-> unzip ->crystal-1.16.2-windows-x86_64-msvc-unsupported.exe
- MinGW-w64 CI:
x86_64-mingw-w64-crystal.zip
->crystal-1.16.2-windows-x86_64-gnu-unsupported.zip
- Windows CI:
- Upload build artifacts from CircleCI:
- Push changes to OBS for building linux packages
- Checkout https://github.com/crystal-lang/distribution-scripts and go to
./packages
- Configure build.opensuse.org credentials in environment variables:
export OBS_USER=
export OBS_PASSWORD=
- Update the
crystal1.16
package:./obs-release.sh devel:languages:crystal crystal1.16 1.16.2
- Now OBS builds the packages. It’s best to follow the build status in the browser:
open https://build.opensuse.org/project/show/home:$OBS_USER:branches:devel:langauges:crystal/crystal
- Wait for all package build jobs to finish and succeed
- When everything is green, create a submit request against the original packages (Submit package link in the menu bar on the package in your branch)
- Verify package installation
OBS_PROJECT=devel:languages:crystal bats test
- Checkout https://github.com/crystal-lang/distribution-scripts and go to
- Tag
latest
docker images- Versioned docker images have been pushed to dockerhub.
- Now just assign the
latest
tags: ./docker/apply-latest-tags.sh 1.16.2
- Publish snap package
- On https://snapcraft.io/crystal/releases promote the
latest/edge
release tolatest/beta
and thenlatest/stable
- On https://snapcraft.io/crystal/releases promote the
- Check PR for homebrew: https://github.com/Homebrew/homebrew-core/pulls?q=is%3Apr+crystal+sort%3Aupdated-desc
- It should've been automatically created
Publish documentation for the release
- Publish API docs
- Have
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
env variables defined- Keys can be generated at https://console.aws.amazon.com/iam/home#/security_credentials (contact a Manas admin if you don't have access).
- Run
make -C docs publish_docs dist-redirect_latest CRYSTAL_VERSION=1.16.2
to publish docs toapi/1.16.2
and apply redirect fromapi/latest
toapi/1.16.2
- Have
Release announcements
- Publish release notes on the website
- Post announcement in https://forum.crystal-lang.org/c/news/official
- Announce on social media accounts (via Buffer; credentials are in Passbolt) and pin release posts
- Update https://github.com/crystal-lang/crystal-book/blob/master/crystal-version.txt
Post-release
- Update crystal
master
branch to use released version:crystal:scripts/release-update.sh 1.16.2
- Edit PREVIOUS_CRYSTAL_BASE_URL in
.circleci/config.yml
- Edit DOCKER_TEST_PREFIX in
bin/ci
- Edit
prepare_build
on_osx download package and folder - Edit
.github/workflows/*.yml
to point to docker image - Edit
shell.nix
latestCrystalBinary
usingnix-prefetch-url --unpack <url>
- Edit PREVIOUS_CRYSTAL_BASE_URL in
- Update default base version in test-ecosystem:
test-ecosystem:scripts/release-update.sh 1.16.2
- Merge
release/1.16
branch intomaster
(if the two have diverged) Mergerelease/1.16
into master crystal#15729
- This needs to be a merge commit. Those are disabled in the GitHub UI.
- Create branch and PR:
git fetch upstream release/1.16 master git switch -c merge/1.16.2 upstream/master git merge upstream/release/1.16 # resolve conflicts git commit -m 'Merge `release/1.16` into master' git log --graph --decorate --pretty=oneline --abbrev-commit git push -u upstream merge/1.16.2 gh pr create --title 'Merge `release/1.16` into master' --label 'topic:infrastructure'
- Merge PR locally:
git switch master git merge --ff-only merge/1.16.2 # double check history git log --graph --decorate --pretty=oneline --abbrev-commit git push
- GitHub branch protection rules normally prevent direct pushes to
master
. This needs to be deactivated for this purpose, which can be on a
per-user basis. - In case master has diverged,
--ff-only
merge will fail. Then you can
first rebasemerge/1.16.2
on current master withgit rebase master --rebase-merges
.