Skip to content

Version each stable line from its head, one Version Packages job at a time - #9192

Open
craigmichaelmartin wants to merge 1 commit into
mainfrom
version-packages-per-line
Open

craigmichaelmartin wants to merge 1 commit into
mainfrom
version-packages-per-line

Conversation

@craigmichaelmartin

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

On a push to stable/*, the Version Packages job versions the pushed commit and force-pushes changeset-release/stable/X.Y. Push runs aren't serialized (the workflow's concurrency group is unique per run) and don't always start in push order. So when two pushes land close together, the job for the older push can finish last and leave the bump branch versioning an older commit. A slow job can also recreate the bump branch after its release merged and the branch was deleted.

WHAT is this pull request doing?

  • Runs the Version Packages jobs one at a time per line, in order. None is cancelled, so every run still decides whether its own push publishes.
  • Skips the bump in a job whose commit is no longer the line's head. The job for the head versions the line.

How to manually test your changes?

A single push behaves as before. After two pull requests merge into a stable line in quick succession, the parent of changeset-release/stable/X.Y's head is the line's head, and the older push's Version Packages job logs that the line has moved on.

🤖 Generated with Claude Code

… time

Push runs aren't serialized and don't always start in push order, so a slow job for an older push
could force-push a bump of an older commit after the job for a newer one, or recreate the bump
branch after its release merged. Queue the Version Packages jobs per line, and skip the bump in a
job whose commit is no longer the line's head.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@craigmichaelmartin
craigmichaelmartin requested a review from a team as a code owner November 25, 2026 13:18
@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant