Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA
TypeScript
Run Free Tests shards on 16-core runners to cut about a minute (GST-3303) (#4600)
Garry Tan09bd0fad0f95
diff --git a/.github/workflows/free-tests.yml b/.github/workflows/free-tests.ymlindex 0133dfd50..25900b1cf 100644--- a/.github/workflows/free-tests.yml+++ b/.github/workflows/free-tests.yml@@ -66,9 +66,9 @@ on:# before the runner can name a hung file. Measured over 110 free-suite jobs in# PR runs 41467261350..41478988224: p50 60 s, p90 80 s, max 142 s.env:- FREE_SUITE_RUNNER: ubicloud-standard-8+ FREE_SUITE_RUNNER: ubicloud-standard-16FREE_SUITE_SHARDS: '10'- FREE_SUITE_JOBS: '4'+ FREE_SUITE_JOBS: '8'FREE_SUITE_SETUP_SECONDS: '300'# Keyed on the PR number, not head_ref: a bare branch name carries no forkdiff --git a/changelog.d/free-suite-16-core.md b/changelog.d/free-suite-16-core.mdnew file mode 100644index 000000000..c5e8b831b--- /dev/null+++ b/changelog.d/free-suite-16-core.md@@ -0,0 +1 @@+**Free Tests runs its shards on 16-core runners.** Each of the ten free-suite shards and the exclusive one now runs on `ubicloud-standard-16` with eight sub-shards instead of `ubicloud-standard-8` with four, so every sub-shard still gets two vCPUs. In two trial runs the slowest shard job dropped from 222–226 s to 155–158 s, now that no single test file sets the floor. It costs about $0.085 more per run.diff --git a/docs/TESTING_INTERNALS.md b/docs/TESTING_INTERNALS.mdindex 5f128fa0a..a60ebf2a7 100644--- a/docs/TESTING_INTERNALS.md+++ b/docs/TESTING_INTERNALS.md@@ -199,11 +199,14 @@ one duration-packed `--ci-plan`, 10 ordinary `--ci-run` shards plus a separateexclusive-fixture shard, and a `--ci-verify` aggregate. CI shards still run onindependent machines without ordering unrelated jobs. Three workflow-levelconstants in `free-tests.yml` set that size for every event: `FREE_SUITE_RUNNER`-(`ubicloud-standard-8`), `FREE_SUITE_SHARDS` (`'10'`) and `FREE_SUITE_JOBS`-(`'4'`, the [sub-shards](#sub-shards-inside-one-ci-job) each shard runs side by+(`ubicloud-standard-16`), `FREE_SUITE_SHARDS` (`'10'`) and `FREE_SUITE_JOBS`+(`'8'`, the [sub-shards](#sub-shards-inside-one-ci-job) each shard runs side byside), which `free-plan` resolves into the shards' runner, shard count and plan.-GSTA-203 chose them by a 3-run A/B against 20 × `ubicloud-standard-4` at k = 1-(the PR that set them has the table). A `workflow_dispatch` run may+GSTA-203 first chose 10 × `ubicloud-standard-8` at k = 4 by a 3-run A/B against+20 × `ubicloud-standard-4` at k = 1 (the PR that set them has the table). GST-3303+moved to `ubicloud-standard-16` at k = 8 once `test/review-pass.test.ts` was+split: two trial runs cut the slowest shard job from 222–226 s to 155–158 s, for+about $0.085 more per run. A `workflow_dispatch` run mayoverride them with `free_runner` (`ubicloud-standard-2`, `-4`, `-8` or `-16`),`free_shards` (1–40) and `free_jobs` (1–8) for runner-sizing experiments only;its job summary says so, and it is never cited as a PR or train Free Tests result.@@ -1629,7 +1632,8 @@ refresh to a maintainer.(`GSTACK_FREE_JOBS=2`, 60-minute job): at four, files that pass nightly failedunder the load and the recording outran its old 30-minute job. The recorder stays on`ubicloud-standard-8` while the free-suite shards run on `FREE_SUITE_RUNNER`- (`ubicloud-standard-8`); both are Ubicloud standard runners. When either recording adds+ (`ubicloud-standard-16` at k = 8, the same two vCPUs per sub-shard); both are+ Ubicloud standard runners. When either recording addsor drops a test file, it force-updates the `bot/free-duration-seeds` branch,opens or refreshes one seed PR whose body states the ratchet result, anddispatches Free Tests, Windows Smoke and Quality gate on it. Thosediff --git a/test/free-tests-workflow-wiring.test.ts b/test/free-tests-workflow-wiring.test.tsindex 728597394..4580e5707 100644--- a/test/free-tests-workflow-wiring.test.ts+++ b/test/free-tests-workflow-wiring.test.ts@@ -321,7 +321,7 @@ describe('free-tests workflow wiring', () => {const workflow = Bun.YAML.parse(source) as any;const planner = workflow.jobs['free-plan'];const plan = planner.steps.find((step: any) => step.id === 'plan');- expect(workflow.env.FREE_SUITE_RUNNER).toMatch(/^ubicloud-standard-(2|4|8)$/);+ expect(workflow.env.FREE_SUITE_RUNNER).toMatch(/^ubicloud-standard-(2|4|8|16)$/);expect(workflow.env.FREE_SUITE_SHARDS).toMatch(/^[1-9][0-9]?$/);expect(planner.outputs.runner).toBe('${{ steps.plan.outputs.runner }}');expect(workflow.jobs['free-suite']['runs-on']).toBe('${{ needs.free-plan.outputs.runner }}');