Skip to content

ci: Generated Java same-base cache keyed on generation-input content (Part of #5137, #5142) - #5190

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5137-20261015T1248Z
Oct 15, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5137-20261015T1248Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

Owner-approved patch (2026-10-15, owner-diff-5137-workflows.patch), applied cleanly; only deviation: the java-compile header comment "cached per base commit" now says "per content hash of the generation inputs".

  • java-compile.yml: the java-same-base-* restore/save key is hashFiles of the generation inputs (the paths: list plus mainframe_corpus.py) - the PR's base/ checkout on a PR, main's own checkout on a push. The old key was the base commit, which has an entry only for ~43% of main commits.
  • tests/tools/test_cache_keys.py: same-base test asserts the content-hash key (restore hashes base/, save hashes main's checkout, save skips PRs).
  • mainframe-ground-truth.yml: header comment "well under a minute" -> 2-4 min cold scan.

Gates

test_cache_keys.py 51 passed; pr_gates --fast 6/6; pr_gates --ratchets 8/8. No engine change, no golden bless.

Cross-repo: none.

Lessons for agents

The cache is cold until main's next push touching the generation paths populates the new content key; the first PRs after merge still miss.

🤖 Generated with Claude Code

…content (Part of #5137, #5142)

The key was the base commit; only ~43% of main commits have an entry (the push run is path-filtered), so most PRs
missed and regenerated both sides. Key it on hashFiles of the paths: list (the PR's base checkout, or main's own on a
push). Also fix the MGT header's "well under a minute" (2-4 min cold). Owner-approved patch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 15, 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 15, 2026 12:55
@squid-protocol
squid-protocol enabled auto-merge (squash) October 15, 2026 12:57
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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