Repository navigation
setup-build-env: retry pahole fetch - #242
Merged
Merged
Conversation
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>
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.
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.