Skip to content

ci: retry network fetches in container builds, bump actions - #381

Merged
anakryiko merged 2 commits into
libbpf:masterfrom
anakryiko:ci-retry-fetches
Nov 16, 2026
Merged

anakryiko merged 2 commits into
libbpf:masterfrom
anakryiko:ci-retry-fetches

Conversation

@anakryiko

Copy link
Copy Markdown
Member

Container builds in CI fail a few jobs of a run every now and then on transient network errors: 8 of the last 60 runs, 4 fetching the LLVM apt key and 4 in apt-get. The latest two scheduled runs failed this way.

  • ci: retry network fetches when building the container. Fetch the LLVM key with curl -f and retries into a file before apt-key add, instead of piping whatever curl -L returns into it, and make apt retry failed downloads.
  • ci: bump actions/checkout and docker/build-push-action to v7, which run on Node.js 24 and stop the Node.js 20 deprecation warnings on every job.

Each CI job builds its container from scratch, and transient network
failures there regularly fail a few jobs of a run. 8 of the last 60
runs failed that way: 4 fetching the LLVM apt key, 4 in apt-get.

The key fetch is the most fragile: curl -L without -f pipes an error
page, or nothing at all, into apt-key, which then fails with exit
code 2. Fetch the key with -f and retries into a file before adding
it, and make apt retry failed downloads as well.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
actions/checkout@v2 and docker/build-push-action@v3 target Node.js 20,
which GitHub deprecated, so every job warns that they are forced onto
Node.js 24. Move to v7 of both, which run on Node.js 24.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
@anakryiko
anakryiko merged commit 767679b into libbpf:master Nov 16, 2026
15 of 17 checks passed
@anakryiko
anakryiko deleted the ci-retry-fetches branch November 16, 2026 18:23
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