Skip to content

evidence: memoise component partition and class edges (Part of #5156) - #6933

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5156-20261028T1911Z
Oct 28, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5156-20261028T1911Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5156. Checklist: partial [c:260e749a] -- the survey (#6924) found no 40-240 s evidence test left; this trims the one largest (test_the_components_partition_each_input), nothing more is warranted.

What

tests/tools/evidence.py: component_shas re-derived the component partition (fnmatch per file per component) and runtime-class edges (regex per class pair) for every file x representative target. Both are pure, so _partition and _names_class are memoised. Fingerprints are unchanged; no proof loosened.

Measure Before After
partition test, local 20.5 s 12.7 s

Log entry in docs/ci_experiments_log.md.

Class / Sibling gaps

Class: evidence tests costing more than 10 s. Members: test_the_components_partition_each_input (handled here; still ~12.7 s, already in time_ratchet.IGNORED). Others in the survey are under 10 s; 8 s of remaining cost is sha256 hashing in tree_sha256 (caching per-file digests would hold every edited file's bytes: a different mechanism, not done). Sibling gaps: none beyond that.

Gates

pr_gates --fast 9/9 pass (ruff 0.17.1 used); tests/cobol_mainframe/test_evidence.py plus tests/tools -k evidence: 228 passed; test_evidence_components.py: 21 passed. --ratchets not run (no engine, golden or ledger input touched). The committed .test_durations is not refreshed here.

🤖 Generated with Claude Code

…rt of #5156)

component_shas re-derived the partition and a regex per class pair for every
file x target. Both are pure; the partition test drops 20.5 s -> 12.7 s local,
fingerprints unchanged.

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 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 28, 2026 19:28
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 19:29
@squid-shepherd
squid-shepherd Bot merged commit 3a06a0e into main Oct 28, 2026
62 of 63 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5156-20261028T1911Z branch October 28, 2026 19:39
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