Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
ci(macos): typecheck step timeout from the measured macOS run (282 s, 3x is about 15 minutes) (#6056)
garrytanfe3cd806c8bc
diff --git a/.github/workflows/macos-validation.yml b/.github/workflows/macos-validation.ymlindex e593e222b6..edcdc18667 100644--- a/.github/workflows/macos-validation.yml+++ b/.github/workflows/macos-validation.yml@@ -123,13 +123,14 @@ jobs:# 110-142 s alone on this 3-core arm64 runner, 121-167 s inside verify.# Same shape as test.yml's typecheck job: its own job, a step timeout from# measurement, and the incremental state saved on every outcome. Step- # timeout: 3 x the worst cold run (142 s) is about 7 minutes.+ # timeout: 3 x the worst measured run is about 15 minutes (282 s from an+ # older commit's state, run 39168836406; a cold run is no faster).# Same gate as macos-26 (named exception, docs/TESTING.md#event-parity).if: |github.event_name != 'pull_request' ||contains(github.event.pull_request.labels.*.name, 'macos-validation')runs-on: macos-26- timeout-minutes: 20+ timeout-minutes: 25steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2@@ -148,7 +149,7 @@ jobs:restore-keys: |tsbuildinfo-${{ runner.os }}-${{ hashFiles('bun.lock', 'tsconfig.json') }}-- name: Typecheck (tsc, incremental)- timeout-minutes: 7+ timeout-minutes: 15run: bun run typecheck# Saved even when tsc finds type errors or another job fails: tsc# writes its state on an error too, so the next run starts warm.diff --git a/test/scripts/ci-gates.test.ts b/test/scripts/ci-gates.test.tsindex fedc43cfcd..5b715a7263 100644--- a/test/scripts/ci-gates.test.ts+++ b/test/scripts/ci-gates.test.ts@@ -82,7 +82,7 @@ describe('CI execution evidence', () => {expect(job['runs-on']).toBe('macos-26');expect(job.if).toBe(mac.jobs['macos-26'].if);const tsc = job.steps.find(step => step.run === 'bun run typecheck')!;- expect(tsc['timeout-minutes']).toBe(7);+ expect(tsc['timeout-minutes']).toBe(15);const restore = job.steps.find(step => step.uses?.startsWith('actions/cache/restore@') && step.with?.path === 'node_modules/.cache/gbrain-typecheck.tsbuildinfo')!;expect(restore.with!.key).toBe(unit.jobs.typecheck.steps.find(step => step.uses?.startsWith('actions/cache/restore@') && step.with?.path === restore.with!.path)!.with!.key);const save = job.steps.find(step => step.uses?.startsWith('actions/cache/save@'))!;