Skip to content

CI: cache and retry the tree-sitter grammar fetch in translator workflows (Part of #8100) - #8101

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8100-20261108T1206Z
Nov 8, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8100-20261108T1206Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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") with
tree_sitter_language_pack.DownloadError: Failed to fetch manifest ... timeout. No code defect: ci_digest.INFRA_LOG already
classes 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), prefetch
    the 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; an EXEMPT dict names
    the 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 on
the 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: the
same three steps in those, or one shared composite action; shrink EXEMPT as 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_parser downloads on first use: a translator workflow needs the pack cache plus a ci_retry prefetch.

Cross-repo: none.

🤖 Generated with Claude Code

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

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 8, 2026 12:21
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 12:26
@squid-shepherd
squid-shepherd Bot merged commit bf59fc9 into main Nov 8, 2026
67 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8100-20261108T1206Z branch November 8, 2026 12:36
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.

main is red: Fact Cross-check

1 participant