mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
fix(ci): extend workflow sanity checkout timeout
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user