Repository navigation
ground-truth: corpus tests in parallel with a scan lock; feature-inventory fixtures portable (#4825) - #4835
Merged
Conversation
…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
Contributor
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.
Item 3 of #4825's remaining list.
ground-truthis 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:
pytest -n auto(pytest-xdist). Locally with-n 8: 2,556 passed in 6.6 min. Expected: ~13 → ~7 min.mainframe_corpus.scantakes a per-corpusflockaround 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.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;--checkpasses 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 --fast5/5; ruff and mypy audits clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV