Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Bound each Ubicloud CI checkout with a time limit and a second attempt

garrytanbbce6b621b35
diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml
index 5619e41e40..702c475b66 100644
--- a/.github/workflows/actionlint.yml
+++ b/.github/workflows/actionlint.yml
@@ -25,16 +25,17 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
actionlint:
runs-on: ubicloud-standard-2-ubuntu-2404
timeout-minutes: 5
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: rhysd/actionlint@914e7df21a07ef503a81201c76d2b11c789d3fca # v1.7.12
diff --git a/.github/workflows/ci-health.yml b/.github/workflows/ci-health.yml
index ce7b774ff7..282f9f91b2 100644
--- a/.github/workflows/ci-health.yml
+++ b/.github/workflows/ci-health.yml
@@ -41,12 +41,6 @@ concurrency:
group: ci-health
cancel-in-progress: false
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
report:
runs-on: ubicloud-standard-2-ubuntu-2404
@@ -57,7 +51,18 @@ jobs:
actions: read
checks: read
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 6
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ # git history for the "serial files added this week" line.
+ fetch-depth: 0
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 6
with:
persist-credentials: false
# git history for the "serial files added this week" line.
diff --git a/.github/workflows/convergence-nightly.yml b/.github/workflows/convergence-nightly.yml
index 69dee0661c..e4d1d2c68f 100644
--- a/.github/workflows/convergence-nightly.yml
+++ b/.github/workflows/convergence-nightly.yml
@@ -32,12 +32,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
convergence:
name: Convergence nightly / Bun ${{ matrix.bun }} / seed ${{ inputs.seed || github.run_id }}
@@ -74,7 +68,14 @@ jobs:
env:
GBRAIN_TEST_CONVERGENCE_LOG_DIR: ${{ github.workspace }}/.context/convergence
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: ${{ matrix.bun }}
@@ -163,7 +164,14 @@ jobs:
env:
GBRAIN_TEST_BUSY_AGENT_LOG_DIR: ${{ github.workspace }}/.context/busy-agent
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: ${{ matrix.bun }}
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 4eb31a6a90..37601b0329 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -41,12 +41,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.sha) || github.ref }}${{ github.event_name == 'workflow_dispatch' && inputs.full_corpus && '-full-corpus' || '' }}${{ github.event_name == 'schedule' && '-nightly' || '' }}
cancel-in-progress: true
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
# Test results are never cached; selection and live-provider state vary by run.
jsonb-parity:
@@ -77,7 +71,14 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -161,7 +162,14 @@ jobs:
reuse: ${{ steps.reuse.outputs.reuse }}
reuse-source-run-id: ${{ steps.reuse.outputs.source_run_id }}
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -245,7 +253,14 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -342,7 +357,14 @@ jobs:
ports:
- 55433:5432
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -510,7 +532,14 @@ jobs:
ports:
- 55433:5432
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -602,7 +631,14 @@ jobs:
ports:
- 55433:5432
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -681,7 +717,14 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -767,7 +810,14 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -879,7 +929,14 @@ jobs:
matrix:
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -939,7 +996,14 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -985,7 +1049,14 @@ jobs:
runs-on: ubicloud-standard-8-ubuntu-2404
timeout-minutes: 30
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -1022,7 +1093,14 @@ jobs:
runs-on: ubicloud-standard-4-ubuntu-2404
timeout-minutes: 35
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -1078,7 +1156,14 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -1174,7 +1259,16 @@ jobs:
checks: read
timeout-minutes: 15
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 6
+ continue-on-error: true
+ with:
+ fetch-depth: 0 # baseline gate reads git show origin/master:
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 6
with:
fetch-depth: 0 # baseline gate reads git show origin/master:
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
@@ -1241,7 +1335,14 @@ jobs:
runs-on: ubicloud-standard-2-ubuntu-2404
timeout-minutes: 10
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -1358,8 +1459,15 @@ jobs:
done
fi
echo "✓ all required e2e jobs succeeded"
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.full_corpus)
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.full_corpus)
with:
@@ -1396,7 +1504,18 @@ jobs:
echo "::error::e2e-full-suite requires e2e-status to succeed on this run (got $E2E_STATUS)"
exit 1
fi
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ sparse-checkout: scripts/ci-full-suite-tree.sh
+ sparse-checkout-cone-mode: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
sparse-checkout: scripts/ci-full-suite-tree.sh
diff --git a/.github/workflows/fix-wave-closeout.yml b/.github/workflows/fix-wave-closeout.yml
index 0ef301e05e..a0da97cd9b 100644
--- a/.github/workflows/fix-wave-closeout.yml
+++ b/.github/workflows/fix-wave-closeout.yml
@@ -16,12 +16,6 @@ on:
permissions: {}
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
close-superseded:
if: github.event.pull_request.merged == true && github.event.pull_request.head.repo.full_name == 'garrytan/gbrain'
@@ -31,7 +25,18 @@ jobs:
contents: read
pull-requests: write
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ sparse-checkout: scripts/fix-wave-closeout.ts
+ sparse-checkout-cone-mode: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
sparse-checkout: scripts/fix-wave-closeout.ts
diff --git a/.github/workflows/fix-wave-gate.yml b/.github/workflows/fix-wave-gate.yml
index 265752f7eb..b799a0268b 100644
--- a/.github/workflows/fix-wave-gate.yml
+++ b/.github/workflows/fix-wave-gate.yml
@@ -23,12 +23,6 @@ concurrency:
group: fix-wave-gate-${{ github.event.pull_request.number }}
cancel-in-progress: true
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
contributor-gate:
runs-on: ubicloud-standard-2-ubuntu-2404
@@ -37,7 +31,18 @@ jobs:
contents: read
pull-requests: read
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ sparse-checkout: scripts/fix-wave-gate.ts
+ sparse-checkout-cone-mode: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
sparse-checkout: scripts/fix-wave-gate.ts
@@ -58,7 +63,18 @@ jobs:
contents: read
pull-requests: write
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ sparse-checkout: scripts/fix-wave-gate.ts
+ sparse-checkout-cone-mode: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
sparse-checkout: scripts/fix-wave-gate.ts
diff --git a/.github/workflows/harness-check.yml b/.github/workflows/harness-check.yml
index b52624c3e8..8d049e524f 100644
--- a/.github/workflows/harness-check.yml
+++ b/.github/workflows/harness-check.yml
@@ -36,11 +36,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
HARNESS_EVALS_PIN: 7e8d872edb6d121cc7376b1ce415bd04ad1f3bfe
jobs:
@@ -69,9 +65,19 @@ jobs:
exit 0
fi
echo "run=true" >> "$GITHUB_OUTPUT"
- - name: Check out this pull request's gbrain
+ - id: checkout
+ name: Check out this pull request's gbrain
if: steps.gate.outputs.run == 'true'
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ ref: ${{ github.event.pull_request.head.sha }}
+ fetch-depth: 1
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1
diff --git a/.github/workflows/heavy-tests.yml b/.github/workflows/heavy-tests.yml
index 36e91d3caf..66f54648e5 100644
--- a/.github/workflows/heavy-tests.yml
+++ b/.github/workflows/heavy-tests.yml
@@ -37,12 +37,6 @@ concurrency:
group: heavy-tests-${{ github.ref }}
cancel-in-progress: true
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
heavy:
name: Heavy tests
@@ -74,7 +68,14 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -176,7 +177,16 @@ jobs:
CODEX_NPM_VERSION: "0.147.0"
CLAUDE_NPM_VERSION: "2.1.233"
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
@@ -287,7 +297,16 @@ jobs:
HERMES_INSTALL_SHA256: "5854b15670b51a8daae8f59ddfa917062de9f74be261eb73b4b8d719710f8968"
GBRAIN_REAL_HERMES_E2E: '1'
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
@@ -539,7 +558,16 @@ jobs:
GROK_NPM_LINUX_ARM64_INTEGRITY: "sha512-zGK42Eq3ZmIa7cSVnl6CiJ4cxTCMsNLQCmCoLJhy5eZXfAvZ1DA3K3HXmKCj4OScX8SalYlp7mx8HWl9Y6gytw=="
GBRAIN_REAL_GROK_E2E: '1'
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
@@ -767,7 +795,16 @@ jobs:
CODEX_NPM_VERSION: "0.147.0"
CLAUDE_NPM_VERSION: "2.1.233"
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
@@ -866,7 +903,16 @@ jobs:
OPENCODE_NPM_LINUX_ARM64_INTEGRITY: "sha512-e8D3g0qJEIzawEg2+ygW3vkZjAYL2ssyAx4GbihjwXwZFvlZZy5zRWWzdz5KLBoHSTl0FB73vNtnNeXONyHpVQ=="
GBRAIN_REAL_OPENCODE_E2E: '1'
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
@@ -1095,7 +1141,16 @@ jobs:
# Deliberately NO OPENCODE_VERSION pin: T1 asserts the bare-semver
# SHAPE only, and the suite runs against whatever `latest` is today.
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
diff --git a/.github/workflows/native-locks.yml b/.github/workflows/native-locks.yml
index d3f9b0ed18..5de212924e 100644
--- a/.github/workflows/native-locks.yml
+++ b/.github/workflows/native-locks.yml
@@ -19,12 +19,6 @@ on:
permissions:
contents: read
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
openclaw:
name: OpenClaw 2026.9.4 native context-engine startup
@@ -47,7 +41,14 @@ jobs:
--health-timeout 5s
--health-retries 10
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38
with:
node-version: 24.18.0
@@ -87,7 +88,14 @@ jobs:
- name: Record the job deadline
shell: bash
run: echo "GBRAIN_JOB_DEADLINE=$(( $(date +%s) + 15 * 60 ))" >> "$GITHUB_ENV"
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
# A wedged darwin-x64 runner uploads no log at all (#7457's cell, #7419, #7303, #7238), so a background loop posts
# the current step or suite, free memory, swap, load and the busiest process names as the commit status
# diag/native-heartbeat/<cell>; GitHub keeps every status, so the last one before a wedge survives it. Nothing on a
@@ -227,7 +235,18 @@ jobs:
contents: read
statuses: write
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ sparse-checkout: scripts/native/heartbeat-finalize.ts
+ sparse-checkout-cone-mode: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
with:
persist-credentials: false
sparse-checkout: scripts/native/heartbeat-finalize.ts
@@ -326,7 +345,14 @@ jobs:
bun: ['1.4.4']
target: [linux-x64-musl, linux-arm64-musl]
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: ${{ matrix.bun }}
diff --git a/.github/workflows/nightly-watch.yml b/.github/workflows/nightly-watch.yml
index e2339f9f21..66b499db8b 100644
--- a/.github/workflows/nightly-watch.yml
+++ b/.github/workflows/nightly-watch.yml
@@ -78,12 +78,6 @@ on:
permissions: {}
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
resolve:
if: >-
@@ -101,7 +95,18 @@ jobs:
track: ${{ steps.target.outputs.track }}
run_id: ${{ steps.target.outputs.run_id }}
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ sparse-checkout: |
+ scripts
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
sparse-checkout: |
@@ -146,7 +151,20 @@ jobs:
contents: read
pull-requests: read
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ sparse-checkout: |
+ scripts
+ .github/nightly-known-red.tsv
+ TODOS.md
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
sparse-checkout: |
diff --git a/.github/workflows/persistence-validation.yml b/.github/workflows/persistence-validation.yml
index 87b6e629da..2bd35fdb7f 100644
--- a/.github/workflows/persistence-validation.yml
+++ b/.github/workflows/persistence-validation.yml
@@ -13,12 +13,6 @@ on:
permissions:
contents: read
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
# Event parity (docs/ci-event-parity.md#full-ci-on-pull-requests): full profile only; a
# pull request (cheap tier) runs only the crash robot and convergence here. The
@@ -47,7 +41,14 @@ jobs:
--health-cmd "pg_isready -U gbrain_test -d gbrain_test"
--health-interval 5s --health-timeout 5s --health-retries 20
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: ${{ matrix.bun }}
@@ -106,7 +107,14 @@ jobs:
IGNORE_STARTUP_PARAMETERS: extra_float_digits,statement_timeout,idle_in_transaction_session_timeout,search_path
ports: ['55433:5432']
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: ${{ matrix.bun }}
@@ -241,7 +249,14 @@ jobs:
--health-cmd "pg_isready -U gbrain_test -d gbrain_test"
--health-interval 5s --health-timeout 5s --health-retries 20
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: ${{ matrix.bun }}
@@ -303,7 +318,14 @@ jobs:
--health-cmd "pg_isready -U gbrain_test -d gbrain_test"
--health-interval 5s --health-timeout 5s --health-retries 20
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: ${{ matrix.bun }}
@@ -371,7 +393,14 @@ jobs:
IGNORE_STARTUP_PARAMETERS: extra_float_digits,statement_timeout,idle_in_transaction_session_timeout,search_path
ports: ['55433:5432']
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: ${{ matrix.bun }}
@@ -449,7 +478,14 @@ jobs:
--health-cmd "pg_isready -U gbrain_test -d gbrain_test"
--health-interval 5s --health-timeout 5s --health-retries 20
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: ${{ matrix.bun }}
@@ -536,7 +572,14 @@ jobs:
IGNORE_STARTUP_PARAMETERS: extra_float_digits,statement_timeout,idle_in_transaction_session_timeout,search_path
ports: ['55433:5432']
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: ${{ matrix.bun }}
diff --git a/.github/workflows/production-soak.yml b/.github/workflows/production-soak.yml
index 45f58a3bbc..b2af37f9fb 100644
--- a/.github/workflows/production-soak.yml
+++ b/.github/workflows/production-soak.yml
@@ -39,12 +39,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
plan:
runs-on: ubicloud-standard-2-ubuntu-2404
@@ -80,7 +74,14 @@ jobs:
matrix:
rtt: ${{ fromJSON(needs.plan.outputs.rtts) }}
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- name: Bootstrap (Docker images, bun, frozen dependencies)
timeout-minutes: 20
run: bash scripts/bench/production-soak/vm-setup.sh
diff --git a/.github/workflows/scale-tier.yml b/.github/workflows/scale-tier.yml
index c129a2a69e..b89f5e8ec0 100644
--- a/.github/workflows/scale-tier.yml
+++ b/.github/workflows/scale-tier.yml
@@ -46,12 +46,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}${{ github.event_name == 'schedule' && '-nightly' || '' }}${{ github.event.action == 'labeled' && github.event.label.name != 'scale-tier' && format('-label-{0}', github.run_id) || '' }}
cancel-in-progress: true
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
# Trunk Dynamic CI filter (docs/ci-event-parity.md#trunk-dynamic-ci): one output
# per gated job key; a gated job runs unless its output is exactly 'false', so it
@@ -89,7 +83,16 @@ jobs:
run: ${{ steps.plan.outputs.run }}
pages: ${{ steps.plan.outputs.pages }}
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ sparse-checkout: scripts/scale
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
sparse-checkout: scripts/scale
# Event parity: Bun is needed only by the schedule's trend planner below.
@@ -188,7 +191,14 @@ jobs:
SCALE_SEED: '1'
CORPUS_DIR: .context/scale-corpus/${{ matrix.pages }}-seed1
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml
index 077d2e5996..d94bb154b9 100644
--- a/.github/workflows/semgrep.yml
+++ b/.github/workflows/semgrep.yml
@@ -24,12 +24,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
semgrep:
# Named exception (docs/TESTING.md#event-parity): pull requests gate on findings
@@ -40,7 +34,18 @@ jobs:
container:
image: semgrep/semgrep:1.170.0@sha256:c98f8829eea377274ee4b10656458b078b88232469b2ff913f091c2317347c9d
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 6
+ continue-on-error: true
+ with:
+ # Full history so --baseline-commit can diff against the PR base;
+ # a shallow clone would not contain the base commit.
+ fetch-depth: 0
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 6
with:
# Full history so --baseline-commit can diff against the PR base;
# a shallow clone would not contain the base commit.
@@ -74,7 +79,14 @@ jobs:
container:
image: semgrep/semgrep:1.170.0@sha256:c98f8829eea377274ee4b10656458b078b88232469b2ff913f091c2317347c9d
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- name: Semgrep full-tree scan (report-only, SARIF)
run: |
semgrep scan --config p/default --config p/typescript --sarif-output=semgrep.sarif || true
diff --git a/.github/workflows/skill-resolver-bench.yml b/.github/workflows/skill-resolver-bench.yml
index 6b144df06a..74ba9e2d9c 100644
--- a/.github/workflows/skill-resolver-bench.yml
+++ b/.github/workflows/skill-resolver-bench.yml
@@ -22,19 +22,20 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
bench:
name: Skill resolver bench (1,000 and 7,500 skills, p95 bars)
runs-on: ubicloud-standard-2-ubuntu-2404
timeout-minutes: 20
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
diff --git a/.github/workflows/stress.yml b/.github/workflows/stress.yml
index 0f9fc0a8ab..144f20c06e 100644
--- a/.github/workflows/stress.yml
+++ b/.github/workflows/stress.yml
@@ -36,12 +36,6 @@ on:
permissions:
contents: read
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
plan:
name: Stress plan
@@ -53,7 +47,16 @@ jobs:
steps:
# Full history: the gate diffs against the merge base, the race hunt
# reads which helpers changed on master since the last night.
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 6
+ continue-on-error: true
+ with:
+ fetch-depth: 0
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 6
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
@@ -111,7 +114,14 @@ jobs:
--health-cmd "pg_isready -U gbrain_test -d gbrain_test"
--health-interval 5s --health-timeout 5s --health-retries 20
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -162,7 +172,14 @@ jobs:
issues: read
actions: read
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
diff --git a/.github/workflows/sync-freshness-gate.yml b/.github/workflows/sync-freshness-gate.yml
index a30353acb3..1623b5169f 100644
--- a/.github/workflows/sync-freshness-gate.yml
+++ b/.github/workflows/sync-freshness-gate.yml
@@ -26,19 +26,20 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}${{ inputs.runs && inputs.runs != '1' && format('-{0}', github.run_id) || '' }}
cancel-in-progress: false
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
gate:
name: Sync freshness gate (10k, watch, p50 of 10 vs baseline +25%)
runs-on: ubicloud-standard-4-ubuntu-2404
timeout-minutes: ${{ inputs.runs && inputs.runs != '1' && 240 || 60 }}
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 1b18dec029..128c2e9745 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -67,12 +67,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.sha) || github.ref }}${{ github.event_name == 'workflow_dispatch' && inputs.native_only == true && '-native-only' || '' }}${{ github.event_name == 'workflow_dispatch' && (inputs.race_hunt == true || inputs.stress_files != '' || inputs.stress_base != '') && format('-diagnostic-{0}', github.run_id) || '' }}${{ github.event_name == 'schedule' && '-nightly' || '' }}
cancel-in-progress: true
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
# Trunk Dynamic CI filter (docs/ci-event-parity.md#trunk-dynamic-ci). It asks Trunk
# which of the gated cheap-tier jobs below this pull-request push needs and writes
@@ -130,7 +124,23 @@ jobs:
reuse: ${{ steps.reuse.outputs.reuse }}
reuse-source-run-id: ${{ steps.reuse.outputs.source_run_id }}
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ sparse-checkout: |
+ scripts/ci-native-scope.sh
+ scripts/ci-manifest-diff.sh
+ scripts/ci-convergence-scope.sh
+ scripts/select-e2e.ts
+ scripts/ci-reuse.ts
+ scripts/lib/gh-issue.ts
+ sparse-checkout-cone-mode: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
sparse-checkout: |
scripts/ci-native-scope.sh
@@ -250,7 +260,16 @@ jobs:
runs-on: ubicloud-standard-2-ubuntu-2404
timeout-minutes: 10
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 6
+ continue-on-error: true
+ with:
+ fetch-depth: 0
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 6
with:
fetch-depth: 0
# Use the open-source gitleaks CLI, not gitleaks-action@v2: the v2 action
@@ -313,7 +332,14 @@ jobs:
# included, runs every supported Bun version on every OS
# (docs/TESTING.md#event-parity).
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: ${{ matrix.bun }}
@@ -381,7 +407,14 @@ jobs:
contents: read
pull-requests: read
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- id: scope
env:
GH_TOKEN: ${{ github.token }}
@@ -441,7 +474,14 @@ jobs:
runs-on: ubicloud-standard-8-ubuntu-2404
timeout-minutes: 12
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -541,7 +581,14 @@ jobs:
runs-on: ubicloud-standard-4-ubuntu-2404
timeout-minutes: 21
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -603,7 +650,14 @@ jobs:
matrix:
shard: [1, 2]
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -650,7 +704,14 @@ jobs:
# bounded rescue attempts, and the machine-exclusive tail on shard 1.
timeout-minutes: 25
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -737,7 +798,14 @@ jobs:
runs-on: ubicloud-standard-4-ubuntu-2404
timeout-minutes: 12
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -821,7 +889,14 @@ jobs:
runs-on: ubicloud-standard-4-ubuntu-2404
timeout-minutes: 10 # ~15s hermetic run; matches the per-job-timeout hardening (#2254)
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- name: Fetch origin/master baseline ref (shallow)
# The gate reads ONE file via `git show origin/master:...` — a depth-1
# fetch of the master ref replaces the previous full 3700-commit clone.
@@ -869,7 +944,14 @@ jobs:
runs-on: ubicloud-standard-4-ubuntu-2404
timeout-minutes: 25
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -990,7 +1072,14 @@ jobs:
matrix:
shards: [[1, 2], [3, 4], [5, 6], [7, 8], [9, 10], [11, 12], [13, 14], [15, 16], [17, 18], [19, 20], [21, 22], [23, 24], [25, 26], [27, 28], [29, 30]]
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -1112,7 +1201,16 @@ jobs:
runs-on: ubicloud-standard-4-ubuntu-2404
timeout-minutes: 10
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 6
+ continue-on-error: true
+ with:
+ fetch-depth: 0 # diff gate needs origin/master; baseline gate reads git show origin/master:
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 6
with:
fetch-depth: 0 # diff gate needs origin/master; baseline gate reads git show origin/master:
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
@@ -1240,7 +1338,14 @@ jobs:
runs-on: ubicloud-standard-4-ubuntu-2404
timeout-minutes: 12
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -1293,7 +1398,14 @@ jobs:
runs-on: ubicloud-standard-4-ubuntu-2404
timeout-minutes: 10
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.4
@@ -1327,7 +1439,20 @@ jobs:
runs-on: ubicloud-standard-2-ubuntu-2404
timeout-minutes: 10
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ sparse-checkout: |
+ scripts/ci-executed-counts.ts
+ scripts/ci-manifest.ts
+ docs/test-audit/2026-10-04/expected-deltas.tsv
+ sparse-checkout-cone-mode: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
sparse-checkout: |
scripts/ci-executed-counts.ts
@@ -1438,7 +1563,18 @@ jobs:
echo "::error::full-suite requires test-status to succeed on this run (got $TEST_STATUS)"
exit 1
fi
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ sparse-checkout: scripts/ci-full-suite-tree.sh
+ sparse-checkout-cone-mode: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
sparse-checkout: scripts/ci-full-suite-tree.sh
@@ -1480,7 +1616,18 @@ jobs:
runs-on: ubicloud-standard-2-ubuntu-2404
timeout-minutes: 5
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ with:
+ persist-credentials: false
+ sparse-checkout: scripts/ci-cheap-tier.sh
+ sparse-checkout-cone-mode: false
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
with:
persist-credentials: false
sparse-checkout: scripts/ci-cheap-tier.sh
diff --git a/.github/workflows/tla-spec.yml b/.github/workflows/tla-spec.yml
index a1b6928569..13b63b8ddf 100644
--- a/.github/workflows/tla-spec.yml
+++ b/.github/workflows/tla-spec.yml
@@ -111,12 +111,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
-# A git transfer below 1 KB/s for 120 s fails, so actions/checkout retries its fetch (3 attempts) instead of
-# hanging silent until the job timeout on a stalled connection to github.com.
-env:
- GIT_HTTP_LOW_SPEED_LIMIT: '1000'
- GIT_HTTP_LOW_SPEED_TIME: '120'
-
jobs:
tla:
name: TLC and guard mutants (${{ matrix.spec }})
@@ -138,7 +132,14 @@ jobs:
--health-cmd "pg_isready -U gbrain_test -d gbrain_test"
--health-interval 5s --health-timeout 5s --health-retries 20
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
+ continue-on-error: true
+ - name: Check out again after a stalled first attempt
+ if: steps.checkout.outcome == 'failure'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 3
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
distribution: temurin
diff --git a/changelog.d/capy-checkout-stall-bound.md b/changelog.d/capy-checkout-stall-bound.md
index 07fa4678ef..116bd2d5ff 100644
--- a/changelog.d/capy-checkout-stall-bound.md
+++ b/changelog.d/capy-checkout-stall-bound.md
@@ -1,4 +1,4 @@
-**CI checkouts retry a stalled fetch instead of hanging until the job times out.**
+**CI checkouts on Ubicloud runners retry a stalled fetch instead of hanging until the job times out.**
### Fixed
-- A CI checkout whose connection to github.com goes quiet now fails after 120 seconds, and actions/checkout fetches again, so a stall costs about two minutes instead of a timed-out job and a rerun. This changes only CI; nothing users install changes.
+- Every checkout in a CI job on a Ubicloud runner now has a time limit (3 minutes, 6 for a full-history fetch). A checkout that runs past it is stopped and a second checkout step runs at once, so a stalled git fetch costs about three minutes instead of a timed-out job and a rerun of the whole Test run. This changes only CI; nothing users install changes.
diff --git a/test/scripts/checkout-stall-workflow.test.ts b/test/scripts/checkout-stall-workflow.test.ts
index a87c314937..1d5b1b9e81 100644
--- a/test/scripts/checkout-stall-workflow.test.ts
+++ b/test/scripts/checkout-stall-workflow.test.ts
@@ -3,26 +3,39 @@ import { readdirSync, readFileSync } from 'node:fs';
import { join } from 'node:path';
import { load } from 'js-yaml';
-// A fetch that stalls on a Ubicloud runner sends no bytes and never fails on its own, so the job sat until its
-// timeout. With git's low-speed abort in the job environment the stalled fetch fails and actions/checkout, which
-// retries a failed fetch, tries again. Every workflow that checks out on a Ubicloud runner carries it, since a
-// workflow called through workflow_call does not inherit its caller's env.
-type Workflow = { env?: Record<string, unknown>; jobs: Record<string, { 'runs-on'?: unknown; steps?: { uses?: string }[] }> };
+// On the Ubicloud runners a checkout's git fetch sometimes runs for 15 to 20 minutes, against about 15 s for a healthy
+// one, and no git setting bounds it. So every checkout in a workflow that runs on those runners is a pair: a first
+// attempt with a wall-clock bound that may fail, then the same checkout again only when the first failed.
+type Step = { id?: string; if?: string; uses?: string; with?: Record<string, unknown>; 'timeout-minutes'?: number; 'continue-on-error'?: boolean };
+type Job = { 'runs-on'?: unknown; strategy?: unknown; steps?: Step[] };
+type Workflow = { jobs: Record<string, Job> };
const dir = join(import.meta.dir, '../../.github/workflows');
const workflows = readdirSync(dir).filter(f => f.endsWith('.yml')).sort()
.map(file => ({ file, text: readFileSync(join(dir, file), 'utf8') }))
- .map(({ file, text }) => ({ file, text, parsed: load(text) as Workflow }));
-const checksOutOnUbicloud = ({ text, parsed }: (typeof workflows)[number]) => /ubicloud-/.test(text)
- && Object.values(parsed.jobs ?? {}).some(job => (job.steps ?? []).some(step => step.uses?.startsWith('actions/checkout@')));
-
-describe('a stalled checkout fetch fails and is retried', () => {
- const covered = workflows.filter(checksOutOnUbicloud);
+ .filter(({ text }) => /ubicloud-/.test(text) && /actions\/checkout@/.test(text))
+ .map(({ file, text }) => ({ file, parsed: load(text) as Workflow }));
+const isCheckout = (step: Step) => step.uses?.startsWith('actions/checkout@') ?? false;
+const onUbicloud = (job: Job) => JSON.stringify([job['runs-on'], job.strategy]).includes('ubicloud-');
+describe('a stalled checkout is bounded and tried again', () => {
test('the scan finds the workflows that run the full suites', () => {
- expect(covered.map(w => w.file)).toEqual(expect.arrayContaining(['e2e.yml', 'persistence-validation.yml', 'test.yml']));
+ expect(workflows.map(w => w.file)).toEqual(expect.arrayContaining(['e2e.yml', 'persistence-validation.yml', 'test.yml']));
});
- test.each(covered.map(w => [w.file, w] as const))('%s sets the low-speed abort for every job', (_file, w) => {
- expect(w.parsed.env).toMatchObject({ GIT_HTTP_LOW_SPEED_LIMIT: '1000', GIT_HTTP_LOW_SPEED_TIME: '120' });
+ test.each(workflows.map(w => [w.file, w] as const))('%s pairs every checkout with a bounded retry', (_file, w) => {
+ for (const [job, spec] of Object.entries(w.parsed.jobs).filter(([, spec]) => onUbicloud(spec))) {
+ const steps = spec.steps ?? [];
+ for (let i = 0; i < steps.length; i++) {
+ const first = steps[i];
+ if (!isCheckout(first)) continue;
+ const where = `${w.file} job ${job} step ${i + 1}`;
+ expect({ where, id: typeof first.id, continueOnError: first['continue-on-error'], bounded: (first['timeout-minutes'] ?? 0) > 0 })
+ .toEqual({ where, id: 'string', continueOnError: true, bounded: true });
+ const retry = steps[i + 1];
+ expect({ where, retry: retry && { if: retry.if, uses: retry.uses, with: retry.with, timeout: retry['timeout-minutes'], continueOnError: retry['continue-on-error'] } })
+ .toEqual({ where, retry: { if: `steps.${first.id}.outcome == 'failure'`, uses: first.uses, with: first.with, timeout: first['timeout-minutes'], continueOnError: undefined } });
+ i++;
+ }
+ }
});
});
diff --git a/test/scripts/data-safety-native-workflow.test.ts b/test/scripts/data-safety-native-workflow.test.ts
index 06bae2a07f..7f1bca1844 100644
--- a/test/scripts/data-safety-native-workflow.test.ts
+++ b/test/scripts/data-safety-native-workflow.test.ts
@@ -40,7 +40,8 @@ describe('data-safety native CI coverage', () => {
const names = job.steps.map(step => step.name ?? step.uses ?? '');
const start = job.steps.findIndex(step => step.name === 'Start the diagnostic heartbeat');
const stop = job.steps.findIndex(step => step.name === 'Stop the diagnostic heartbeat');
- expect(names[start - 1]).toStartWith('actions/checkout@');
+ expect(names[start - 2]).toStartWith('actions/checkout@');
+ expect(names[start - 1]).toBe('Check out again after a stalled first attempt');
expect(stop).toBe(job.steps.length - 1);
const env = {
GH_TOKEN: '${{ github.token }}',
diff --git a/test/scripts/e2e-wiring.test.ts b/test/scripts/e2e-wiring.test.ts
index 0a405c6e80..3d3c68a9ab 100644
--- a/test/scripts/e2e-wiring.test.ts
+++ b/test/scripts/e2e-wiring.test.ts
@@ -60,7 +60,9 @@ describe('selected-e2e job wiring', () => {
expect(line).not.toContain('|| true');
expect(line).not.toContain('|| echo');
}
- expect(job).not.toContain('continue-on-error');
+ const checkoutFirstAttempt = /- id: checkout\n\s+uses: actions\/checkout@\S+.*\n\s+timeout-minutes: \d+\n\s+continue-on-error: true\n/;
+ expect(job).toMatch(checkoutFirstAttempt);
+ expect(job.replace(checkoutFirstAttempt, '')).not.toContain('continue-on-error');
});
test('status gates on the job', () => {
diff --git a/test/scripts/nightly-e2e.test.ts b/test/scripts/nightly-e2e.test.ts
index 63adf52c82..d81dd0b668 100644
--- a/test/scripts/nightly-e2e.test.ts
+++ b/test/scripts/nightly-e2e.test.ts
@@ -162,7 +162,10 @@ describe('nightly E2E scheduling', () => {
const workflow = load(readFileSync(join(repo, '.github/workflows/e2e.yml'), 'utf8')) as any;
expect(workflow.on.workflow_dispatch.inputs.full_corpus).toMatchObject({ type: 'boolean', default: false });
for (const name of ['coverage-full-unit', 'coverage-full-serial', 'coverage-full-slow', 'coverage-full-e2e']) expect(workflow.jobs[name].if).toBe(fullProfile);
- for (const step of workflow.jobs['e2e-status'].steps.slice(1)) expect(step.if).toBe(fullProfile);
+ const [, firstCheckout, retryCheckout, ...rest] = workflow.jobs['e2e-status'].steps;
+ expect(firstCheckout.if).toBe(fullProfile);
+ expect(retryCheckout.if).toBe(`steps.${firstCheckout.id}.outcome == 'failure'`);
+ for (const step of rest) expect(step.if).toBe(fullProfile);
const selection = workflow.jobs['prepare-e2e'].steps.find((step: any) => step.id === 'select');
const select = selection.run;
expect(selection.env.FULL_CORPUS).toBe('${{ ' + fullProfile + ' }}');