Closed
Description
- SCALA_VER_BASE="2.13.4"
- SCALA_VER_SUFFIX=""
- SCALA_SHA=39148e4ec34a5c53443dd1b25ceec2308cd097fe
- DIST_SHA=????????????????????????????????????????
- SCALA_VER="$SCALA_VER_BASE$SCALA_VER_SUFFIX"
Key links:
- scala/scala milestone: https://github.com/scala/scala/milestones/2.13.4 (list)
- scala/bug milestone: https://github.com/scala/bug/milestones/2.13.4 (list)
- scala/scala-dev milestone: https://github.com/scala/scala-dev/milestones/2.13.4 (list)
- Discourse topic: https://contributors.scala-lang.org/t/coming-soon-scala-2-13-4/4555
- release notes draft: https://github.com/scala/scala-dev/blob/scala-dev/releases/2.13.4.md
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
- Notify community on https://contributors.scala-lang.org/c/announcements
- 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 (to be published once GitHub tag is pushed) https://github.com/scala/scala-dev/blob/scala-dev/releases/2.13.4.md
- On contributors thread, link to release note gist 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
- Windows Jenkins job
- if there isn't already a nightly run on the exact right SHA (check the log), manually trigger one
- https://scala-ci.typesafe.com/job/scala-2.13.x-integrate-windows/1576/
- Run test suite (
testAll
) on JDK 11 and 15- (Our CI ought to do this, but until we get that set up, it can be done locally.)
- 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?)
Upgrade to JLine 3.17.1 scala#9294 -
On major release, bump PickleFormat version - Close the scala/scala and scala/bug milestones
Point of no return
Once sufficient time has passed since last merged PR, it's time to cut the release!
How long we wait depends on what kind of release it is. For a major release, it might be 1-2 weeks, to give core projects time to try out the preceding release candidate and/or the current candidate nightly. For point releases, assuming we've given the community ahead-of-time warning and kept them appraised of progress on the Discourse thread, and assuming the last changes merged seem sufficiently safe, we might build the next day.
- Make sure there are no stray staging repos on sonatype
- Trigger a custom build on travis
- Select the correct branch
- Custom config:
before_script: export SCALA_VER_BASE=2.13.4 SCALA_VER_SUFFIX=""
- Check the build status https://travis-ci.org/github/scala/scala/builds/744616633
- Check that the scala/scala job also triggered a following scala/scala-dist job: https://travis-ci.org/github/scala/scala-dist/builds/744622584
- Create the scala/scala tag locally:
git tag -s -m "Scala 2.13.4" v2.13.4 39148e4ec34a5c53443dd1b25ceec2308cd097fe
- Create scala-dist tag locally:
git tag -s -m "Scala 2.13.4" v2.13.4 4218dfc75b9e2a5310b7abde28d3d6ba8e611601
- Note the repos to be promoted after tag is cut (see travis log)
- Sanity check jar/pom
- https://oss.sonatype.org/content/repositories/staging/org/scala-lang/scala-compiler/2.13.4/
- in particular, if the release was staged multiple times, double check that https://oss.sonatype.org/content/repositories/staging/ has the files from the most recent build
- Check that JARs haven't mysteriously bloated — compare sizes to previous release. We have no other backstop for this.
- Remember, tags are forever, so are maven artifacts (even staged ones, as they could end up in local caches) and S3 uploads (S3 buckets can be changed, but it can takes days to become consistent)
- Push scala/scala tag:
git push https://github.com/scala/scala.git v$SCALA_VER
- Add release notes to https://github.com/scala/scala/releases/tag/v$SCALA_VER
- Push scala/scala-dist tag:
git push https://github.com/scala/scala-dist.git v$SCALA_VER
- Trigger two scala-dist jobs on travis (https://travis-ci.org/scala/scala-dist) with custom config. must use full-length SHAs!
before_script: export version=$SCALA_VER scala_sha=$SCALA_SHA mode=archives
: https://travis-ci.org/github/scala/scala-dist/builds/744628712before_script: export version=$SCALA_VER scala_sha=$SCALA_SHA mode=update-api
: https://travis-ci.org/github/scala/scala-dist/builds/744628790
- Promote staging repos:
st_stagingRepoPromote [scala-repo]
,st_stagingRepoPromote [modules-repo]
(or use oss.sonatype.org web UI)
Check availability
- Check release on sonatype: https://oss.sonatype.org/content/repositories/releases/org/scala-lang/scala-compiler/$SCALA_VER/
- Check the release on maven central: https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/$SCALA_VER/
When everything is on maven central
- Prepare PR to https://github.com/scala/scala-lang/ (using scala/make-release-notes which requires a staged release and a pushed tag)
documentation/api.md
download/index.md
_config.yml
(update devscalaversion or scalaversion)
- Prepare PR to https://github.com/scala/docs.scala-lang/
api/all.md
,_config.yml
- make sure the draft release notes are on GitHub tag: https://github.com/scala/scala/releases/tag/v$SCALA_VER
- Pre-announce the release on https://contributors.scala-lang.org/c/announcements
-
On 2.13.0 only: (manually) update thecurrent
symlink for the API docs - Check that the API docs are published
- Merge the scala-lang PR and the docs.scala-lang.org PR
- Release Scala 2.13.4 scala-lang#1181
- Release Scala 2.13.4 docs.scala-lang#1823
- wait for them to arrive on the websites and make sure they look okay
Modules
-
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
Announcements
- Scala Users discourse https://users.scala-lang.org
- add a reply on the same https://contributors.scala-lang.org thread where you announced that the release process was starting
- Tweet from @scala_lang
- https://gitter.im/scala/scala
- if you feel like it, say something in https://gitter.im/scala/contributors too
- ask Seth to announce on #scala IRC
Afterwards
- Check the release on maven search (may take a few hours):
-
Create PR to add/update spec links on scala-lang.org(example: update spec links and advisements scala-lang#1050) - Create a scala/scala PR to update
versions.properties
and thebaseVersion
inbuild.sbt
.- If it's a major bump, also update MiMa base version, exclusion filters, and
spec/_config.yml
.
- If it's a major bump, also update MiMa base version, exclusion filters, and
- If it's a major bump:
- Update
latestSpecVersion
inspec/_config.yml
on the old branch, so that spec is marked as no longer current - Ditto for the nightly build and spec links in
_data/footer.yml
and_data/doc-nav-header.yml
on docs.scala-lang.org
- Update
- Create PR to update https://github.com/lightbend/lightbend-technology-intro-doc/blob/master/docs/modules/getting-help/pages/build-dependencies.adoc
- Consider updating https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html
- (Lightbend) Publish scala-fortify-plugin
- (Lightbend) Update WhiteSource
- (Lightbend) Notify eng-updates
- Close this ticket and close the scala-dev milestone