fix(ci): skip a staging run only when a newer commit that starts staging exists #123

Merged
jfraeys merged 1 commit from jfraeys/fix/skip-only-if-restaged into main 2026-10-13 14:30:29 -04:00
Owner

#110 marked a push run stale whenever the branch head moved. Live 2026-10-13: #113 (a manual-trigger workflow, no staged path) merged right after #111; the run for #111 skipped in 5 s as superseded, #113 started no run, so main had no real staging validation and promote did not run.

Now a run is skipped only if the diff from its commit to the branch head touches PROMOTION_STAGED_RE (the same regex the promotion gate uses, kept in sync with this file's paths: by test-promotion.sh). Otherwise it logs [RUN] and validates. Checked on a throwaway repo (A staged, B staged, C docs-only: A skips, B runs) and test-promotion.sh. Merging this touches the workflow file, so it starts the staging run main is missing.

🤖 Generated with Claude Code

#110 marked a push run stale whenever the branch head moved. Live 2026-10-13: #113 (a manual-trigger workflow, no staged path) merged right after #111; the run for #111 skipped in 5 s as superseded, #113 started no run, so main had no real staging validation and promote did not run. Now a run is skipped only if the diff from its commit to the branch head touches PROMOTION_STAGED_RE (the same regex the promotion gate uses, kept in sync with this file's paths: by test-promotion.sh). Otherwise it logs [RUN] and validates. Checked on a throwaway repo (A staged, B staged, C docs-only: A skips, B runs) and test-promotion.sh. Merging this touches the workflow file, so it starts the staging run main is missing. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(ci): skip a staging run only when a newer commit that starts staging exists
All checks were successful
Secret scan / scan (pull_request) Successful in 12s
32b00178a4
A later commit touching no staged path (docs, a manual workflow) started no run but still marked the earlier run stale:
#542 skipped in 5s, so nothing validated the tree and promote was skipped too.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfraeys/infra!123
No description provided.