Skip to content

feat: test retry build#111

Merged
sgaist merged 4 commits intomainfrom
feat/retry-builds
Mar 10, 2026
Merged

feat: test retry build#111
sgaist merged 4 commits intomainfrom
feat/retry-builds

Conversation

@sgaist
Copy link
Member

@sgaist sgaist commented Mar 10, 2026

Describe your changes

This PR implements a helper struct that allows to execute and retry a pack build.

This comes from the miniconda tests that sometimes fail with an EOF error on either jammy or noble, sometimes (but rarely) both.

Up until now, restarting the tests was enough to make it pass.

Since this error appears to be Docker specific and is transiant, directly retrying the build after a failure seems to be enough.

Note this has nothing to do with the implementation of the buildpack itself.

sgaist added 4 commits March 10, 2026 18:42
Miniconda tests sometimes failed during the pack build
phase. It's a transitive error that is related to
Docker that usually does not happen on a second run.

The wrapper will retry the build immediately.
That way, if all the retry fails, the developer will have
the full picture of failures, not just the last one.
- loop runs retry + 1 time (0 is initial attempt,
  rest is retry)
- Show retry message at the start of the loop starting
  the first retry round
This matches more precisely with the logic of PackBuild.
@sgaist sgaist added the semver:patch A change requiring a patch version bump label Mar 10, 2026
@sgaist sgaist merged commit 01c3aa8 into main Mar 10, 2026
9 of 10 checks passed
@sgaist sgaist deleted the feat/retry-builds branch March 10, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch A change requiring a patch version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant