Skip to content

det sweep merge: tolerate identical duplicate shard results, fail on conflicts (#5107) - #5113

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5107-20261014T1345Z
Oct 14, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5107-20261014T1345Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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_sweeps raised in two shards on 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 except seconds (first kept); copies that differ raise in two shards with conflicting results, naming both files and the differing fields. missing_cases is 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 --fast 6/6, --ratchets 7/7 (none skipped).

Cross-repo

None.

🤖 Generated with Claude Code

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

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 14, 2026 13:54
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 14:19
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol
squid-protocol merged commit 01da528 into main Oct 14, 2026
77 of 79 checks passed
@squid-protocol
squid-protocol deleted the churn/5107-20261014T1345Z branch October 14, 2026 16:29
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]>
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.

CI det: merged sweep fails 'in two shards' (shard split not stable across a run)

1 participant