Skip to content

Release from the newest green main commit - #1597

Merged
JacobStephens2 merged 3 commits into
mainfrom
issue-1588
Oct 29, 2026
Merged

JacobStephens2 merged 3 commits into
mainfrom
issue-1588

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

- wait for main's tip → bump → PR checks → merge → tag the merge
+ newest green main commit → bump → PR checks → tag the bump → merge

Main can move during a release. A failed post-tag merge leaves the release standing and names the bump PR for the Day shift. Resuming recognises the tagged bump head and finishes merging and publication. Release notes retain the bump PR's summary at the new tag location.

Closes #1588

Evidence

  • Before: cargo test --test release a_pending_main_tip_releases_the_newest_already_green_commit_without_waiting -- --exact failed: the bump used the pending tip after waiting instead of the older green commit.
    After: the same regression passes. cargo test --test release -- --test-threads=3 passes (87 passed, 2 fixture entry points ignored), covering tag ancestry, concurrent main changes, merge failure, checks, resume and Experiment preservation.
  • The release-notes CLI regression failed with the summary missing from a bump-head tag, then passed after updating PR lookup.
  • RUST_TEST_THREADS=3 NEXTEST_TEST_THREADS=3 scripts/affected-tests main passed: all 54 site/browser checks, the full Rust suite (cargo test, 1905.67 seconds including compilation), and release-generator tests. Bash syntax, Rust formatting and diff whitespace checks also passed.

Test seams

  • scripts/release.sh CLI against a local Git origin and fake GitHub/Harness commands: base selection, version-only bump, tag/merge order, failures and resume.
  • scripts/release-notes.sh CLI: the tagged bump PR's summary in published release notes.

Review coverage

Independent thirdshift-code-review reviews against main: Standards 0 findings; Spec 0 findings. Both axes read all ten changed files, including the generated manual. Generated-output exclusions: none. Changed files left unread: none.

Unaddressed findings

  • Standards: none.
  • Spec: none.
  • Security: none.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

The script change can be reverted. Tags published by a release stay in place, including when its bump PR needs a manual merge.

Blast Radius: releases

Changes the release base, tag target and publication order, plus release-note lookup and documentation. CI and release workflows remain unchanged.

Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh

release-notes.sh published the summary of the first pull request whose
head was the tagged bump commit. A pull request from another repository
can point at that commit and be listed first. The notes now come from
the origin release-<version> pull request, or from the pull request
merged as the tagged commit.
@JacobStephens2
JacobStephens2 merged commit d83427b into main Oct 29, 2026
18 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1588 branch October 29, 2026 03:41
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 29, 2026
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.

release.sh: tag the version bump on a main commit whose CI already passed

1 participant