Skip to content

ground-truth: corpus tests in parallel with a scan lock; feature-inventory fixtures portable (#4825) - #4835

Merged
squid-protocol merged 2 commits into
mainfrom
ci/4825-ground-truth-parallel
Oct 10, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
ci/4825-ground-truth-parallel

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Item 3 of #4825's remaining list. ground-truth is the slowest required check (8–13 min).

Where its time goes: the ledger check (~4 min), then pytest tests/cobol_mainframe/ run serially (~9 min).

Change:

  • Parallel corpus tests: pytest -n auto (pytest-xdist). Locally with -n 8: 2,556 passed in 6.6 min. Expected: ~13 → ~7 min.
  • Scan lock: mainframe_corpus.scan takes a per-corpus flock around the cache check and the scan, so parallel workers that miss the cache together scan once. The ledger step normally warms the cache first; this makes it safe in any order.
  • Feature-inventory fixtures made portable (a real bug from readiness scanner: feature inventory extractor, deterministic JSON per estate with a schema (Fixes #4723) #4821, which I missed in review). Unparsed-program reasons embedded absolute paths (the copybook search dirs, including the generating checkout), so the committed fixtures matched only that machine. Reasons are now CopyNotFound: COPY X / path-free, and scans go to a fresh temp dir instead of a hard-coded /tmp/...agy-4723/db. CardDemo and CBSA fixtures were regenerated; --check passes and no fixture contains an absolute path.

Found and filed, not changed here: #4834. This check runs in no CI job: full-suite has no corpora, and ground-truth has no translator extra, so the file skips. That's why the bug above went unnoticed.

Tests: feature-inventory 11 passed; pr_gates --fast 5/5; ruff and mypy audits clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV

squid-protocol and others added 2 commits October 10, 2026 06:52
…ntory fixtures portable (#4825)

- mainframe-ground-truth.yml: `pytest -n auto tests/cobol_mainframe/` (pytest-xdist) -- the step took ~9 min of the
  job's ~13, serially. Locally with -n 8: 2556 passed in 6.6 min; the one failure was the fixture issue below.
- mainframe_corpus.scan: a per-corpus flock around the cache check + scan, so parallel workers that miss the cache
  together scan once (the ledger step normally warms it first; this makes it safe regardless of order).
- feature_inventory: unparsed-program reasons carried absolute paths (the copybook search dirs, incl. the checkout
  that generated them), so the committed fixtures matched only that checkout: reasons are now `CopyNotFound: COPY X`
  / path-free; scans go to a fresh temp dir instead of the hard-coded /tmp/gitgalaxy-scratch/agy-4723/db. CardDemo
  and CBSA fixtures regenerated (--check passes; no absolute path in any fixture).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV
… is a Linux box tool

It broke the Full Suite Gate's Windows legs (ImportError at collection).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 10, 2026 12:06
@squid-protocol
squid-protocol merged commit 6affa66 into main Oct 10, 2026
45 checks passed
@squid-protocol
squid-protocol deleted the ci/4825-ground-truth-parallel branch October 10, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant