Repository navigation
ci: det-sweep plans a PR that adds cases; the plan step fails loudly; shepherd skips an auto-merge already off - #7605
Merged
Conversation
… shepherd skips an auto-merge already off Det Sweep went red on #7598 with "no shard reported a sweep.json". The real fault was earlier: the PR adds three cases (cruc-gt-*), none can have a measured duration, ci_shard_plan.check_measured allows two, and the planner raised PlanError. The plan step piped it through `tee` without pipefail, so the job reported success with no outputs, the shards were skipped, and `det` failed on a missing sweep.json. - det_sweep_plan.new_cases: a changed tests/equivalence/<case>/case.json absent at the merge base. Those cases weigh the median and do not count against the unmeasured allowance (non-Db2 and Db2 shards, both plans). The guard still holds for cases that exist at the base. - det-sweep.yml: both plan steps use `shell: bash` (-e -o pipefail), so a planner crash fails the plan job where it happened. - shepherd_gh: "Can't disable auto-merge for this pull request" (auto-merge is not on) is logged as skipped, not FAILED; #7594's label-event check went red on it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvf2aRvMjAx5eu3BDUj
Contributor
Contributor
|
No description provided. |
1 similar comment
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 this fixes
Two false red checks on open PRs:
Det Sweep on #7598: "no shard reported a sweep.json". The real failure happened earlier, in the plan job:
cruc-gt-http-inbound,cruc-gt-web-server-receive,cruc-gt-web-server-send). No sweep can have measured them yet.ci_shard_plan.check_measuredallows two unmeasured cases, sodet_sweep_plan.pyraisedPlanError: 3 of 3 cases have no measured duration.| teewithoutpipefail. The crash was swallowed, the plan job reported success with no outputs, the shards were skipped, anddetfailed on the missing sweep.json.Any PR adding three or more cases hits this.
CI shepherd (label events) on #7594: "Can't disable auto-merge for this pull request". GitHub returns this when auto-merge is not on. The state the shepherd asked for already holds, but the step logged FAILED and exited 1.
Changes
det_sweep_plan.new_cases: cases whosetests/equivalence/<case>/case.jsonis absent at the merge base. They weigh the measured median and don't count against the unmeasured allowance, in both the non-Db2 and Db2 shard plans and in both the first plan and the--portsplan. The guard still raises for unmeasured cases that exist at the base (so "the durations cache is not being fed" is still caught).det-sweep.yml: both plan steps now useshell: bash(-e -o pipefail), so a planner crash fails the plan job where it happens instead of passing silently.shepherd_gh: that GitHub error on "auto-merge off" is logged asskipped (auto-merge already off); any other error is still FAILED.Evidence
PlanErrorabove. With this planner:mode narrow, 3 cases, new_cases = all 3, 1 shard.new_casesstill raise;new_casesreads only absent-at-basecase.json; the auto-merge skip, plus another error still failing.test_det_sweep_plan.py+test_shepherd_gh.py: 220 passed; shard-plan suites: 125 passed.Workflow edit under the standing workflow grant (not a
shepherd-*.yml).After merge, #7598 needs its branch updated (a rerun reuses the old merge commit and the old planner).
🤖 Generated with Claude Code
https://claude.ai/code/session_018srRvf2aRvMjAx5eu3BDUj