dashorst opened a new issue, #2041: URL: https://github.com/apache/wicket/issues/2041
Wicket releases are built, staged and promoted by `release.sh` and the `promote-$version.sh` and `revert-$version.sh` scripts it generates. The vote and announcement emails are text files the script writes, and the release manager sends them by hand. This issue moves the dist.apache.org side of a release and the release emails to [Apache Trusted Releases](https://releases.apache.org) (ATR), and tracks the steps to get there. ## What ATR does and doesn't do Sources: the [ATR docs](https://releases.apache.org/docs/), the [infra page](https://infra.apache.org/atr.html), and Maven's [ATR integration notes](https://cwiki.apache.org/confluence/display/MAVEN/ATR+integration). - **Status:** ATR has been in beta since August 2026 and is not mandatory. There is no separate test instance: release-test.apache.org redirects to production. - **Lifecycle:** a release goes through compose, vote and finish. - Every upload creates an immutable revision of the release, and ATR runs its checks on each one: signatures against KEYS, checksums, LICENSE/NOTICE, RAT/headers, a single root directory per archive, and source archive vs. GitHub commit. - A failed or cancelled vote sends the candidate back to compose. A re-roll is a new revision of the same version, not a new version. - **Emails and publishing:** ATR sends the vote email and the result email from per-project templates, and can tally an email vote. On finish it commits to `dist/release/wicket/…`. It sends the announcement once the files are on downloads.apache.org, and can archive the previous release. - **Signing:** ATR signs nothing. Release managers keep signing with their own keys, and `dist/release/wicket/KEYS` stays. - **Nexus and Maven Central stay ours.** ATR does not read the Nexus staging repository. It only checks that configured Maven coordinates are on Central before it sends the announcement. Replacing Nexus is an open track ([tooling-trusted-releases#1918](https://github.com/apache/tooling-trusted-releases/issues/1918)). - **Old scripts must go.** ATR says scripts that move files from `dist/dev` to `dist/release` should not run alongside it. - **Configuration:** - Settings are per project, with overrides per release cycle, so 10.x, 11.x and 12.x can differ. - They can be kept in `.asf.yaml`. - Templates may be URLs on raw.githubusercontent.com. - Template variables are `{{VERSION}}`, `{{MAJOR_VERSION}}`, `{{CYCLE}}`, `{{PROJECT_NAME}}`, `{{PROJECT_KEY}}` and `{{FIRST_ROUND_THREAD}}`. There is no variable for a changelog or a Nexus staging URL. ## Target shape for Wicket | Step | Today | With ATR | |---|---|---| | Build, tag, deploy to Nexus, close staging repo | `release.sh` | unchanged | | Source and binary archives, `.asc`, `.sha512` | `release.sh` | unchanged | | Stage the archives | `svn commit` to `dist/dev/wicket/$version` | upload to the ATR release `wicket $version` (CLI, rsync, or the `push-to-atr` profile of Apache parent 40, which we already inherit) | | Checks | by hand, by voters | ATR checks on every revision, voters on top | | Vote email | `release-vote.txt`, sent by hand | ATR start-vote template | | Vote result | written by hand | ATR finish-vote template | | Publish to mirrors | `svn mv` in `promote-$version.sh` | ATR finish → `dist/release/wicket/$version` | | Release to Maven Central | `rc-release` in `promote-$version.sh` | unchanged, but before ATR finish, because ATR holds the announcement until the artifacts are on Central | | Announcement | `release-announce.txt`, sent by hand | ATR announcement template | | Remove previous release | `svn rm`, printed by the promote script | ATR auto-archive | | Failed vote | `revert-$version.sh` | revert drops Nexus, the branch and the tag. The ATR vote is cancelled and the candidate is re-rolled as a new revision. | | Site post `wicket-$version-released.md` | `release.sh` | unchanged | ## Mock releases: 11.1.0-rcN Before a real 11.1.0, mock releases named `11.1.0-rcN` (N = attempt) are rolled from `wicket-11.x` to exercise the whole flow. They have to stay invisible: - **ATR:** there is no sandbox, so a mock is a draft release in production ATR. The vote recipients must be a non-public address while mocking. - **Nexus:** every staging repository is dropped and never released, because Central is permanent. - **Vote email:** nothing goes to dev@. For a real release, the version stays `11.1.0` and the attempts become ATR revisions. A mock that uses `-rcN` as its version therefore creates a separate ATR release for every attempt. ## Tasks ### Onboarding - [ ] Check Wicket's entry in ATR and the [release catalog](https://release-catalog.apache.org), and ask Tooling to correct it if needed - [ ] Every release manager: register at mfa.apache.org, add their OpenPGP key to ATR, and make sure it is in `dist/release/wicket/KEYS` - [ ] Decide the KEYS mode (default: SVN stays the source of truth and ATR imports read-only) - [ ] Decide where the project settings live: a `project:` block in `.asf.yaml` (reviewable in a PR) or the ATR UI ### Project settings - [ ] Version scheme: semver, cycle match `(\d+)\..*`, require the version in filenames - [ ] Source path pattern `apache-wicket-*.{tar.gz,zip}`, binary path pattern `binaries/*` - [ ] License check mode and excludes - [ ] Publish location `{{VERSION}}`, matching the current `dist/release/wicket/<version>/` layout. ATR doesn't follow files moved after publishing, so this has to be right before the first real release. - [ ] Auto-archive the previous release of the same cycle - [ ] Third-party distribution: Maven coordinates (`org.apache.wicket:wicket-core` at least), so the announcement waits for Central - [ ] Vote mode: email (streamlined voting needs a 7-day PMC vote and applies to the whole committee), minimum 72 hours - [ ] Voter checklist ### Mail templates - [ ] Start-vote subject and body, based on `release-vote.txt`. Add the Nexus staging repository, the git repository, branch and tag, and the changelog, none of which ATR provides as variables. Mark non-ATR links as informational, as ATR recommends. - [ ] Vote result body (we have no template for it today) - [ ] Announcement subject and body, based on `release-announce.txt`, including the migration guide link per major and the changelog. Recipients: [email protected], dev@ and users@. - [ ] Decide where the templates live (files in this repository referenced by URL, or text in ATR) and how a release-specific changelog gets into them - [ ] Per-cycle overrides where 10.x, 11.x and 12.x need different text ### `release.sh` and the generated scripts - [ ] Accept `X.Y.Z-rcN` for mock releases: the version check, the changelog check and the `next_version` calculation - [ ] Choose the upload route: the `atr` CLI ([tooling-releases-client](https://github.com/apache/tooling-releases-client), not yet stable), rsync over SSH, or the `push-to-atr` profile (Maven plugin beta, needs the ATR release to exist before `release:perform`) - [ ] Upload `target/dist` to ATR instead of committing to `dist/dev` - [ ] Stop generating `release-vote.txt`, and either drop `release-announce.txt` or reduce it to input for the site post - [ ] Promote script: drop `svn mv`. Keep the tag push, the Nexus release (fixed per #1757) and the version bump, and print the ATR finish step after the Nexus release. - [ ] Revert script: drop `svn rm` of `dist/dev` and print the ATR cancel step - [ ] Drop the printed `svn rm` of the previous release - [ ] Update `release.txt`, the instructions the script prints ### Checks - [ ] Go through ATR's results for the first upload (RAT, LICENSE/NOTICE, `LICENSE-binary` in the binary archive, headers) and fix or exclude each finding - [ ] Source tree comparison: ATR compares each source archive with the GitHub commit. Check how that works while the release commit only lives in the release manager's fork; staging in apache/wicket (#1720) would make the commit available. - [ ] Decide whether to publish a CycloneDX SBOM (ATR scores one if present) ### Mock releases - [ ] Find out whether a draft release in ATR can be deleted, and how mocks stay out of the release catalog - [ ] Roll `11.1.0-rc1` end to end: build, upload, checks, vote to a non-public address, cancel or finish, drop the Nexus staging repository - [ ] Repeat until a mock goes through without manual fixes, and record what each attempt found here ### First real release and afterwards - [ ] Announce on dev@ that the next release goes through ATR, with what changes for voters - [ ] Release 11.1.0 through ATR - [ ] Bring the script changes to `master` and `wicket-10.x` - [ ] Later: uploads from GitHub Actions. This needs ASF Security approval that the build is reproducible (#1941 shows it is) and an automated signing key from Infra. - [ ] Later: follow [tooling-trusted-releases#1918](https://github.com/apache/tooling-trusted-releases/issues/1918) for Maven Central publishing through ATR Related: #1720 (staging in apache/wicket), #1757 (promote script on JDK 17+), #1941 (reproducible builds), #1875 (contributors in release notes). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
