From 90c6bd21706239de269c19cc9df2d817ba1f93d4 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 21 Jul 2026 16:20:14 +0900 Subject: [PATCH] fix(ci): extend workflow sanity checkout timeout --- .github/workflows/workflow-sanity.yml | 4 +++- test/scripts/ci-workflow-guards.test.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow-sanity.yml b/.github/workflows/workflow-sanity.yml index affef8ad7955..6457b4061e87 100644 --- a/.github/workflows/workflow-sanity.yml +++ b/.github/workflows/workflow-sanity.yml @@ -38,7 +38,9 @@ jobs: fetch_checkout_ref() { local fetch_status for attempt in 1 2 3; do - timeout --signal=TERM --kill-after=10s 30s git -C "$GITHUB_WORKSPACE" \ + # GitHub can take over 30s to prepare this unauthenticated shallow pack. + # Match CI preflight's bounded window before retrying the exact SHA. + timeout --signal=TERM --kill-after=10s 120s git -C "$GITHUB_WORKSPACE" \ -c protocol.version=2 \ fetch --no-tags --prune --no-recurse-submodules --depth=1 origin \ "+${CHECKOUT_SHA}:refs/remotes/origin/checkout" && return 0 diff --git a/test/scripts/ci-workflow-guards.test.ts b/test/scripts/ci-workflow-guards.test.ts index 206aa26e52f2..951d42ae3610 100644 --- a/test/scripts/ci-workflow-guards.test.ts +++ b/test/scripts/ci-workflow-guards.test.ts @@ -3216,7 +3216,7 @@ describe("ci workflow guards", () => { expect(checkoutStep.run, jobName).toContain("fetch_checkout_ref()"); expect(checkoutStep.run, jobName).toContain("for attempt in 1 2 3"); expect(checkoutStep.run, jobName).toContain( - 'timeout --signal=TERM --kill-after=10s 30s git -C "$GITHUB_WORKSPACE"', + 'timeout --signal=TERM --kill-after=10s 120s git -C "$GITHUB_WORKSPACE"', ); expect(checkoutStep.run, jobName).toContain( 'if [ "$fetch_status" != "124" ] && [ "$fetch_status" != "137" ]; then',