Repository navigation
equivalence: generate BMS symbolic maps atomically (intermittent red Evidence Refresh, #4977) - #4978
Merged
Merged
Conversation
…s saw a half-written set; Db2 sweep red, #4977) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
…threads; a per-pid name raced, #4977) The first fix named the temp directory by pid, but the det sweep runs its cases as threads of one process, so they shared it and rmtree'd each other's half-written set (6 det cases NOT PROVEN on #4978's CI). Use mkdtemp per call and add a threaded regression test (fails on both earlier versions). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
The first CI run failed Fixed in 9b7e91e: a unique |
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 the intermittent red Evidence Refresh on main (#4977).
What fails: the
db2aggregate job ("Merge the Db2 shards and apply the ratchet") reports one case NOT PROVEN. The case was cbsa-bnk1cac on 2026-10-11 (run 38130815904) and cbsa-bnk1cra on 2026-10-12 (run 38240041698). In both, the proof log shows GnuCOBOL failingCOPY BNK1CDM/BNK1CAMwith "No such file or directory". 2 of the last 3 scheduled runs failed; manual dispatches passed.Why:
bms_dir()intests/tools/equivalence_common.pygenerated the BMS symbolic maps onlyif not out.is_dir().bms_copybookscreates that directory before writing the.cpyfiles. The sweep runs cases in parallel (--jobs 4), so on a cold runner a second case could see the directory and stage a half-written set.Fix: generate into
<name>.tmp<pid>and rename it into place. If another process wins the rename, discard this copy and use theirs.Checked:
pr_gates --fast5/5 pass.--ratchetsports and port-surface fail locally only because the carddemo corpus isn't fetched at its pinned ref on this box; the result is the same with and without this change. After CI, aworkflow_dispatchof Evidence Refresh confirms the fix. #4977 closes itself on the next green run.🤖 Generated with Claude Code