Repository navigation
CI: mainframe-corpora cache restore-only on PRs, main saves (#5024) - #5071
Merged
Merged
Conversation
…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]>
6 tasks done
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 14, 2026 00:48
squid-protocol
enabled auto-merge (squash)
October 14, 2026 00:48
Contributor
Owner
Author
|
No description provided. |
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.
Closes the
mainframe-corpora-<hash>item of #5024 (sibling of #4968 / #5022).Change. The pinned-corpora cache was one combined
actions/cachestep, so a PR that editscorpora.jsonsaved a copy under its own ref that no other PR can read. Each is nowactions/cache/restore(id: corpora, key and path unchanged) plus anactions/cache/saveright after thefetchstep,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/cachestep on apull_requestworkflow):mode == 'ports'guard on both stepsBehaviour notes for review. The save now runs right after
fetch(clones only) rather than at job end; every consumer alreadyrm -rfs_scansbefore fetching, so nothing relied on scans riding along. A PR that editscorpora.jsonmisses, 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 oncache-hit != 'true', hascontinue-on-error; each restore hasid: corporaand 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.py50 passed;pr_gates.py --fast6/6;--ratchets7/7; YAML parses. No golden change.Cross-repo: none.
🤖 Generated with Claude Code