Skip to content

Reject stale CI reruns before publishing automatic releases - #9

Merged
MDHaarith merged 1 commit into
mainfrom
fix/release-stale-ci-reruns
Oct 22, 2026
Merged

MDHaarith merged 1 commit into
mainfrom
fix/release-stale-ci-reruns

Conversation

@MDHaarith

Copy link
Copy Markdown
Owner

An old CI run could be rerun after newer main commits and publish its old checkout as the next patch release. Automatic releases now compare the checkout against the live main tip after acquiring the workflow concurrency lock, and reject stale commits before selecting a version. The guard stays in the workflow so it also covers checkouts that predate changes to the version script.

Addresses the stale-rerun finding from #8, which is already merged. The other finding, that concurrency.queue is unsupported, is a false positive: GitHub documents queue: max, so the existing queue setting is retained.

Validation: all five release tests pass. The new regression executes the actual workflow shell against a local Git origin and covers current/stale automatic runs and explicit manual/tag releases. Confirmed it fails against the original workflow. Both workflow files parse as YAML and all embedded shell steps pass bash -n.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T20:40:12.691454Z 28b4765 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@MDHaarith
MDHaarith merged commit f6bf53c into main Oct 22, 2026
4 checks passed
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