Skip to content

ci: retry the depot_tools clones and the angle fetch on transient network errors - #53474

Merged
MarshallOfSound merged 1 commit into
43-x-yfrom
trop/43-x-y-bp-ci-retry-the-depot_tools-clones-and-the-angle-fetch-on-transient-network-errors-1788467214613
Sep 3, 2026
Merged

MarshallOfSound merged 1 commit into
43-x-yfrom
trop/43-x-y-bp-ci-retry-the-depot_tools-clones-and-the-angle-fetch-on-transient-network-errors-1788467214613

Conversation

@trop

@trop trop Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Backport of #53470

See that PR for details.

Notes: none

…work errors

Three CI steps fetch over the network with no retry, and each has failed
builds on main with errors that pass on a re-run:

- the test job's "Get Depot Tools" clone from googlesource.com
- "Install Build Tools" (npm install, then the depot_tools clone that the
  first `e` command does): "fetch-pack: invalid index-pack output"
- "Fixup angle git" in fix-sync, a large `git fetch` from github.com:
  "RPC failed; curl 56 Recv failure: Operation timed out"

Add script/actions/retry.sh, which reruns a command with exponential backoff
(4 attempts, waiting 1s, 4s and 16s), and use it for those commands. Each
one is safe to repeat: a failed clone removes its partial directory, and a
failed fetch leaves the repository unchanged.

Co-authored-by: Samuel Attard <[email protected]>
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 3, 2026 20:30
@MarshallOfSound
MarshallOfSound merged commit c23a86e into 43-x-y Sep 3, 2026
97 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/43-x-y-bp-ci-retry-the-depot_tools-clones-and-the-angle-fetch-on-transient-network-errors-1788467214613 branch September 3, 2026 21:51
@release-clerk

release-clerk Bot commented Sep 3, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant