Repository navigation
evidence.equivalence_target: index cases with a port once per target (Part of #5162) - #6450
Merged
Merged
Conversation
…get (Part of #5162) The five Db2 evidence_report tests went from 10-13 s to ~3 s each (file: 115 s -> 98 s). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 24, 2026 11:39
squid-protocol
enabled auto-merge (squash)
October 24, 2026 11:47
3 tasks done
Owner
Author
|
No description provided. |
This was referenced Oct 30, 2026
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.
Part of #5162. Test-time speedup; no workflow edits, no engine change.
What
tests/tools/evidence.py::equivalence_targetglobbedCASES/*/case.jsonand re-read eachcase.jsononce per LINKed program. A live evidence-report build calls it ~350 times, so on a profile it was ~100 of 141 s. The index of cases-with-a-port and their program is now built once per target. Behaviour is unchanged: a new test pins the port paths for every case withprogramsagainst the old nested loop.Measured (local, uncontended): the five
test_a_db2_*tests 10-13 s -> ~3 s each (one 7.9 s: first use of the fixture);test_evidence_report.py115 s -> 98 s;time_ratchet check: 0 over limit, 0 warned.Checklist
Checklist: done [c:adf49d6b] -- already on main since #5163 (
--ignore=tests/cobol_mainframe/test_evidence_components.pyin smoke-test.yml,time_ratchet.IGNORED); nothing left to change, no workflow edit made here.Checklist: partial [c:fc924c44] -- the ~430 s tail is already ~115 s on main (#5178 and siblings); this cuts the Db2 tests. What is left: the remaining 6-8 s release-gate tests and
test_check_fails_on_an_edited_report(~11 s), which each rebuild the report live.Checklist: partial [c:5c334ba2] -- not started: a wall-calibrated weight needs the split config in
.github/workflows(out of scope, "no workflow edits") and CI wall-time data.Class / Sibling gaps
Class: a per-item filesystem scan inside a loop in the evidence target builder (the same cases index re-derived per LINKed program). Members:
equivalence_targetlinked-program scan (fixed here). Sibling gaps:evidence_report.build_program->record_summary->equivalence_targetis still called ~350 times per build (174record_summarycalls re-deriveTargeteach time; ~80 s under cProfile), anddet_coverage_ledger.fingerprints(~52 s profiled, memoised per module only in tests). Memoisingequivalence_targetper process needs cache invalidation for tests that edit case dirs, so not done here.Remaining slices: memoise
equivalence_target/fingerprintsin the build; durations weight (needs workflow change).Gates:
pr_gates --fast7/7,--ratchets9/9 (via heavy-run.sh); tree-wide guards pass.🤖 Generated with Claude Code