1

According to https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes

The timeout-minutes parameter defaults to 360 minutes (6 hours).

I parallelized my mutation testing so that my workflow takes around 6.5 hours to run (mutation testing with Stryker of ~1600 mutants on just 2 cores - 9 jobs in parallel). Thus, I’ve set the timeout-minutes to 420 minutes (7 hours) for the mutation job just in case: https://github.com/lbragile/TabMerger/blob/b53a668678b7dcde0dd8f8b06ae23ee668ff8f9e/.github/workflows/testing.yml#L53

This seems to be ignored as the workflow still ends in 6 hours 23min (without warnings/errors): https://github.com/lbragile/TabMerger/runs/2035483167?check_suite_focus=true

Why is my value being ignored?

Also, is there anything I can do to use more CPUs on the workflows virtual machine?

lbragile
  • 7,549
  • 3
  • 27
  • 64

1 Answers1

3

GitHub-hosted runners are limited to maximum 6 hours per job.

Usage limits

There are some limits on GitHub Actions usage when using GitHub-hosted runners. These limits are subject to change.

[...]

  • Job execution time - Each job in a workflow can run for up to 6 hours of execution time. If a job reaches this limit, the job is terminated and fails to complete.

https://docs.github.com/en/actions/reference/usage-limits-billing-and-administration#usage-limits

riQQ
  • 9,878
  • 7
  • 49
  • 66
  • 1
    Thank you so much. I couldn’t find this information anywhere... so the only work around would be to use self-hosted runners or somehow make the job execute faster? – lbragile Mar 05 '21 at 18:30
  • 1
    Yes, as far as I know these are the only possible options. – riQQ Mar 05 '21 at 20:03
  • Ok, just to share what I found - GitHub does not recommend using self-hosted runners on public repositories as this can lead to vulnerabilities on the runner. https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#self-hosted-runner-security-with-public-repositories – lbragile Mar 05 '21 at 20:33