From 8955b03d53c3885fa871164446738f5a6203002b Mon Sep 17 00:00:00 2001 From: JakeSCahill Date: Tue, 1 Sep 2026 16:22:27 +0100 Subject: [PATCH] ci: cap validate-build at 15 minutes Successful runs finish in 1-2 minutes. Without a job timeout, a wedged npm ci - seen on PR #395 when the node_modules cache had expired after 9 idle days and the registry connection stalled - occupies a runner for GitHub's full 6-hour default before being cancelled, and reports as an opaque failure on the PR. Co-Authored-By: Claude Fable 5 --- .github/workflows/validate-build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/validate-build.yml b/.github/workflows/validate-build.yml index e4f1bcd2..69f2885d 100644 --- a/.github/workflows/validate-build.yml +++ b/.github/workflows/validate-build.yml @@ -12,6 +12,10 @@ on: jobs: build: runs-on: ubuntu-22.04 + # Successful runs take 1-2 minutes; without a cap, a wedged npm ci (seen + # when the node_modules cache expires and the registry stalls) burns the + # runner for GitHub's full 6-hour default before the job is cancelled. + timeout-minutes: 15 steps: - uses: actions/checkout@v4 - name: Set up Go