Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildsys: retry builds on "unexpected EOF" error #1557

Merged

Conversation

tjkirch
Copy link
Contributor

@tjkirch tjkirch commented May 4, 2021

Issue number:

#1095

Description of changes:

This is an alternate approach to #1545 that uses regexes to give us a little more control over how we match messages. In particular, it at least lets us make sure that "unexpected EOF" is on a line of its own, and not embedded in any other build message.

Testing done:

  • Confirmed a normal build is still OK.
  • Confirmed the "failed to solve" error message is retried 10 times; I just echoed it from a spec file.
  • Confirmed the "unexpected EOF" error message is retried only if on a line of its own, not otherwise.
    • I had to modify the captured stdout to test this, because RPM prefixes every line of output and it wouldn't match as a full line otherwise.
  • Confirmed it doesn't retry after a normal failure without either message.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

This is a rare failure that we see in CI.  Retry it so the entire run
is not marked as failing.

Co-authored-by: Ben Cressey <[email protected]>
Co-authored-by: Tom Kirchner <[email protected]>
@tjkirch tjkirch merged commit 60910c6 into bottlerocket-os:develop May 4, 2021
@tjkirch tjkirch deleted the expect-the-unexpected-eof-regex branch May 4, 2021 22:02
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.

3 participants