Stage release candidates in apache/wicket without the rel/ tag, then protect rel/ tags
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Start with release.sh, revert-$version.sh, promote-$version.sh, and .asf.yaml; compare the three release branches noted in the issue, since the scripts need changes on each while the ruleset belongs on master. Confirm apache/wicket permits deleting a release candidate tag, then verify staging, rollback, promotion, tag protection, and Nexus staging repository selection. Done means failed votes leave no rel/* tag, successful promotion publishes the final tag, and protected release tags cannot be deleted or force pushed.
索引モデルが issue の本文から書いたものです。
説明
release.sh pushes the build branch build/wicket-$version and the signed release tag rel/wicket-$version to a remote called staging, which the script's own instructions describe as a fork on the release manager's GitHub account. revert-$version.sh undoes a failed vote by deleting both from that remote, and promote-$version.sh pushes the tag to origin once the vote has passed.
With staging pointing at apache/wicket, the release tag lands in the project repository before the vote. Nothing in the repository guards release tags: the ruleset in .asf.yaml lists rel/*, but as type: branch, so it protects branches named rel/... (there is one, rel/wicket-9.8.1) and not the rel/wicket-* tags. A withdrawn release candidate therefore has to be cleaned up by deleting its tag by hand, and every clone that fetched the tag in the meantime keeps it, so a later git push --tags from a committer's clone puts it back. This happened with 9.25.0: its release candidate was staged in apache/wicket and withdrawn, and rel/wicket-9.25.0 had to be deleted.
Staging in a personal fork avoids that, but it puts the release candidate in a repository the project doesn't own, and every release manager needs a fork set up for it.
Expected
- The release candidate is staged in apache/wicket under refs that can be removed again: the
build/wicket-$versionbranch and a release candidate tag outsiderel/, for examplerc/wicket-$version-rc1. refs/tags/rel/*reaches apache/wicket only throughpromote-$version.sh, after a passing vote.revert-$version.shremoves the branch and the release candidate tag, so a failed vote leaves nothing behind and the same version can be rolled again.- Once that holds,
rel/*tags are protected against deletion and force pushes.
Approach
Keep the tag that release:prepare creates locally as rel/wicket-$version. The release plugin also writes that name into <scm><tag> of the released poms, and the poms on Maven Central should point at the final tag, not at one that is deleted after the vote. Only the name under which the tag is pushed during the vote changes:
# release.sh
git push origin $branch:refs/heads/$branch
git push origin refs/tags/$tag:refs/tags/$rc_tag
# revert-$version.sh
git push origin --delete refs/heads/$branch refs/tags/$rc_tag
# promote-$version.sh
git push origin $tag
git push origin --delete refs/tags/$rc_tag refs/heads/$branch
Further changes in release.sh:
- drop the check that requires a
stagingremote; - the clean-up at the start removes only
$rc_tagand$branch, never$tag; release-vote.txtnames apache/wicket and$rc_taginstead of the staging remote;- number the release candidate tag, so a re-roll can't be confused with the attempt voters already fetched.
Before relying on it, confirm that apache/wicket allows deleting a tag outside rel/.
Tag protection
A release tag should not change once the release is out, and .asf.yaml can enforce that. GitHub retired the old tag protection (the protected_tags setting in .asf.yaml is no longer applied), but .asf.yaml rulesets accept type: tag:
rulesets:
- name: "Release Tag Protection"
type: tag
refs:
includes:
- "refs/tags/rel/*"
bypass_teams:
- root
restrict_deletion: true
restrict_force_push: true
This only becomes safe after the staging change above. As long as release.sh pushes rel/ before the vote, a protected tag turns a withdrawn release candidate into a version number that can't be released anymore. .asf.yaml is read from the default branch, so the ruleset only needs to be added on master.
Staging repository id
The Nexus goals rc-close, rc-drop and rc-release need the full staging repository id, orgapachewicket-NNNN. The same part of release.sh gets that wrong on three lines:
masterandwicket-9.xstrip the prefix (sed 's/orgapachewicket-//'), sorc-closeand the generated promote and revert scripts fail withMissing staging repository.wicket-10.xfixed this in 1fe5c5c3b5.wicket-8.xselects withgrep -v "OPEN"andgrep -Eo "(orgapachewicket-\d+)".grep -Edoesn't support\d, so the id comes out empty.- Every line takes the first
orgapachewicket-*repository in therc-listoutput that isn't CLOSED, which isn't necessarily the one the release just deployed to.
Branches
The release.sh changes are needed on every line that still releases; the tag ruleset goes on master only.
-
master(11.x) -
wicket-10.x -
wicket-9.x -
wicket-8.x
- 主要言語
- Java
- スター
- 800
- フォーク
- 437
- 平均マージ
- 21時間 36分
- マージ済み PR(30日)
- 167
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/wicket のほかの issue
-
PropertyResolver fails on JDK classes with a non-public field named like the property対応中かも @vaibhavgupta443 が今日担当しました。 オープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/wicket#1991 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Stop the autocomplete from accumulating request parameters while typing対応中かも @aryankalantri が今日担当しました。 オープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
apache/wicket#1947 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Validate the report-uri value given to CSPHeaderConfiguration#reportBack対応中かも @AzizOuertani が 3 日前に担当しました。 オープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/wicket#1946 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
メンテナーはふだん 6 日以内に返信
-
account assessment course feature lecture
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
bug db/dameng user-priority/P2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
app:learninggoalhub enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100