-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow the docker build CI jobs to be retried #10774
Conversation
.gitlab/image_build/docker_linux.yml
Outdated
@@ -20,6 +20,8 @@ | |||
- docker build --build-arg CIBUILD=true $BUILD_ARG --file $BUILD_CONTEXT/$ARCH/Dockerfile --pull --tag ${TARGET_TAG}-unsquashed $BUILD_CONTEXT | |||
- docker-squash ${TARGET_TAG}-unsquashed -t ${TARGET_TAG} | |||
- docker push $TARGET_TAG | |||
# Workaround for temporary network failures | |||
retry: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO we can push that to 2 or 3
fda5498
to
c0165e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you reported these errors to #build? this looks like an infra problem that we should report
.gitlab/image_build/docker_linux.yml
Outdated
@@ -20,6 +20,8 @@ | |||
- docker build --build-arg CIBUILD=true $BUILD_ARG --file $BUILD_CONTEXT/$ARCH/Dockerfile --pull --tag ${TARGET_TAG}-unsquashed $BUILD_CONTEXT | |||
- docker-squash ${TARGET_TAG}-unsquashed -t ${TARGET_TAG} | |||
- docker push $TARGET_TAG | |||
# Workaround for temporary network failures | |||
retry: 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maximum seems to be 2 https://docs.gitlab.com/ee/ci/yaml/#retry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it to 2.
to workaround temporary network failures.
c0165e3
to
f1288b0
Compare
What does this PR do?
Allow the docker build CI jobs to be retried to workaround temporary network failures.
Motivation
We regularly receive notifications of GitLab job failures, including on the
main
branch and, when we look at them, it’s quite common that it’s because of temporary network failures like:or
Additional Notes
Possible Drawbacks / Trade-offs
Describe how to test/QA your changes
Reviewer's Checklist
Triage
milestone is set.team/..
label has been applied, if known.major_change
label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.changelog/no-changelog
label has been applied.qa/skip-qa
label is not applied.need-change/operator
andneed-change/helm
labels have been applied.