Repository navigation
shepherd: no infra rerun while a newer run of the workflow is live on the PR - #7036
Merged
Merged
Conversation
… the PR A rerun joins the workflow's per-PR concurrency group, and cancel-in-progress then cancelled the newer run already testing the head (#7026 at 19:53Z, #6971 at 05:44Z). That run's cancelled shards failed its gate jobs (det, equivalence-e2e, crucible), which triaged infra and were rerun in turn, so the PRs stayed red with nothing wrong in them. _attempts now also reads the workflow's runs on the PR branch (one call per failed run); while another run is queued or in progress the failure stays shepherd:retrying without a rerun, and the next pass decides on that run's result. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it fixes. The shepherd's infra/flake rerun was cancelling the CI run that was actually testing the PR.
The heavy workflows (Det Sweep, Equivalence E2E, CICS Crucible) use a per-PR concurrency group with
cancel-in-progress. Re-running an older run's failed jobs puts that run back into the group, so GitHub cancels the newer run already testing the head. The newer run's gate jobs (det,equivalence-e2e,crucible) then fail because their shards were cancelled. Those failures triage as infra, so they get rerun too, and the PR stays red with nothing wrong in it.Change (
tests/tools/shepherd_gh.py):_attemptsalready reads the failed run. It now also reads that workflow's runs on the PR branch, one extra call per failed run.shepherd:retryingwith no rerun. The next pass decides on that run's own result.Tests:
test_shepherd_gh.py+test_ci_shepherd.py: 200 passed.pr_gates.py --fast: 9/9.Not changed:
rerun_det(theshepherd:fullrequest), which re-runs the newest Det Sweep run on purpose.🤖 Generated with Claude Code