Repository navigation
evidence: the det coverage ledger reads batch (runs) and CALL (calls) coverage lines (#5008) - #5011
Merged
Merged
Conversation
… coverage lines (WIP, #5008) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nd CALL cases (#5008) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
…ifact extracts one match flat) (#5008) 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.
Closes #5008.
Root cause
det_coverage_ledger.parse_linematched onlyproven on N scenarios, covering .... Each harness counts its own unit(
cobol_coverage.headline'swhat): CICS prints scenarios, batch (equivalence.py) prints runs, CALL(
equivalence_call.py) prints calls. So every batch and CALL det proof yieldedNone.updatesilently skippedthem and the CI
checkonly warned ("proven with no coverage line"). The sweep and the coverage line were fine;the ledger dropped them.
Fix (whole class)
_LINEreadsscenario|run|call(singular or plural); the ledger'sscenariosfield is that count.check()now fails when a proven case has a coverage line it cannot read (an empty line still only warns).An unknown future wording can no longer hide a case from the ledger.
tests/equivalence/*/case.jsonagainstdet_sweep_coverage/*.json:mortgage-csmrtknown unproven,det_sweep_baseline.json)mortgage-mpmtknown unproven, baseline)Regression tests (
tests/tools/test_det_coverage_ledger.py)test_every_case_kind_has_a_harness: everykindin the tree maps to a harness.test_a_proven_case_of_every_kind_gets_a_ledger_entry: reads the unit each harness passes tocov.headline,builds the line a passing proof prints (1 and N units), and requires
buildto write an entry andcheckto pass.It fails on the old regex (4 failures: batch and call, 1 and 3 units).
test_check_fails_on_a_coverage_line_it_cannot_read.No counts are asserted.
Local det sweep (
proof_sweep.py --det-only --cases <the 15 ledger-less cases>, on this branch merged with main)Levels, from
evidence_report.py --deltas --live(advisory; the committed report is regenerated by theevidence-refresh bot;
*= the translation survey is stale, not the coverage):evidence_report.pyrole == "linked"); lgipol01 already has an entryEach L3 stops short of L4 on the branch bar (100 net); the uncovered outcomes are listed per case in the sweep's
coverage.json. No infeasible-outcome claims were added here.CI fix found on the way (
det-sweep.yml)The first CI run proved
carddemo-cobtupdtin its one Db2 shard and then faileddetwith "no Db2 shard reported asweep.json". With exactly one matching artifact,
actions/download-artifactextracts it straight intopath/(log:
Starting download of artifact to: .../db2-shards, while the 5 normal shards went to.../shards/det-sweep-shard-N),so
ls db2-shards/*/sweep.jsonfound nothing. Every PR whose plan moves exactly one Db2 shard hit this. Bothfound=globs now accept either layout; the ratchet itself is unchanged.
Gates
pr_gates.py --fast: 5/5 pass.pr_gates.py --ratchets: 7/7 pass (cics-spec, ports, port-surface, estate, fact-crosscheck, completeness, ground-truth).det_coverage_ledger.py check <sweep>: as expected, with no stale warnings (re-swept after merging main, whose oracle change had staled the first sweep's entries; numbers identical across both sweeps).🤖 Generated with Claude Code