Repository navigation
CI planner: Db2 shard setup from measured timing, predicted shard ratio (Part of #5919) - #6059
Merged
Merged
Conversation
…io (Part of #5919) db2_shard_plan.py: the median measured setup of recent Db2 shards (clamped, with a fallback) replaces the typed DB2_SETUP_S when det_sweep_plan.py is given --timing, and the plan reports the predicted slowest/fastest ratio. No workflow edits. 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 20:29
squid-protocol
enabled auto-merge (squash)
October 22, 2026 20:32
Owner
Author
|
No description provided. |
1 similar comment
Owner
Author
|
No description provided. |
This was referenced Oct 22, 2026
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 (slice 4: Db2 shards in Det Sweep / Evidence Refresh). Planner + tests only, no workflow edits.
What
tests/tools/db2_shard_plan.py(stdlib):measured_setup_s(mediansetup_sof recent Db2 shards fromdet_sweep_timingrows; needs 3 usable rows, clamped to 0.5-2x the typed value, else the fallback),predicted_ratio/ratio_warning/plan_check(slowest/fastest planned shard vsdet_sweep_timing.MAX_RATIO1.3, before the shards run).det_sweep_plan.py: optional--timing DIR...feeds the measured setup intodb2_shards_for,timeouts_forandevidence_plan(new optional params, default unchanged);emitaddsdb2_ratioonly when there is a Db2 matrix and warns over 1.3x. The module is imported lazily so Evidence Refresh's sparse checkout still works without it.--timingthe output is unchanged (existing tests green).Class table
DB2_SETUP_S) typed--timing(here)SHARD_SETUP_StypedCross-repo
None.
Owner items (workflow edits, out of scope)
tests/tools/db2_shard_plan.pyanddet_sweep_timing.pyto Evidence Refresh's lane sparse-checkout list before passing--timingthere.--timing.Lessons for agents
pr_gates --fastuses ruff 0.17.0 from~/.cache/gitgalaxy/ruff-0.17.0/bin/ruff(the 0.16.10 path in the worker doc is a stale directory).Gates:
pr_gates --fast7/7,audit_checkclear, tree-wide guards + time ratchet (296 tests, 0 over). Ratchets/golden not run: no parser code touched.🤖 Generated with Claude Code