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

workflow: retry caa image build #1341

Merged

Conversation

wainersm
Copy link
Member

The CAA image build on push is very important to not fail otherwise features and fixes don't properly get into devel/release cycle. But we recently have noticed errors like:

ERROR: failed to solve: DeadlineExceeded: failed to push quay.io/confidential-containers/cloud-api-adaptor:b277c1ae739ae318926ef4f39c88fac16050d13a: no active session for pj7teq3k1b3tqjew1y3tf5mgp: context deadline exceeded

Error that goes away when the workflow is manually re-trigger after a few minutes. So this added a retry mechanism that will try again the build command after 2 minutes and for the maximum of 3 tentatives.

@wainersm wainersm added the CI Issues related to CI workflows label Aug 22, 2023
@wainersm wainersm requested a review from stevenhorsman August 22, 2023 17:53
@wainersm
Copy link
Member Author

Of course I forgot the "Fixes"...

The CAA image build on push is very important to not fail otherwise
features and fixes don't properly get into devel/release cycle. But
we recently have noticed errors like:

ERROR: failed to solve: DeadlineExceeded: failed to push
quay.io/confidential-containers/cloud-api-adaptor:b277c1ae739ae31892
6ef4f39c88fac16050d13a: no active session for pj7teq3k1b3tqjew1y3tf5mgp:
context deadline exceeded

Error that goes away when the workflow is manually re-trigger after a few
minutes. So this added a retry mechanism that will try again the build
command after two minutes and for the maximum of three tentatives.

Fixes confidential-containers#1339
Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
@wainersm wainersm temporarily deployed to external August 22, 2023 17:57 — with GitHub Actions Inactive
@wainersm
Copy link
Member Author

And obviously the commit's body length line exceeded the maximum allowed :D

Copy link
Member

@stevenhorsman stevenhorsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and not a very invasive solution which is great. Thanks Wainer!

@stevenhorsman stevenhorsman merged commit ddfcd9c into confidential-containers:main Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Issues related to CI workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants