How to retry a build that failed?

I had a build fail for a reason unrelated to my code (in the setup-node action - possible a network issue or something, it’s not clear). I can’t rind any way to retry this build without pushing another commit (which means all the other parallel tasks like running on other OSes will be repeated).

9 Likes

Hello!

We currently don’t have the retry button enabled for Actions. 100% agree this is super important. We’re working on it now, won’t be much longer. :grinning:

10 Likes

This does seem to be there now. However, I’m seeing that I get a “check rerequested” event is in the GITHUB_EVENT_PATH file rather than a synchronize event (or whatever did trigger the action run) causing some assumptions to be broken. It certainly doesn’t have the same information available as the original synchronize trigger at least. It also seems to be only for all actions, not per action (though I’m just testing with a single action right now).

1 Like

:+1: thanks! We’re working on it.

2 Likes

Thanks! Retry is hugely important to us :slight_smile: The ability to retry individual tasks/checks as well :) 

5 Likes

For future runs this should now be solved https://github.blog/changelog/2019-09-30-github-actions-deterministic-re-runs-for-workflows/

1 Like

I don’t understand how re-runs work. When I have a failed task, there’s an info icon next to it with a tooltip that says “This check suite has disabled re-running individual check runs”. Is there something I need to do to enable this?

3 Likes

Will we be able to retry specific jobs rather than the entire workflow? Right now I only see the option to Re-run all checks. If I am running multiple jobs in parallel and only one fails I would like the ability to rerun just that one job.

23 Likes

I cant find it and it’s now 6 months since your message, am I missing it or is Github still working on it?

2 Likes

We don’t see a re-run command sometimes. https://github.com/submariner-io/shipyard/runs/666918597?check_suite_focus=true

I remember seeing it in the past. It would be nice to be able to re-run specific tests.

Although the possibility to rerun failed workflows is great, it would be super great if there’s an option to run only the failed jobs. Is this already there and I’m missing it? Is there a plan to implement it?

Updating this, as my old comment is very out of date at this point.

Re-running an entire workflow is possible via the re-run button on the top right or the Actions API. The re-run button will trigger the entire workflow to run again.

In the future, we’ll be making this more specific and allowing for individual jobs within a workflow to be re-run.