-
Notifications
You must be signed in to change notification settings - Fork 14
Description
SCALA_VER_BASE="2.13.18"
SCALA_VER_SUFFIX=""
SCALA_SHA=ae6ae4dd59cb90af62093cde52a292e5bd8bb7a8
DIST_SHA=e400c6284b53dd5bfc6df69398da8d6527270c46
SCALA_VER="2.13.18"Key links:
- scala/scala milestone: https://github.com/scala/scala/milestones/2.13.18
- scala/bug milestone: https://github.com/scala/bug/milestones/2.13.18
- scala/scala-dev milestone: https://github.com/scala/scala-dev/milestones/2.13.18
- Discourse topic: https://contributors.scala-lang.org/t/scala-2-13-18-release-planning/7271
- release notes draft: Scala 2.13.18 release notes (DRAFT) #920
N weeks before the release
- Wind down PR queue. There has to be enough time after the last (non-trivial) PR is merged and the next phase. The core of the eco-system needs time to prepare for the final!
- Triage scala/bug and scala/scala-dev tickets
- Create next scala/scala milestone, move the magical "Merge to 2.13.x" description to it (so Scabot uses it as default for new PRs), move pending PRs
- Create next scala/bug milestone, move pending issues
- Create next scala/scala-dev milestone, move pending issues
- Check PRs assigned to the milestone, also check WIP
- Announce expected release date and current nightly "release candidate" (nightly sha-mangled version) at https://scala-ci.typesafe.com/artifactory/scala-integration/ on https://contributors.scala-lang.org/c/announcements
- Also notify Scala Center advisory board members of the upcoming release, so they can help test if they want (Seth can handle this, if asked)
Release announcement / notes
- Review merged PRs, make sure release-notes label is applied appropriately
- PRs with release-notes label must have excellent title & description (title will be pasted literally in release note bullet list)
- Draft release notes (PR and self-merge, so others can comment there rather than on the commits)
- Starting point:
gh api --paginate -X GET search/issues -f q='repo:scala/scala is:pull-request is:merged milestone:2.12.14 label:release-notes' -q '.items[] | " * \(.title) ([#\(.number)](\(.html_url)) by [@\(.user.login)](\(.user.html_url)))"'
- Starting point:
- On contributors thread, link to release note file and request feedback
N days before release
- Announce no more PRs will be merged unless last-minute regressions are found. Re-iterate current nightly sha version for testing.
- Community build: https://scala-ci.typesafe.com/view/scala-2.13.x/
- Green nightly builds on GitHub Actions: https://github.com/scala/scala/actions/runs/19117739303
- Check any merged PRs accidentally assigned to the next milestone in this branch, and re-assign them to this milestone
- Merge in any older release branch
- Check module versioning (is everything in versions.properties up to date?)
On major release, bump PickleFormat version- Test on Akka customer codebase(s), if applicable
- Close the scala/scala and scala/bug milestones
Stage! (point of soft no-return)
Once sufficient time for community testing has passed, it's time to stage the release!
We call this "soft" no-return because even staged artifacts can end up in local caches and cause confusion.
- Make sure there are no stray staging repos on Central Repository
- Trigger a custom build on travis
- Select the correct branch
- Custom config:
before_script: export SCALA_VER_BASE=$SCALA_VER_BASE SCALA_VER_SUFFIX=$SCALA_VER_SUFFIX - Check the build status on https://github.com/scala/scala/commits/2.13.x
- If you get a failure from Sonatype (e.g., "Server redirected too many times"), you may need to recreate the traivis secrets for sonatype
- Create the scala/scala tag locally:
git tag -s -m "Scala $SCALA_VER" v$SCALA_VER $SCALA_SHA - Create scala-dist tag locally:
git tag -s -m "Scala $SCALA_VER" v$SCALA_VER $DIST_SHA - Sanity check jar/pom
- Check that JARs haven't mysteriously bloated — compare sizes to previous release. We have no other backstop for this.
Release! (point of hard no-return)
"Hard" no-return because Maven Central is forever. Also, S3 uploads should be treated as forever (S3 buckets can be changed, but it can takes days to become consistent). Tags, too, should be treated as forever, even though they can technically be deleted and re-pushed.
- Push scala/scala tag:
git push https://github.com/scala/scala.git v$SCALA_VER - Push scala/scala-dist tag:
git push https://github.com/scala/scala-dist.git v$SCALA_VER - Promote staging repos on https://central.sonatype.com/publishing
Find the release on Maven Central
- https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/$SCALA_VER/
- On GitHub, use "Create release from tag" button, set the release notes to
[wip]- https://github.com/scala/scala/releases/tag/v$SCALA_VER
- this is required for the scala-dist jobs below to upload the artifacts
- Once the build is available, trigger three scala-dist jobs on travis (https://app.travis-ci.com/github/scala/scala-dist) with custom config. Must use full-length SHAs!
before_script: export version=$SCALA_VER scala_sha=$SCALA_SHA mode=release: https://app.travis-ci.com/github/scala/scala-dist/builds/?before_script: export version=$SCALA_VER scala_sha=$SCALA_SHA mode=archives: https://app.travis-ci.com/github/scala/scala-dist/builds/?before_script: export version=$SCALA_VER scala_sha=$SCALA_SHA mode=update-api: https://app.travis-ci.com/github/scala/scala-dist/builds/?
After everything is on Maven Central and the GitHub release
- Prepare PR to https://github.com/scala/scala-lang/ (using scala/make-release-notes, which requires the release on Maven Central and on the GitHub release)
_config.yml(update scalaversion or devscalaversion)_data/scala-releases.yml- new files in
_downloadsand_posts
- Prepare PR to https://github.com/scala/docs.scala-lang/ (refer to PR from previous release as a guide)
-_config.ymlapi/all.mdoverviews/FAQ/index.mdcontribute/bug-reporting-guide.md- perhaps
_overviews/jdk-compatibility/overview.md(online version: https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html)
- Pre-announce the release on https://contributors.scala-lang.org/c/announcements
-
On major releases only: (manually) update thecurrentsymlink for the API docs - Check that the API docs are published
- According to Fabien, there is a cron job running 3x / day (03:30, 12:20, 21:20) that syncs the files over to the web server
- https://www.scala-lang.org/api/$SCALA_VER/ (also https://www.scala-lang.org/api/2.13.x/) should have new version
- if they don't show up, review the
archivesandupdate-apiscala-dist job logs. ssh to chara.epfl.ch and poke around.
Prepare downstream
-
Create PR to add/update spec links on scala-lang.org (example: update spec links and advisements scala-lang#1050) -
build and release scala-collection-compat and other modules (or open tickets asking that the maintainers do so)this work has moved to https://github.com/scala/make-release-notes/blob/2.13.x/projects-2.13.md
- if it's a 2.12.x release, publish macro paradise for the new version
- Open tickets in these repos, requesting publishing:
- typelevel/kind-projector
- scalameta
- metals
- scalafix
- scoverage
- silencer
- wartremover
- acyclic
- Ammonite
- scala-debug-adapter
- scala3-migrate (2.13 only)
- scala-cli
- scalac-profiling
- (Akka) lightbend/genjavadoc
- in addition to publishing, PR the addition of the new version to CI and add a patch file so nightlies of the next version work in the community build
Wait for downstream
Before proceeding any further, wait for the ecosystem to catch up.
- Downstream publishing:
- Wait for Scala.js to support the new release
- Wait for Scala Native to support the new release
- Wait for scalameta to publish
- Wait for scalafix to publish
- Wait for Metals to publish
- Wait for kind-projector to publish
- Wait for scoverage to publish
- Wait for scala-debug-adapter to publish
- Downstream signoffs:
- Ask the Scala Center to sign off (Seb)
- Ask VirtusLab to sign off (Tomasz)
We have promised to wait 48 non-weekend hours, minimum.
If there are delays downstream, at some point it may make sense to go ahead and announce anyway, since news of the release will already be spreading in the community.
Announcements
- On the GitHub release, add the release notes
- Merge the scala-lang PR and the docs.scala-lang.org PR
- wait for them to arrive on the websites and make sure they look okay
- if the scala-lang changes don't show up, possible troubleshooting steps include:
- see if https://scala-webapps.epfl.ch/jenkins/view/All/job/production_scala-lang.org-builder/ has run a job yet to actually publish the changes
- see note above about permissions to trigger a job
- if the scala-lang changes don't show up, possible troubleshooting steps include:
- wait for them to arrive on the websites and make sure they look okay
- Scala Users discourse https://users.scala-lang.org
- Use Typefully to announce on these three platforms together:
- X: @scala_lang
- Bluesky: @scala-lang.org
- Mastodon: @scala_lang
- If you have any trouble, open an issue on https://github.com/scala/scala-social-media
- Discord: link to release notes in #links channel
- consider also saying something in #scala-contributors channel
- Unblock the release in Scala Steward by PRing an update to default.scala-steward.conf
- Add the release to SDKMAN
- as per the documentation at https://sdkman.io/vendors
- URL provided must be in
.zipformat,.tgzdoesn't work - sample command:
curl -X POST -H "Consumer-Key: xxx" -H "Consumer-Token: xxx" -H "Content-Type: application/json" -H "Accept: application/json" -d '{"candidate": "scala", "version": "2.13.18", "url": "https://github.com/scala/scala/releases/download/v2.13.18/scala-2.13.18.zip"}' https://vendors.sdkman.io/release - replace both
xxxs with the credential information provided to Seth by Marco Vermeulen (marco at sdkman dot io) - test afterwards with
sdk list scalaandsdk install scala <version>(these should work immediately once thePOSTsucceeds) - to correct mistakes,
PATCHandDELETEare also available
- Announce on https://reddit.com/r/scala
Afterwards
- sbt: if it's a 2.12.x release, open PR updating version
- Scala 3: open PR updating version:
- two places to update:
project/Build.scalacommunity-build/community-projects/stdLib213(after updating https://github.com/dotty-staging/scala to the release tag)
- https://github.com/scala/scala3/pulls
- two places to update:
- Scastie: open PR adding new version (modeled on Add support for Scala 2.13.7 scalacenter/scastie#538)
- note that the PR won't be mergeable until kind-projector has published; and if kind-projector's version number has changed,
ScalaTarget.scalawill need updating
- note that the PR won't be mergeable until kind-projector has published; and if kind-projector's version number has changed,
If it's a major release:UpdatelatestSpecVersioninspec/_config.ymlon the old branch, so that spec is marked as no longer currentDitto for the nightly build and spec links in_data/footer.ymland_data/doc-nav-header.ymlon docs.scala-lang.org
- (Akka) Fortify:
- Publish scala-fortify-plugin
- Update scala-fortify
- Update scala-fortify-docs
- (Akka) Notify eng-updates
- Create a scala/scala PR to:
- update
starr.versionin/versions.properties - update
Global / baseVersionin/build.sbt - update
mimaReferenceVersionin/project/MimaFilters.scala - clear out
mimaFiltersin/project/MimaFilters.scala, except the one(s) labeled "KEEP" spec/_config.yml, if it's a major release
- update
- Once that PR is merged and a new nightly has published,
./advance scala(and PR it) in the community build - Update https://contributors.scala-lang.org thread
- Create https://contributors.scala-lang.org thread for the next release
You're done!
- Close this ticket and close the scala-dev milestone