Repository navigation
CI: cache and retry the tree-sitter grammar fetch in translator workflows (Part of #8100) - #8101
Merged
Merged
Conversation
… workflows (Part of #8100) Fact Cross-check failed on main when the grammar manifest download timed out. Restore the pack cache, prefetch through ci_retry.sh, save on main; pin it with a test (siblings listed in EXEMPT). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
This was referenced Nov 8, 2026
Merged
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.
Fixes the infrastructure flake behind #8100 and hardens the workflows that share its mechanism.
Diagnosis
Run 42478170687 (workflow_dispatch on main at 4d70b91) died in
TA.det()->get_parser("cobol")withtree_sitter_language_pack.DownloadError: Failed to fetch manifest ... timeout. No code defect:ci_digest.INFRA_LOGalreadyclasses it infra. PR runs of this workflow are skipped (#6670), so nothing else failed. The workflow downloaded the grammar on
every run with no cache and no retry, unlike cics-crucible / equivalence-e2e.
Change
fact-crosscheck.yml,blocker-baseline.yml: restore~/.cache/tree-sitter-language-pack(key as equivalence-e2e), prefetchthe COBOL grammar via
ci_retry.sh 4 10, best-effort save on main.tests/tools/test_translator_pack_prefetch.py: every workflow installing[translator]must do both; anEXEMPTdict namesthe rest, and fails when an exempt workflow becomes covered.
Class / Sibling gaps
Class: a workflow installs the
[translator]extra (grammar fetched from GitHub at runtime) with no pack cache and no retry onthe fetch. Handled here: fact-crosscheck, blocker-baseline. Sibling gaps (CI core work, no burned-estate program needs them):
det-sweep.yml(3 jobs; pip retried, grammar not),ports-compile.yml,evidence-refresh.yml(5 jobs). Remaining slice: thesame three steps in those, or one shared composite action; shrink
EXEMPTas they land.Measurement
Adds one cached restore and one prefetch step (a few seconds on a hit) to a nightly/dispatch-only job; no PR reach change
(fact-crosscheck is skipped on PRs; blocker-baseline is dispatch-only).
Gates
New test + test_cache_keys, test_workflow_inputs, test_engine_reach_workflows, test_ci_critical_path_split,
test_change_classifier: 171 passed.
audit_check.py: all clear. No golden/ledger impact.Facts checked: only run 42478170687 failed; PR runs skipped. After merge, rerun Fact Cross-check on main (workflow_dispatch) to close #8100.
Lessons for agents
tree_sitter_language_pack.get_parserdownloads on first use: a translator workflow needs the pack cache plus a ci_retry prefetch.Cross-repo: none.
🤖 Generated with Claude Code