Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Fail a stalled git fetch in CI so actions/checkout retries it

garrytana4b187a81af5
diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml
index 8274e20f80..5619e41e40 100644
--- a/.github/workflows/actionlint.yml
+++ b/.github/workflows/actionlint.yml
@@ -25,6 +25,12 @@ 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
diff --git a/.github/workflows/ci-health.yml b/.github/workflows/ci-health.yml
index a88f1674cb..ce7b774ff7 100644
--- a/.github/workflows/ci-health.yml
+++ b/.github/workflows/ci-health.yml
@@ -41,6 +41,12 @@ 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
diff --git a/.github/workflows/convergence-nightly.yml b/.github/workflows/convergence-nightly.yml
index f17cc10732..69dee0661c 100644
--- a/.github/workflows/convergence-nightly.yml
+++ b/.github/workflows/convergence-nightly.yml
@@ -32,6 +32,12 @@ 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 }}
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 0c1bad4a27..4eb31a6a90 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -41,6 +41,12 @@ 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:
diff --git a/.github/workflows/fix-wave-closeout.yml b/.github/workflows/fix-wave-closeout.yml
index e0fe92e8e1..0ef301e05e 100644
--- a/.github/workflows/fix-wave-closeout.yml
+++ b/.github/workflows/fix-wave-closeout.yml
@@ -16,6 +16,12 @@ 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'
diff --git a/.github/workflows/fix-wave-gate.yml b/.github/workflows/fix-wave-gate.yml
index 594d0f63dc..265752f7eb 100644
--- a/.github/workflows/fix-wave-gate.yml
+++ b/.github/workflows/fix-wave-gate.yml
@@ -23,6 +23,12 @@ 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
diff --git a/.github/workflows/harness-check.yml b/.github/workflows/harness-check.yml
index 79f175a8c1..b52624c3e8 100644
--- a/.github/workflows/harness-check.yml
+++ b/.github/workflows/harness-check.yml
@@ -36,7 +36,11 @@ 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:
diff --git a/.github/workflows/heavy-tests.yml b/.github/workflows/heavy-tests.yml
index a3e5aab751..36e91d3caf 100644
--- a/.github/workflows/heavy-tests.yml
+++ b/.github/workflows/heavy-tests.yml
@@ -37,6 +37,12 @@ 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
diff --git a/.github/workflows/native-locks.yml b/.github/workflows/native-locks.yml
index 02223aabbe..d3f9b0ed18 100644
--- a/.github/workflows/native-locks.yml
+++ b/.github/workflows/native-locks.yml
@@ -19,6 +19,12 @@ 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
diff --git a/.github/workflows/nightly-watch.yml b/.github/workflows/nightly-watch.yml
index 67edb15601..e2339f9f21 100644
--- a/.github/workflows/nightly-watch.yml
+++ b/.github/workflows/nightly-watch.yml
@@ -78,6 +78,12 @@ 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: >-
diff --git a/.github/workflows/persistence-validation.yml b/.github/workflows/persistence-validation.yml
index c9d002acf8..87b6e629da 100644
--- a/.github/workflows/persistence-validation.yml
+++ b/.github/workflows/persistence-validation.yml
@@ -13,6 +13,12 @@ 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
diff --git a/.github/workflows/production-soak.yml b/.github/workflows/production-soak.yml
index 2a7eea558a..45f58a3bbc 100644
--- a/.github/workflows/production-soak.yml
+++ b/.github/workflows/production-soak.yml
@@ -39,6 +39,12 @@ 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
diff --git a/.github/workflows/scale-tier.yml b/.github/workflows/scale-tier.yml
index 7f50e58fcc..c129a2a69e 100644
--- a/.github/workflows/scale-tier.yml
+++ b/.github/workflows/scale-tier.yml
@@ -46,6 +46,12 @@ 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
diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml
index 4db63b5627..077d2e5996 100644
--- a/.github/workflows/semgrep.yml
+++ b/.github/workflows/semgrep.yml
@@ -24,6 +24,12 @@ 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
diff --git a/.github/workflows/skill-resolver-bench.yml b/.github/workflows/skill-resolver-bench.yml
index e60f13d41a..6b144df06a 100644
--- a/.github/workflows/skill-resolver-bench.yml
+++ b/.github/workflows/skill-resolver-bench.yml
@@ -22,6 +22,12 @@ 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)
diff --git a/.github/workflows/stress.yml b/.github/workflows/stress.yml
index d0e32d36a0..0f9fc0a8ab 100644
--- a/.github/workflows/stress.yml
+++ b/.github/workflows/stress.yml
@@ -36,6 +36,12 @@ 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
diff --git a/.github/workflows/sync-freshness-gate.yml b/.github/workflows/sync-freshness-gate.yml
index 3e6db8ed22..a30353acb3 100644
--- a/.github/workflows/sync-freshness-gate.yml
+++ b/.github/workflows/sync-freshness-gate.yml
@@ -26,6 +26,12 @@ 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%)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 6949c116ff..1b18dec029 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -67,6 +67,12 @@ 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
diff --git a/.github/workflows/tla-spec.yml b/.github/workflows/tla-spec.yml
index b660e87cbf..a1b6928569 100644
--- a/.github/workflows/tla-spec.yml
+++ b/.github/workflows/tla-spec.yml
@@ -111,6 +111,12 @@ 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 }})
diff --git a/test/scripts/checkout-stall-workflow.test.ts b/test/scripts/checkout-stall-workflow.test.ts
new file mode 100644
index 0000000000..a87c314937
--- /dev/null
+++ b/test/scripts/checkout-stall-workflow.test.ts
@@ -0,0 +1,28 @@
+import { describe, expect, test } from 'bun:test';
+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 }[] }> };
+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);
+
+ 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']));
+ });
+
+ 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' });
+ });
+});