Repository navigation
det sweep merge: tolerate identical duplicate shard results, fail on conflicts (#5107) - #5113
Merged
Merged
Conversation
…il only on conflicting results (#5107) Shards split on the durations file they restore when they start; a nightly cache save between two queued shards gives them different splits, so a case lands in two shards. merge_sweeps now keeps the first copy when the copies agree on everything but seconds and raises (naming the differing fields) when they disagree. missing_cases still names a case no shard proved. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2 tasks
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 14, 2026 13:54
Contributor
squid-protocol
enabled auto-merge (squash)
October 14, 2026 14:19
Owner
Author
|
No description provided. |
This was referenced Oct 14, 2026
squid-protocol
added a commit
that referenced
this pull request
Oct 14, 2026
…ical repeat (Fixes #5143) (#5149) #5113 made merge_sweeps accept a case two shards both proved identically; this test still expected the repeat to raise. It now asserts the repeat merges once and a copy that disagrees on a non-timing field still raises. Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.
Fixes #5107.
Cause
Each det shard computes its own split (
split_cases(cases, N, load_durations())) from the durations file it restores when it starts (newest nightly cache). With a long queue, a nightly cache save can land between two shards, so they split on different files and one case is proved in two shards.merge_sweepsraisedin two shardson any duplicate, even an identical one. (Inferred from the issue's timings; the run logs were not inspected.)Fix (no workflow edit)
tests/tools/proof_sweep.py::merge_sweeps: a case in two shards is accepted when the copies agree on everything exceptseconds(first kept); copies that differ raisein two shards with conflicting results, naming both files and the differing fields.missing_casesis untouched, so a case no shard proved is still reported.Tests (
tests/cobol_mainframe/test_det_sweep_fast.py)identical duplicates merge (all sweep keys); every field conflict (proved, coverage, called_holes, translated, uncovered, linked, a new field) raises and names the field; the #5107 split-on-different-durations scenario merges and still reports the gap.
Gates
pr_gates --fast6/6,--ratchets7/7 (none skipped).Cross-repo
None.
🤖 Generated with Claude Code