Skip to content

setup-build-env: retry pahole fetch - #242

Merged
anakryiko merged 1 commit into
mainfrom
retry-pahole-fetch
Nov 19, 2026
Merged

anakryiko merged 1 commit into
mainfrom
retry-pahole-fetch

Conversation

@anakryiko

Copy link
Copy Markdown
Member

Fetching pahole from git.kernel.org intermittently fails on GitHub
runners with "Failed to connect to git.kernel.org:443 after ~135000 ms:
Could not connect to server". It failed libbpf-ci runs on 2026-11-12,
-14, -17 and -18 before any build started, e.g.
https://github.com/libbpf/libbpf/actions/runs/44408748100

Add a retry() helper to helpers.sh, which runs a command up to the
given number of attempts, waiting 15s and then 30s between them and
emitting a GitHub warning for each failed attempt. Use it for the
pahole git fetch in build_pahole.sh.

Tested locally by forcing the first fetch to fail: the second attempt
succeeds and the script continues; a command that keeps failing aborts
the script after the third attempt.

Fetching pahole from git.kernel.org intermittently fails on GitHub
runners with "Failed to connect to git.kernel.org:443 after ~135000 ms:
Could not connect to server". It failed libbpf-ci runs on 2026-11-12,
-14, -17 and -18 before any build started.

Add a retry() helper to helpers.sh, which runs a command up to the
given number of attempts, waiting 15s and then 30s between them and
emitting a GitHub warning for each failed attempt. Use it for the
pahole git fetch in build_pahole.sh.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
@anakryiko
anakryiko merged commit a2a45d2 into main Nov 19, 2026
12 of 14 checks passed
@anakryiko
anakryiko deleted the retry-pahole-fetch branch November 19, 2026 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant