Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
ci: unit shards back on 4 vCPUs (C4 reverted under V-2: 2 vCPUs raised the shard mean 542s -> 608s)
garrytandce642346c52
diff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex a17822a875..af072997f6 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -614,10 +614,10 @@ jobs:# (replaces FNV-1a path hash). Weights live in scripts/test-weights.json,# mined from real CI logs via scripts/mine-shard-weights.ts. Missing# weights fall back to corpus median — new test files work immediately.- # 2 vCPUs (C4): a shard is one bun process (measured 1.1-1.5 busy cores on- # average); shards 2 and 9 took the same time on 4, 8 and 16 vCPUs, and a- # 77-file slice with coverage took 212s on 2 cores vs 204s on 4.- runs-on: ubicloud-standard-2-ubuntu-2404+ # 4 vCPUs: a shard is one bun process (1.1-1.5 busy cores on average), but+ # on 2 vCPUs the unit shard mean rose from 542s to 608s on PR #6013 and+ # made Test the PR critical path, so shards stay on 4.+ runs-on: ubicloud-standard-4-ubuntu-2404# 22, not 15: under parallel PR load the PGLite WASM cold-starts stretch a# shard past 15 min while every test is still passing — the timeout then# cancels the job and the test-status gate reads it as a failure. 13 runsdiff --git a/test/scripts/ci-runner-routing.test.ts b/test/scripts/ci-runner-routing.test.tsindex 2fc65b1ec7..9a7b010747 100644--- a/test/scripts/ci-runner-routing.test.ts+++ b/test/scripts/ci-runner-routing.test.ts@@ -55,10 +55,12 @@ describe('CI runner routing', () => {expect(load('heavy-tests.yml').jobs.heavy['runs-on']).toBe(heavy);});- test('PR-critical single-process shards run on 2 vCPUs and the serial pool on 4 (C1, C4, C8)', () => {- // A unit shard took 212s on 2 cores vs 204s on 4; a 25-file E2E sample 442s- // vs 455s. The serial shards finish far off the critical path on 4.- expect(load('test.yml').jobs.test['runs-on']).toBe(small);+ test('Selected E2E shards run on 2 vCPUs; unit shards and the serial pool on 4 (C1, C8; C4 reverted)', () => {+ // A 25-file E2E sample took 442s on 2 cores vs 455s on 4. Unit shards stay on+ // 4: on PR #6013 the 2-vCPU cell raised the unit shard mean from 542s to 608s+ // and made Test the critical path (V-2 revert). The serial shards finish far+ // off the critical path on 4.+ expect(load('test.yml').jobs.test['runs-on']).toBe(single);expect(load('e2e.yml').jobs['selected-e2e']['runs-on']).toBe(small);expect(load('test.yml').jobs['serial-tests']['runs-on']).toBe(single);});