Support automatic retry of failed builds
complete
A
Aaron
It would be great if CircleCI allowed you to configure an automatic retry of a build upon failure. Ideally, you would be able to specify the max number of times you would like it to retry.
CCI-I-935
Minjun Seong
Hi folks, truly appreciate your feedback and your patience. We are excited to announce that automatic workflow rerun is now available!
Here is the documentation: https://circleci.com/docs/guides/orchestrate/automatic-reruns
Note: for those needing to rerun at a step level, automatic step rerun is currently in the works. We will keep you folks posted on its progress!
N
Neel Das
Also wish this supported rerun failed tests!
Minjun Seong
complete
Minjun Seong
Hi folks, exciting update! For customers needing a more granular control, we now support automatic step rerun to complement our existing workflow rerun feature.
Here is the documentation: https://circleci.com/docs/guides/orchestrate/automatic-reruns/
Viet Hoang
Any plans to support retries using
Rerun failed tests
?c
cmprescott@incrediblehealth.com
Wish this feature could be set to use the
Rerun failed tests
instead of Rerun workflow from failed
.Minjun Seong
Hi folks, truly appreciate your feedback and your patience. We are excited to announce that automatic workflow rerun is now available!
Here is the documentation: https://circleci.com/docs/guides/orchestrate/automatic-reruns
Note: for those needing to rerun at a step level, automatic step rerun is currently in the works. We will keep you folks posted on its progress!
Minjun Seong
in progress
Simon McManis
Fernando Abreu Can you confirm the exact behavior? Specifically, will it re-run only the failed jobs, or the entire workflow? If it’s only the failed jobs, would it be accurate to say this functions the same as manually clicking “Re-run workflow from failed” in the UI?
F
Fernando Abreu
Simon McManis that's correct, it would be the same without the manual intervation
Paul Chaplin
Fernando Abreu This looks like it could be very useful for us.
Would it use "Rerun failed tests" in preference to "Rerun workflow from failed" when that's been set up, or always fully re-run the failed job regardless? (We'd prefer just to re-run failed tests.)
F
Fernando Abreu
Paul Chaplin it will use
Rerun workflow from failed
F
Fernando Abreu
This is what workflow retries will look like. Thoughts?
J
J. Casalino
Fernando Abreu Looks good to me
C
Cody Smith
Fernando Abreu Will the "Start (UTC)" column reflect the start time of the attempt? Also maybe the "Trigger event" could reference the original trigger (a.k.a. first domino), e.g.
Fixed component "run-ci"
? Otherwise LGTM.F
Fernando Abreu
Cody Smith Yes, it will reflect the time of the retried workflow.
Thanks for the feedback! The idea of referencing the original trigger makes a lot of sense. We won’t include it in the first release, but we’ll definitely consider it for a future one.
F
Fernando Abreu
Merged in a post:
Retry a build if it fails due to the 10 minute timeout
J
Joseph Emison
Occasionally, we have a build fail on the 10-minute timeout because of some kind of network failure in the container (e.g., trying to pull down packages from the internet). On the occasion that a build fails because of the 10-minute timeout, we would like to have the build re-run automatically to see if running it again clears the error. As it stands right now, developers have to push new code to retrigger the build because the build must succeed to merge the PR, and the failure won't clear otherwise.
CCI-I-533
Load More
→