Repository navigation
Det sweep speed-up: shards, affected-cases-only, COBOL cache (#4463 follow-up, closes #4476) - #4497
Conversation
… in CI (#4463) Four det ports stopped proving on 2026-10-04 (bisected): - mortgage-cmort / mlist / nbrvl: since 2d7052c (#4245, every program of a multi-program source read), IBM DBB EPSCSMRD's CURRENT-CONDITION field CASE became the entity field `private Integer case;` -- a compile error. The generator's Java keyword list (java_identifier) lacked case, if, for, etc.; it now holds every JLS 3.9 keyword. - carddemo-menu: since 737cab8 (#4049), scenario option-12-typed-over sent option 99; COMEN01C still subscripts its 12-entry table with it, 4K past the record (oracle_assumptions.md X8: the det port stops). The scenario now sends 12, inside the table; the model port is re-proven (evidence refreshed). CI: .github/workflows/det-sweep.yml runs proof_sweep.py --det-only --skip-db2 on translator / harness / case changes and nightly (cancel-in-progress, 60-minute timeout). proof_sweep gains --skip-db2. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
# Conflicts: # docs/language_status/evidence/carddemo-menu.md # tests/equivalence/carddemo-menu/evidence.json
…det ports (#4463) tests/equivalence/det_sweep_baseline.json lists each det port the sweep does not prove, with its issue: 21 CICS ports whose runTask proof passes but whose det-generated java-facade is a stub (#4465), plus the three long-standing ones. CI fails on a new not-proven port and on a baselined one that now proves; --update-baseline drops the stale entries. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Handoff (agent stopped on usage limit). |
…; rebaseline signon - tests/tools/equivalence_cobol_cache.py removed with its hook in run_cobol_step and the workflow's cache/prune steps: it saved no reliable time (the Java build and the fault runs dominate a proof). The #4476 fix stays: a --reuse step whose run.sh differs runs afresh (and the step chowns its outputs). - test_mutation_tooling: the --reuse test still expected the old RuntimeError; it now asserts the #4476 fallback (fresh run, mocked docker). This was the full-suite and ground-truth CI failure. - det_sweep_baseline.json: carddemo-signon now proves on origin/main too (proof_sweep.py --update-baseline). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
Follow-up to #4463 / #4466. Closes #4476.
Det Sweep speed-up: a
planjob (affected cases only when a PR touches only case files, full otherwise and nightly), a 6-way shard matrix balanced by recorded durations, a GnuCOBOL oracle-image cache (docker save/load, still checked byequivalence_oracle.py --strict), and the--reusefix for #4476 (a step whoserun.shdiffers from the earlier run's runs afresh instead of raising; the step chowns its outputs back to the caller).Dropped: the COBOL-side step cache (
equivalence_cobol_cache.py). It saved no reliable time. Full sweep: no cache 10m14 vs warm cache 12m33. 3-case runs: cold 698s, warm 185s, off 247s, and cold vs off is the same work, so box load accounts for differences of that size. CPU time barely moved: the Java build and fault runs dominate a proof, not the COBOL step. Dropping it removes ~190 lines, a module and two workflow steps.CI failures on be3336b, diagnosed
tests/cobol_mainframe/test_mutation_tooling.py::test_a_reused_cobol_step_must_be_the_same_stepstill expected the pre-porting_loop: --reuse fails (baseline COBOL run.sh missing), so model ports can't be regenerated after a generator change (cbsa-inqacc, #4471) #4476RuntimeError. Ground-truth runspytest tests/cobol_mainframe/, so the same test failed it too. The test now asserts the porting_loop: --reuse fails (baseline COBOL run.sh missing), so model ports can't be regenerated after a generator change (cbsa-inqacc, #4471) #4476 fallback (a fresh run, with docker mocked).concurrencygroup (workflow-PR number,cancel-in-progresson pull_request, as CI: cancel superseded PR runs and move the full OS x Python matrix to nightly/main (PR CI 2h -> minutes) #4518 asks) is the only one. No job-level group is shared across shards, andfail-fast: false.Equivalence after merging main (#4490, #4498, #4504)
Full sweep (no cache,
--jobs 4) vs 6 shards (--shard i/6) merged: 37/37 cases, per-caseproved+ coverage + translated identical (0 diffs). 34 proved.--aggregate --expect all: "sweep: as expected" on both. Timings with box load ~17-25: full 18m56; shards 4m09, 3m24, 4m14, 5m53, 3m30, 3m03.carddemo-signonnow proves. I checked origin/main without this PR (det_port.py run carddemo-signonthere: PROVED), so the change comes from main, not this PR. Its baseline entry was dropped withproof_sweep.py --update-baseline.Gates (local)
pr_gates.py: 7/7 pass (lint, audits, secrets, xray, gauntlet, golden, suite).pr_gates.py --ratchets: 5/5 pass (ports, estate, fact-crosscheck, completeness, ground-truth). None were skipped.🤖 Generated with Claude Code
https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR