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!
Autopilot
Merged in a post:
Job-triggered retries
j
j.green@jeremygreen.me.uk
I'd like job-level retries that are triggered by the job scripts themselves. E.g. if they detect that an android emulator or Xcode has failed.
E.g. by scraping specific error messages from the tools' output, or some kind of end-of-job ping for emulators.
Retrying for everything (https://circleci.com/changelog/automatic-retry-of-workflows-released/) masks occasional fails (something tests are specifically supposed to find for you). Retrying for specific things doesn't have this problem.
A job could trigger a retry be creating a file whose path is specified by a circleci-provided env. var. The reason could (optionally) be the file's content.
N
Neel Das
Also wish this supported rerun failed tests!
Minjun Seong
marked this post as
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/
j
j.green@jeremygreen.me.uk
https://circleci.canny.io/api-feature-requests/p/allow-re-run-failed-tests-to-be-triggered-via-api is similar, but I wouldn't want to have to use an http API for this. Just like I wouldn't want to do that to indicate a job has failed.
j
j.green@jeremygreen.me.uk
Step-level equivalent would be less useful and more complex, so my suggestion is just for job.
Can implement as a loop in the step (until step timeouts are implemented). You start with fresh workspace/files if re-run a job, but don't if re-run a step.
j
j.green@jeremygreen.me.uk
https://circleci.canny.io/cloud-feature-requests/p/support-automatic-retry-of-failed-builds doesn't seem to mention this aspect of retries.
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!
Load More
→