Skip to content

ground-truth: a part with no warm job scans only the corpora its pytest share reads (Part of #5543) - #6579

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5543-20261025T0204Z
Oct 25, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5543-20261025T0204Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5543 (option (b)): in the busy layout a part scans only the corpora its pytest share reads.

What changed (4 hand-written files)

  • tests/tools/ground_truth_corpora.py (new, stdlib): READERS maps the 3 tests that read a scan DB (test_completeness, test_refraction_differential full-corpus, zecs lineage) to their corpora; corpora_for(node_ids); a missing/empty/unplaceable list means every corpus.
  • .github/workflows/mainframe-ground-truth.yml (part job only): a continue-on-error collect step (--splits/--group, groups other than 1) and the scan step now takes its list from the script; part 1 (ledger gate) passes --all. Calm layout, warm job, cache keys, aggregate unchanged.
  • tests/tools/test_ground_truth_corpora.py (new): per-corpus, fixed, union, no-reader, fallback, CLI, a freshness test (every module calling mc.scan/score is in READERS), and a workflow tripwire.
  • docs/ci.md: one sentence in the layout paragraph.

Class / Sibling gaps

Class: busy/no-cache parts warming scans their share never reads; all 3 scan-reading test modules handled. Gaps: (1) part 1 still scans all 8 corpora because the ledger gate scores every corpus (all have answer keys), so this saves runner-minutes in the other parts, not wall time; fixing that needs a split that weights the gate part (different mechanism, no burned-estate program needs it). (2) CICS Crucible / Graph Accuracy adoption stays a separate issue.

Checklist: partial [c:9e7607fe] -- scans are narrowed for non-gate parts; wall time is bound by part 1's gate scans

Cost (ci-workflows rule 5)

No new job or runner request. The collect step adds ~7 s (measured locally, 7978 tests) to non-gate parts that scan and saves the scans of corpora no test there reads (up to ~2.4-3.2 min cold in the busy layout). Runs only in the busy layout or after a lost cache. Not measured on CI yet: the busy layout only occurs on queued days.

Gates

pr_gates.py --fast 7/7; 184 tests pass (new file, critical-path split, scan-key workflow, source reads, generated branch, sweep plan). --ratchets not run: no engine/golden/ledger input. Not run: pytest-split collection locally (plugin absent in the venv; the step is the workflow's, tripwire-tested).

🤖 Generated with Claude Code

…st share reads (Part of #5543)

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 25, 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 25, 2026 02:10
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 25, 2026 02:21
@squid-shepherd
squid-shepherd Bot merged commit c0e6935 into main Oct 25, 2026
68 of 69 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5543-20261025T0204Z branch October 25, 2026 03:11
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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