boa icon indicating copy to clipboard operation
boa copied to clipboard

CI: add timeout-minutes to prevent hung builds running for 6 hours

Open RishavTiwari25 opened this issue 8 months ago • 0 comments

I think we should improve the resilience of our GitHub Actions workflows by adding timeout-minutes to the jobs that are currently missing this configuration.

While many of our core workflow jobs (like the ones in rust.yml) correctly define timeout-minutes: 60, several other jobs have omitted this setting entirely. Without it, if a job experiences a network failure, a stalled script, or a hung API request, it will run until it is forcibly terminated by GitHub’s default runner limit at exactly 6 hours. This can silently burn through our CI minute allocations and block the deployment pipeline.

The following workflows/jobs are currently missing the timeout configuration:

  • nightly_build.yml (build)
  • release.yml (release-binaries)
  • pr_management.yml (manage_pr)
  • labeler.yml (labeler)
  • cleanup-caches.yml (cleanup)

A 10-minute timeout for the lightweight scripting jobs and a 60-minute limit for the binary builds should provide plenty of runway while ensuring we fail-fast in the event of an infinite hang.

RishavTiwari25 avatar Mar 18 '26 22:03 RishavTiwari25