Skip to content

ci: det-sweep plans a PR that adds cases; the plan step fails loudly; shepherd skips an auto-merge already off - #7605

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
fix/det-plan-new-cases
Nov 3, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
fix/det-plan-new-cases

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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:

  1. ladder: cics-crucible ghost-tasks GTHECHO, GTWRECV, GTWSEND to L4 (Part of #7434) #7598 adds three new cases (cruc-gt-http-inbound, cruc-gt-web-server-receive, cruc-gt-web-server-send). No sweep can have measured them yet.
  2. ci_shard_plan.check_measured allows two unmeasured cases, so det_sweep_plan.py raised PlanError: 3 of 3 cases have no measured duration.
  3. The "Plan the sweep" step pipes the planner through | tee without pipefail. The crash was swallowed, the plan job reported success with no outputs, the shards were skipped, and det failed 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 whose tests/equivalence/<case>/case.json is 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 --ports plan. 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 use shell: 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 as skipped (auto-merge already off); any other error is still FAILED.

Evidence

  • Replay on ladder: cics-crucible ghost-tasks GTHECHO, GTWRECV, GTWSEND to L4 (Part of #7434) #7598's head: the main planner raises the PlanError above. With this planner: mode narrow, 3 cases, new_cases = all 3, 1 shard.
  • New tests: new cases plan fine; the same cases with no new_cases still raise; new_cases reads only absent-at-base case.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.
  • No new ruff findings in the changed modules; the workflow parses as YAML.

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

… 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
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 3, 2026 15:32
@squid-shepherd
squid-shepherd Bot merged commit f8aef26 into main Nov 3, 2026
51 checks passed
@squid-shepherd
squid-shepherd Bot deleted the fix/det-plan-new-cases branch November 3, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant