Skip to content

ci(release): tag with one script, forward-port at merge and hold CI while a tag starts - #4163

Merged
datlechin merged 1 commit into
mainfrom
ci/release-tag-script
Nov 9, 2026
Merged

datlechin merged 1 commit into
mainfrom
ci/release-tag-script

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • apple/scripts/release/tag.sh <tag> <commit> runs apple/RELEASING.md, Tagging: waits for the line's CI push run on the commit (gh run list --commit, gh run watch --exit-status), git tag -s, version.py check, git push origin <tag> (a failed check runs git tag -d), then finds and watches the tag's Release run. A run that has not appeared yet is looked up again every 10 s for a minute.
  • Tagging calls the script. Release jobs get no priority on hosted runners, so it starts when no other CI run is in flight, and nothing merges and no pull request is pushed until the tag's App and Plugins jobs start.
  • Forward-port: the release commit goes to main (and a newer open line) once the release PR merges and the tag's App and Plugins jobs start, not after publishing. The docs changelog PR still waits for publishing.
  • Cutting a stable step 6 forward-ports; Cutting a beta step 1 says the forward-port needs only the release PR merged, so beta.1 no longer waits 4 to 5 h for the stable.
  • A stable that never published: the next release PR's revert reaches main and the newer line through its forward-port.
  • The release skill points to the script and the new forward-port timing.

Test plan

  • test_tag.py runs tag.sh in a throwaway repository with a bare origin and stub gh, gpg, sleep and version.py: a green run and check push a signed tag and watch its Release run; a red CI run tags nothing; a failed check deletes the local tag and pushes nothing; a missing CI run is looked up six times, then refused; a missing argument prints the usage.
  • shellcheck --severity=style and check-lib-sourcing.py pass; the release tooling tests pass locally.
  • Not reviewed by Codex: its usage limit runs until 2026-11-14.

@datlechin
datlechin merged commit 402822c into main Nov 9, 2026
11 checks passed
@datlechin
datlechin deleted the ci/release-tag-script branch November 9, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant