Skip to content

ci: seed the Generated Java same-base cache from its own uncancellable workflow (Part of #5142) - #5434

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5142-20261018T0820Z
Oct 18, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5142-20261018T0820Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

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/ (new java-base-generation.yml, java-compile.yml) and the queue item has no allow_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 were cancelled, generator-path commits land every 5-20 min) or (b) skipped by tested-tree for a squash of an up-to-date PR.

Change

  • New 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, no needs:, no pull_request trigger, no cancel.
  • docs/ci.md, a stale comment in test_tested_tree_workflows.py.

Class table

Member Status
java-same-base cache, all 6 corpora (carddemo, cbsa, genapp, zopeneditor, zecs, dsf) covered (one matrix)
Other caches saved only by a cancellable/skippable push run not swept beyond java-compile: sibling gap
Head-side generation on a cache hit (dsf still generates head's 2 paths) not measured: sibling gap

Evidence / gates

pr_gates --fast 6/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/tools 1371 pass, 1 fail test_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

squid-protocol and others added 2 commits October 18, 2026 04:28
…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]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

Waiting on an owner decision (asked privately, 2026-10-18). Nothing is needed from contributors; work resumes once it is answered.

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 18, 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 18, 2026 12:12
@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