Repository navigation
ci: retry network fetches in container builds, bump actions - #381
Merged
Merged
Conversation
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>
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.
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.
curl -fand retries into a file beforeapt-key add, instead of piping whatevercurl -Lreturns into it, and make apt retry failed downloads.