re-run jobs #26001
-
Is there a way to re-run individual jobs parts of workflows ? Alternatively is there a way to restart all failed jobs ? Use interface seem to propose only “Re-run all checks” currently |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
At the moment you are not able to re-run individual jobs or simply restart all failed jobs. That feature is absolutely on our backlog to add. |
Beta Was this translation helpful? Give feedback.
-
This isn’t really a solution. It’s just a promise it will be eventually implemented. (So far, it isn’t). |
Beta Was this translation helpful? Give feedback.
-
Restarting whole workflows does not work when the event was generated by external contributor sending pull request. |
Beta Was this translation helpful? Give feedback.
-
It has been more than a year now since this “solution”. What is in your backlog is not a solution, it’s a todo. |
Beta Was this translation helpful? Give feedback.
-
seems now it is possible GitHub Actions: Re-Run Successful Jobs The GitHub BlogGitHub Actions: Re-Run Successful Jobs |
Beta Was this translation helpful? Give feedback.
-
daroga0002:
No, it still does not allow re-triggering/running individual jobs. |
Beta Was this translation helpful? Give feedback.
-
This feature is absolutely critical when you have many long-running jobs in a workflow. For example, if you take a look at the following link: stephanosio/zephyr-crosstool-ngZephyr fork of crosstool-NG - for building Zephyr GNU toolchains - stephanosio/zephyr-crosstool-ng I have to re-trigger all 42 jobs just because a few jobs randomly failed (source code fetch error) and some macOS jobs got randomly cancelled (yes, this inexplicable event happens a lot for some reason). |
Beta Was this translation helpful? Give feedback.
-
In PyMC3 we use a GitHub action for releasing to PyPI. At the end of the pipeline we test the installation, but sometimes this step fails. Re-running the entire pipeline is not an option, because re-releasing the same version number is not allowed… |
Beta Was this translation helpful? Give feedback.
-
I would like to add that this is absolutely critical. We sometimes have flakes in our workflow. I was in the middle of migrating over from our buildbot CI, when I came across this problem. Looks like we need to stay with buildbot until this is implemented. We have over 30 jobs, some of them running close to an hour. |
Beta Was this translation helpful? Give feedback.
-
I think I found a workaround here. I have split my matrix build to multiple yaml files, each one with a different name but the same trigger. Each of them contain only a single run. As it looks, this enables me to re-run jobs individually. I do so by selecting “re-run all jobs”, where “all” is now always exactly one. The price you need to pay is that you have some code duplication and cannot use the matrix feature. For me, this is acceptable as the CI is actually done by a script and shared code outside of that script is relatively minimal. It would of course be much better if there would be the ability to re-run individual jobs inside the same yaml file. |
Beta Was this translation helpful? Give feedback.
-
@rgerhards Your workaround is working! Thanks a lot! |
Beta Was this translation helpful? Give feedback.
At the moment you are not able to re-run individual jobs or simply restart all failed jobs. That feature is absolutely on our backlog to add.