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

Customize automatic re-run logic #238

Closed
fkorotkov opened this issue Apr 9, 2019 · 4 comments
Closed

Customize automatic re-run logic #238

fkorotkov opened this issue Apr 9, 2019 · 4 comments
Labels

Comments

@fkorotkov
Copy link
Contributor

Description

It will be nice to have a customizable re-run policy supporting fancy expressions like following:

task:
  rerun: "status('build') == 'failed'"

or even:

task:
  rerun: "'TimeoutException' in logs('test')"
@saberduck
Copy link

hello @fkorotkov ,

any plan to make this available? we have some jobs intermittently timeouting, this would be very useful.

@fkorotkov
Copy link
Contributor Author

@saberduck do you build Cirrus' timeouts (the default 1 hour one, for example)? Or your build system timeouts to do something?

I'm not 100% sure about the final design here though. I think it seems that the most consis solution will be something like:

rerun_when_log_contains: 
  - Timeout
  - timeout

My initial thoughts about expressions seems unnecessary here and probably can be a part of #496

@pavel-mikula-sonarsource

Hi @fkorotkov,

We have random timeouts on some intermediate steps like cloning repo, downloading nuget packages, downloading code analyzers, uploading code analysis results.

Some of those timeouts doesn't contain word timeout but stuff like bad gateway, internal server error (actually meaning a timeout), IllegalStateException: Fail to request https://... so it would be great to be able to configure it somehow.

@fkorotkov
Copy link
Contributor Author

Fixed via #858

See documentation on the website https://cirrus-ci.org/guide/programming-tasks/#hooks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants