beads/.github/workflows
Jim Wordelman 9c8be5e85f
ci: retry the module fetch in pr-policy-wrapper, not the build (#5901)
* ci: retry the module fetch in pr-policy-wrapper, not the build

PR Policy (wrapper timing) is a required check, and it is the one job in
pr.yml that can be failed by someone else's network. setup-go runs with
cache: false, so every run pulls the entire module graph from
proxy.golang.org, and nothing retries. A single proxy blip fails the check
outright.

Observed on a docs-only PR (one markdown file, +18/-0): the job died inside
a ~12s proxy.golang.org outage with

  stream error: stream ID NNN; INTERNAL_ERROR; received from peer

while 40 other jobs on the same commit, triggered at the same instant, built
the same module graph and passed. The split was by clock, not by content --
nothing about the change could have caused it.

Fetch the modules in their own retried step before the wrapper runs. With
the cache warm, the go build inside scripts/ci/pr-policy.sh compiles without
touching the network and stays unwrapped: a compile error still fails on the
first attempt rather than taking three, and an exhausted retry reports the
fetch as the cause instead of presenting a module outage as a build failure.

The loop mirrors the bounded apt-get steps in migration-test.yml and
release.yml: three attempts, a per-attempt timeout, a fixed backoff with none
after the last, and a step-level timeout-minutes above the resulting worst
case.

* ci: retry the module fetch in main.yml's pr-policy-wrapper too

pr.yml and main.yml carry byte-identical `pr-policy-wrapper` jobs. The
retry added in the previous commit covered only the pr.yml copy, so the
same unretried cold fetch stayed on the main-branch trigger — the job
this PR names is fixed in one workflow and not the other.

Mirrors the pr.yml step exactly: retries the fetch, never the build, and
fails load-bearing while naming the fetch so a module outage is not
reported as a build failure.

This is not a cache step, so the enumerated cache topology pinned by
TestGoCacheOwnershipTopology (scripts/ci_workflow_test.go) is untouched;
`go test ./scripts/` and actionlint are clean.

---------

Co-authored-by: Gas City Adopt-PR <adopt-pr@gascity.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 07:11:35 -07:00
..
bazel-autofix.yml ci: gate PRs on the Bazel lanes, alongside the legacy jobs (D1) (#6941) 2026-09-29 03:33:20 -07:00
bazel.yml ci: gate PRs on the Bazel lanes, alongside the legacy jobs (D1) (#6941) 2026-09-29 03:33:20 -07:00
ci-measurements.yml Merge release/1.3.0 into main (post-tag forward-port) 2026-09-15 22:09:13 +00:00
close-stale-needs.yml ci: add needs-triage inbox labeling (mirrors gastownhall/gascity) (#6622) 2026-09-19 14:37:19 -07:00
conformance.yml release: prep v1.3.0 — version bump, changelog rollup, release process docs, formula fixes (#6038) 2026-08-30 22:19:35 -07:00
cross-version-smoke.yml release: prep v1.3.0 — version bump, changelog rollup, release process docs, formula fixes (#6038) 2026-08-30 22:19:35 -07:00
deploy-pages-redirect.yml build(deps): bump actions/checkout from 7.0.0 to 7.0.1 (#5016) 2026-07-25 08:52:22 -07:00
docs-autofix.yml ci: auto-push Bazel BUILD sync fixes to PRs; harden docs autofix (#6907) 2026-09-28 17:23:27 -07:00
docs-mintlify.yml build(deps): bump the actions group across 1 directory with 3 updates (#5059) 2026-07-25 19:05:02 -07:00
main.yml ci: retry the module fetch in pr-policy-wrapper, not the build (#5901) 2026-09-30 07:11:35 -07:00
migration-test.yml test(migration): wisp-plane upgrade corpus — seed and assert the ignored-plane classes the 1.3.0 chain depends on (#6049) 2026-08-28 23:24:39 -07:00
nightly.yml ci: gate PRs on the Bazel lanes, alongside the legacy jobs (D1) (#6941) 2026-09-29 03:33:20 -07:00
nix-build.yml chore(deps): bump DeterminateSystems/determinate-nix-action (#6042) 2026-09-02 17:41:12 -07:00
pr-risk.yml ci: give PR Risk's gate a distinct check name (#6939) 2026-09-28 22:31:43 -07:00
pr.yml ci: retry the module fetch in pr-policy-wrapper, not the build (#5901) 2026-09-30 07:11:35 -07:00
proxied-local-smoke.yml fix(dbproxy): retire the proxy when its Dolt backend exits cleanly (#6937) 2026-09-29 01:48:15 -07:00
regression.yml fix: raise Differential Regression CI timeout budget (#6271) 2026-09-28 14:16:01 -07:00
release.yml ci(release): never restore Actions caches into release builds (#6966) 2026-09-30 04:39:23 -07:00
remove-needs-info.yml ci: add needs-triage inbox labeling (mirrors gastownhall/gascity) (#6622) 2026-09-19 14:37:19 -07:00
remove-needs-triage.yml ci: add needs-triage inbox labeling (mirrors gastownhall/gascity) (#6622) 2026-09-19 14:37:19 -07:00
request-needs-info.yml ci: add needs-triage inbox labeling (mirrors gastownhall/gascity) (#6622) 2026-09-19 14:37:19 -07:00
test-pypi.yml build(deps): bump the actions group across 1 directory with 3 updates (#5059) 2026-07-25 19:05:02 -07:00
triage-label.yml ci: add needs-triage inbox labeling (mirrors gastownhall/gascity) (#6622) 2026-09-19 14:37:19 -07:00
update-flake-lock.yml chore(deps): bump DeterminateSystems/determinate-nix-action (#6042) 2026-09-02 17:41:12 -07:00
update-vendor-hash.yml chore(deps): bump DeterminateSystems/determinate-nix-action (#6042) 2026-09-02 17:41:12 -07:00