Repository navigation
Det Sweep: plan Db2 shards with 20% headroom and a long-pole floor (Part of #5882) - #6567
Conversation
…art of #5882) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #6567 @ 068e785: 1 failed check(s) == shard 3 (1667394 LOC) (failure) -- real |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
PR #6567 @ 9e05252: 1 failed check(s) == shard 3 (1667394 LOC) (failure) -- real |
… are no calls) Bisected: eternity passes at 8545798^ and drifts at 8545798 (callgraph_engine_only 128 -> 73, misses 28 -> 31, precision 0.9797 -> 0.9831, recall 0.9982 -> 0.998); doom-rosetta did not run on that PR. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
No description provided. |
Part of #5882 (planner headroom slice named in
docs/agents/det-sweep-db2-acceptance.md).What
The Db2 shard count was the fewest whose planned slowest fit the full 15 min budget, so run-to-run noise (case seconds move 30-50%) put ~3 plans in 4 over it. Also a shard's time was modelled as
setup + load / jobs, hiding a long case (cbsa-bankdata, 432 s) that--jobscannot split.ci_shard_plan.py:HEADROOM= 0.8,shards_for(..., headroom=1.0), newshard_seconds(setup + max(work / jobs, longest case)), used byshards_forandtimeout_minutes.det_sweep_plan.py: Db2 shards plan withDB2_HEADROOM;db2_timeoutuses the long-pole-aware seconds. Non-Db2 shards and Evidence Refresh keep headroom 1.0.proof_sweep.split_cases. No change there.Class / Sibling gaps
Class: a shard-count planner that sizes against the whole budget with no noise headroom and no long-pole floor. Members: Db2 shards (headroom added), non-Db2 det shards and Evidence Refresh sweep/records (get the long-pole floor, headroom unchanged),
timeouts_fordb2 (floor). Sibling gaps:DB2_MAX_SHARDScap (6) is hit, see below; no fail-loudlyPlanErrorwhen the cap cannot fit the unscaled target (existing tests pin cap-holds behaviour; not done here).Sizing (ci-workflows.md)
Replay, committed durations, 81 Db2 cases, setup 420 s, jobs 4:
Cost: +2 Db2 runners per full sweep, each with a ~4-7 min Db2 start (~10-14 runner-min). Note the 720 s headroom target is not reachable inside the cap of 6, so the plan takes the cap; the gain is shorter, balanced shards (planned ratio 1.006). Not replayed over the last 50 PRs (no
sweep_plan --replayrun): the change only affects PRs already planningdb2_cases: allor large Db2 sets. Remaining: raiseDB2_MAX_SHARDS(6+6+plan+det = 14 of 20 jobs)? and re-measure on the next full sweep; #5882 stays open.Tests
test_ci_shard_plan.py(headroom boundary, long-pole floor, pole placement, Db2 plan fits headroom target, committed durations),test_db2_shard_plan.pyratio assertion loosened. Shard/plan tests, tree-wide guards,pr_gates --fastpass. Ratchets not run (no engine/golden change).🤖 Generated with Claude Code