Skip to content

CI critical path: drop duplicate evidence_components run, speed up evidence._match (Part of #5162) - #5163

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5162-20261014T2241Z
Oct 14, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5162-20261014T2241Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5162 (siblings of #5133).

Changes

  • smoke-test.yml: the full-suite parts pass --ignore=tests/cobol_mainframe/test_evidence_components.py. mainframe-ground-truth.yml runs all of tests/cobol_mainframe/, so the file ran twice. full-suite-gate.yml is left alone: nothing else covers that file on the OS x Python grid.
  • tests/tools/evidence.py _match: compiles each pattern list into one regex (plus the exact-equality rule) and memoises per (files, spec). Same selection, verified on all 245 target specs and by the new tests/tools/test_evidence_match_5162.py.
  • docs/ci.md note.

Measurement (serial, -n0, same box, local venv)

Profile of test_check_fails_on_an_edited_report (53 s): 49 s in rebuilt(), 48 s of it last_coverage -> compute_inputs, whose cost was 17M hit() calls in _match.

before after
test_evidence_report.py (whole file) 204.8 s 98.1 s
test_the_committed_reports_are_current 50.3 23.5
test_the_release_gate_fails_while_a_level_is_stale 33.1 15.1
test_check_fails_on_an_edited_report 25.8 12.4
test_the_components_partition_each_input 60 (committed durations) 14.0

The five tests took ~430 s under -n auto contention in CI; the same share is halved. No CI wall-time number yet (draft PRs skip heavy CI); the after-run is for the dispatch.

Sibling gaps

  • Durations weight (task 3): not done. The nightly cache is recorded under -n auto contention; a wall-calibrated weight needs a recording change in full-suite-durations, and CI critical path: advisory deltas job, refreshed durations, ground-truth in 2 parts (Part of #5133) #5151 is moving the same area.
  • full-suite-gate.yml still runs test_evidence_components.py on every OS/Python leg (now ~14 s on its slowest test, not 226 s).
  • test_the_committed_reports_are_current fails in my bare local venv before and after this change (reports "not current"); not investigated, CI is the judge.
  • Other rebuilt() callers still rebuild all estates per test (~5-15 s each); a per-module memo of build would cut more.

Cross-repo

None. Overlap: #5151 also edits docs/ci.md (appended section, trivial rebase) and smoke-test.yml (different hunk).

🤖 Generated with Claude Code

… full suite; evidence._match compiled and memoised (Part of #5162)

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

Copy link
Copy Markdown
Owner Author

Local gates (worktree, full-extras venv, via heavy-run.sh): pr_gates --fast 6/6 pass; pr_gates --ratchets 7 pass, 0 fail, 0 skipped. test_the_committed_reports_are_current is red on a pristine origin/main worktree too (same venv); CI sets EVIDENCE_REPORT_ADVISORY=1 so it is skipped there. Not caused by this PR.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 14, 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 14, 2026 23:03
@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 23:08
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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