fix(ci): extend workflow sanity checkout timeout

This commit is contained in:
Dallin Romney
2026-07-21 16:20:21 +09:00
parent ae27ee98f0
commit 90c6bd2170
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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
+1 -1
View File
@@ -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',