Skip to content

CI: mainframe-corpora cache restore-only on PRs, main saves (#5024) - #5071

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

squid-protocol merged 1 commit into
mainfrom
churn/5024-20261014T0032Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes the mainframe-corpora-<hash> item of #5024 (sibling of #4968 / #5022).

Change. The pinned-corpora cache was one combined actions/cache step, so a PR that edits corpora.json saved a copy under its own ref that no other PR can read. Each is now actions/cache/restore (id: corpora, key and path unchanged) plus an actions/cache/save right after the fetch step, if: github.event_name != 'pull_request' && steps.corpora.outputs.cache-hit != 'true', continue-on-error: true (a lost reserve race must not fail the job; the old post-step save never did). Same action pin as #5022.

Class table (combined actions/cache step on a pull_request workflow):

Member Status
java-compile.yml fixed
ports-compile.yml fixed (same mechanism)
fact-crosscheck.yml fixed (same mechanism)
mainframe-ground-truth.yml fixed (same mechanism)
det-sweep.yml x3 (plan/ports-mode guarded, db2, shard) fixed; the plan job keeps its mode == 'ports' guard on both steps
blocker-baseline.yml, evidence-refresh.yml x4 not PR-triggered (dispatch / schedule); left combined, pinned as exempt in the test
pip in smoke-test / mainframe-ground-truth stays EXEMPT (#4935)

Behaviour notes for review. The save now runs right after fetch (clones only) rather than at job end; every consumer already rm -rfs _scans before fetching, so nothing relied on scans riding along. A PR that edits corpora.json misses, clones, and saves nothing; main saves after merge.

Tests (tests/tools/test_cache_keys.py): every corpora step in a PR-triggered workflow is restore or save (never combined); each save skips PRs, guards on cache-hit != 'true', has continue-on-error; each restore has id: corpora and an identical-key save in the same workflow; the exempt set is real and never PR-triggered. Mutation-checked: reverting ports-compile to the combined step fails two tests.

Gates. pytest tests/tools/test_cache_keys.py 50 passed; pr_gates.py --fast 6/6; --ratchets 7/7; YAML parses. No golden change.

Cross-repo: none.

🤖 Generated with Claude Code

…ves it (#5024)

Split the combined actions/cache step into restore + a main-only save in the
five pull_request workflows (java-compile, ports-compile, fact-crosscheck,
mainframe-ground-truth, det-sweep x3), same shape as #5022. Pinned in
test_cache_keys.py for the whole class.

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 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 00:48
@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 00:48
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit bdc27f9 into main Oct 14, 2026
61 checks passed
@squid-protocol
squid-protocol deleted the churn/5024-20261014T0032Z branch October 14, 2026 02:13
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