Repository navigation
ci: seed the Generated Java same-base cache from its own uncancellable workflow (Part of #5142) - #5434
Merged
Conversation
…e workflow (Part of #5142) java-compile's push run was the only writer of the java-same-base-<corpus>-<content> cache, and it is cancelled by the next push to main (#4825) or skipped by tested-tree, so most PRs missed and regenerated the base's two paths (dsf: 420-520 s in the "unchanged?" step). java-base-generation.yml seeds it per main push: per-sha concurrency without cancel, no gate, lookup-only check so a known content key is cheap. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…-generation (Part of #5142) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
Waiting on an owner decision (asked privately, 2026-10-18). Nothing is needed from contributors; work resumes once it is answered. |
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 18, 2026 12:12
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.
Part of #5142 (item 1: dsf unchanged-check 200-520 s). Item 2 (Mainframe Ground Truth gate step) stays open.
NEEDS OWNER: this PR edits
.github/workflows/(newjava-base-generation.yml,java-compile.yml) and the queue item has noallow_workflows:. The workflow change is the whole fix (the cache can only be seeded from an uncancellable workflow), so it was not dropped; the owner must approve or grant it.Cause
Measured on PR runs 39106697276, 39106392402, 39105571932: "Is the generated Java unchanged?" = dsf 423-523 s, carddemo 77-101 s, zopeneditor ~10 s. "Restore the base branch's generation" takes 0-1 s and logs
Cache not found(gh api caches?key=java-same-base-dsf-b9f1f948= 0 entries), so the PR regenerates the base's two paths itself. #5190's content key was right, but only a completed java-compile push run on main saved an entry, and that run is (a) cancelled by the next push (#4825; 5 of the last 8 push runs werecancelled, generator-path commits land every 5-20 min) or (b) skipped by tested-tree for a squash of an up-to-date PR.Change
java-base-generation.yml: main push on the same paths (+ dispatch), same 6-corpus matrix; per-sha concurrency,cancel-in-progress: false, no gate; lookup-only restore of the content key, generate + save only on a miss. Key hashes the same inputs as java-compile's restore.java-compile.yml: keep/save steps removed (comments updated). Its restore is unchanged.test_cache_keys.py: pins restore (PR side and push side) and seed key hash the same inputs, the lookup-only check, noneeds:, no pull_request trigger, no cancel.docs/ci.md, a stale comment intest_tested_tree_workflows.py.Class table
Evidence / gates
pr_gates --fast6/6; cache-key, tested-tree, workflow-inputs, draft-gate, install-pin, pipeline-pin, ci-retry tests pass (plain pytest from /tmp); tree-wide guards 176 pass;tests/tools1371 pass, 1 failtest_pin_requirements_check_all(ci/requirements STALE vs.in, files untouched here; not re-run on main; untouched files, likely environment). No parser change, no golden bless. The effect is only measurable after merge (dsf step time on the next PR whose base content was seeded).Cross-repo: none.
Co-Authored-By line is in the commit.
🤖 Generated with Claude Code