Skip to content

equivalence: clear the COBOL fault log before a fault step so --reuse stops doubling it (Part of #4047) - #5748

Merged
squid-protocol merged 3 commits into
mainfrom
churn/4047-20261020T1440Z
Oct 20, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/4047-20261020T1440Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Part of #4047. Checklist: partial [c:0f9790f1] -- slice 1 of 3 (fault-log fix; slice 2 re-runs mutation.py compare, slice 3 flips the --one-jvm default).

Cross-repo

None: tests/tools only. Companion work is the later slices of #4047.

What

ggfault.c / the SQL fault shim append to work/FAULTS. equivalence.run_cobol never cleared it, so a second pass over a kept work dir logged each fired fault twice, and --reuse copied that doubled log into every mutant's COBOL side: "faults fired differ: COBOL [x2], Java [x1]" = a false kill on posttran open-dalytran (every fast mutant killed). Evidence: open-dalytran/cobol/FAULTS held DALYTRAN OPEN 1 35 twice in the fast/one-jvm/full baselines, once in a fresh run.

  • equivalence.fresh_fault_log(work, fault): removes work/FAULTS before a fault step that is not reused (a reused step keeps the earlier log).
  • equivalence_java.py: the Java fault area's out/FAULTS is cleared before the run (same append log).
  • tests/tools/test_equivalence_reuse_faults.py: doubled/clean/empty log, main run untouched, reused step keeps the earlier log, two passes log once.

Class

--reuse state that is not idempotent (append-mode fault logs). Batch FAULTS (incl. SQL faults, same file) and the Java fault area: handled. CICS faults.txt: already cleared by rmtree(work/"scenarios") (equivalence_cics.py:3257), no change.

Evidence

Fast mode on carddemo-posttran, the same 30-mutant --only set as the earlier full run: 24 killed, 4 survived, 2 stillborn; every mutant the full run judged agrees (0328895b0b, df62c6ebf3 survive in --full too). Before: 28/28 killed. Six mutants have error in the old full reference (full's own errors), so they are not judged either way. pr_gates --fast 6/6 pass; new test file passes. No parsing logic touched: no golden bless.

cardlist

No cardlist code change: with the fix, the same 30-mutant --only set in fast mode gives 0 errors (was 13 no report), 21 killed / 6 survived / 3 stillborn, and 29 of 30 agree with the earlier --full (was 12). The no report errors were not a harness defect: the earlier validation's stages shared a work dir (proof/java was deleted under a running proof). One disagreement remains, bbd92e25af (RET, CocrdlicService.java:997): full survived, the batch fast run killed it ("faults fired differ", Java fired the READNEXT/READPREV fault twice). Not reproduced: the same mutant alone, fast (--reuse, --first-difference) and --full, is proven (survives) with the Java log written once. Cause open (suspect: two --jobs sharing the reused baseline's build); slice 2 re-runs compare on a fresh sample.

🤖 Generated with Claude Code

… stops doubling it (Part of #4047)

ggfault.c appends to work/FAULTS; a second pass over a kept work dir doubled each fired
fault, and --reuse copied the doubled log into every mutant, so posttran's fast mode killed
all mutants on open-dalytran ("COBOL [x2], Java [x1]").

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 20, 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 20, 2026 15:04
@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 15:14
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5748 @ be9f150: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39445037826/job/118721744770
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases cbsa-crecust,mortgage-cmort,mortgage-csmrt,mortgage-mpmt,zecs-zecs000,zecs-zecs000:,zecs-zecs003 --work /tmp/gitgalaxy-scratch/ci-digest/sweep
det cases not proven: cbsa-crecust,mortgage-cmort,mortgage-csmrt,mortgage-mpmt,zecs-zecs000,zecs-zecs000:,zecs-zecs003
errors:
det mortgage-csmrt NOT PROVEN proven on 5 scenarios, covering 1/1 paragraphs and 1/2 branches
det mortgage-mpmt NOT PROVEN
det zecs-zecs000 NOT PROVEN
det zecs-zecs003 NOT PROVEN
det zecs-zecs000: NOT PROVEN (no coverage line); a new failure: fix it, or (only with its true cause and issue) add it to tests/equivalence/det_sweep_baseline.json
det cbsa-crecust NOT PROVEN
det mortgage-cmort NOT PROVEN proven on 16 scenarios, covering 6/6 paragraphs and 18/21 branches
##[error]Process completed with exit code 1.
log tail:
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
With the provided path, there will be 138 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-ledger.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 111537
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 2d82975964e9687b2703e190da388f0aa4fc7f72c2c1dc28483ebd2aa4f10334
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12278830754
Artifact det-sweep-ledger has been successfully uploaded! Final size is 111537 bytes. Artifact ID is 12278830754
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39445037826/artifacts/12278830754
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/599860cd-3b2f-49f9-b9b6-efa0aaa6aff0' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 20, 2026
squid-protocol and others added 2 commits October 20, 2026 11:48
… its install placeholders (Part of #5089)

The engine now reads zECS's ZCEXPIRE.idcams as a define whose name keeps @ECS_HLQ@/@Environment@, so stub_files took it as the
file's base ("no data for @ECS_HLQ@...") and zecs-zecs000 went NOT PROVEN on main too. A name resolved through the case's
install_symbols that has a stated vsam now takes that, as before. Found fixing the det check on #5748.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 20, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (4a8a5cc) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 20, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 15:57
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit f661827 into main Oct 20, 2026
48 checks passed
@squid-protocol
squid-protocol deleted the churn/4047-20261020T1440Z branch October 20, 2026 16:28
squid-protocol added a commit that referenced this pull request Oct 20, 2026
…nd 2; bbd92e25af not reproduced (Part of #4047) (#5759)

* equivalence: clear the COBOL fault log before a fault step so --reuse stops doubling it (Part of #4047)

ggfault.c appends to work/FAULTS; a second pass over a kept work dir doubled each fired
fault, and --reuse copied the doubled log into every mutant, so posttran's fast mode killed
all mutants on open-dalytran ("COBOL [x2], Java [x1]").

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* equivalence: a case-stated vsam wins over an IDCAMS define that keeps its install placeholders (Part of #5089)

The engine now reads zECS's ZCEXPIRE.idcams as a define whose name keeps @ECS_HLQ@/@Environment@, so stub_files took it as the
file's base ("no data for @ECS_HLQ@...") and zecs-zecs000 went NOT PROVEN on main too. A name resolved through the case's
install_symbols that has a stated vsam now takes that, as before. Found fixing the det check on #5748.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* mutation: fast mode agrees with --full on fresh posttran and cardlist samples at --jobs 1 and 2; bbd92e25af not reproduced (Part of #4047)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

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.

1 participant