Repository navigation
Det Sweep: non-Db2 shard count from measured durations (Part of #5919) - #6088
Merged
Merged
Conversation
… of #5919) shards_for takes the durations (and the queue depth): the fewest runners whose slowest fits SHARD_TARGET_S, at most MAX_SHARDS, reduced until the planned slowest/fastest ratio is <= 1.3. Without durations the fixed fallback stays. No workflow edit. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 22, 2026 23:35
squid-protocol
enabled auto-merge (squash)
October 22, 2026 23:38
Owner
Author
|
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.
Part of #5919 (step 2 of the Opus rescue plan). Replaces the fixed
MAX_SHARDS=6/PER_SHARD=3for the non-Db2 Det Sweep shards with sizing from the measured durations viaci_shard_plan(already imported lazily by the planner).det_sweep_plan.shards_for(p, durations, waiting): fewest runners fittingSHARD_TARGET_S(10 min), capped bypool_cap(MAX_SHARDS, waiting), then reduced while the planned slowest/fastest ratio is over 1.3.PlanErrorwhen too many cases are unmeasured. No durations: the old fixed fallback.emit()passes durations/waiting and emits the plannedratio.proof_sweep.shard_cases; growth with work; fallback; real durations file.ci_layoutimport or mention (step 1 waits for the owner /allow_workflows).Cross-repo: none.
Gates:
pr_gates --fast7/7; det-sweep, ground-truth-plan, shard-plan tests green (plainpytestfrom/tmptoo). Real plan (--event schedule): 3 shards, ratio 1.0.Class table
Class: a det-sweep runner count fixed in the planner instead of sized from measured durations.
shards_for,MAX_SHARDS/PER_SHARD)timeouts_for)db2_shards_for)evidence_plan)allow_workflowsSibling gaps
None in code. Steps 1, 3 and 4 of the plan in #5919 are workflow edits (not tied to a burned-estate program); step 5 is the calibration check after they run.
Lessons for agents
Checklist: partial -- step 2 only; steps 1, 3, 4 need workflow edits.
🤖 Generated with Claude Code