Skip to content

Run Free Tests shards on 16-core runners to cut about a minute (GST-3303) - #4600

Merged
capy-ai[bot] merged 1 commit into
mainfrom
ci/free-suite-16-core
Nov 21, 2026
Merged

capy-ai[bot] merged 1 commit into
mainfrom
ci/free-suite-16-core

Conversation

@garrytan

@garrytan garrytan commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Free Tests now runs its shards on 16-core Ubicloud runners with eight test workers each, up from 8-core runners with four. In two trial runs this took about a minute off the slowest shard; the first five pull request runs after it lands are the real check.
This is part of making pull request CI faster. Splitting the slowest test file (#4588) is what made the bigger runner pay off; before that split, the same trial saved only 16–22 s.
Nothing to do. If the first five pull request runs save less than 45 s on the slowest shard job, this gets reverted.

What changed
  • free-tests.yml: FREE_SUITE_RUNNER is now ubicloud-standard-16 (was -8) and FREE_SUITE_JOBS is '8' (was '4'), so each test worker still has two vCPUs. The shard count stays at 10 plus the exclusive shard.
  • The wiring test accepts ubicloud-standard-16 as the default runner, and docs/TESTING_INTERNALS.md gives the new size and the reason.
Evidence

Two trial runs per setting on the split branch:

Runner Runs Slowest shard job Slowest test step Shard cost per run
8-core, 4 workers 44874696156, 44875106601 222–226 s 187–194 s $0.20
16-core, 8 workers 44874727020, 44874734286 155–158 s 118–124 s $0.28–0.29

Shard 9 was red in three of these four runs, all on the same guard-test failure that #4588 fixed before it landed: a sub-second test and its one serial retry. The timings include those runs.

  • Cost is per started minute at $0.000625 per vCPU-minute. That's an estimated $150–240 a month more across 818 to 1,311 Free Tests runs per two weeks. It's a list-price model, not metered spend: runs that reuse an earlier result or are docs-only start no shards, and cancelled runs that already started some aren't counted, so treat it as an estimate rather than a bound. Billed shard minutes get checked after landing.
  • Peak runner use per pull request run goes from 88 to 176 vCPUs (11 shards). Ubicloud counts GitHub runners against their own runner quota, separate from the VM quota that eval runs use, so this doesn't touch the 48 vCPUs kept free for merge checks there. While the two 16-core trials and an 8-core run overlapped (440 runner vCPUs at once), shard jobs waited at most 29 s. A rough overlap model (each run's last five minutes, 11-06 to 11-20) has three or more Free Tests runs in their shard phase together 6.6% of the time, or 2.7% counting pull request runs alone. The runner quota's actual limit isn't visible to us, so heavy hours may queue.
  • Two runs per setting give an estimate, not a rate. The first five pull request runs after this lands are the real check.
Review

Pre-Landing Review: 5 issues — 0 auto-fixed, 0 asked, 0 deferred, 5 noted. No blocker; the change is two workflow constants plus a test regex, docs and a changelog note.
Gate edits: 2 listed, 2 read, 0 findings (the test regex gains 16 because the workflow's default runner is now ubicloud-standard-16; the planner's own runner check already accepted it).
Scope Check: CLEAN. Intent: run Free Tests shards on 16-core runners at k = 8. Delivered: exactly that, plus the wiring test, docs and a changelog note.

Notes from the second review pass (below the blocking floor, not fixed here):

  • .github/workflows/free-durations-record.yml:4: the recorder's header comment still says the free-suite shards run on ubicloud-standard-8.
  • docs/TESTING_INTERNALS.md:1635: "the same two vCPUs per sub-shard" could be read as describing the recorder; it means the same as the old -8 at k = 4.
  • .github/workflows/free-tests.yml:69: each run needs about twice the runner vCPUs, so peak hours may queue (see Evidence).
  • .github/workflows/free-tests.yml:71: two trial runs don't show the flake rate at k = 8; watch the flaky-test records after this lands.
  • changelog.d/free-suite-16-core.md:1: the cost and timing figures can't be checked from the checkout alone; they match the trial runs listed in Evidence and list prices.

Exploratory QA: pass (2 smoke probes: the wiring test, 18 pass; the free-plan planner at k = 8 builds 10 shards plus the exclusive shard).

Documentation

Status: current — documentation already matches the change; no edits.

Scope: base ffdd535..87505d7 (1 commit, 4 files: .github/workflows/free-tests.yml, changelog.d/free-suite-16-core.md, docs/TESTING_INTERNALS.md, test/free-tests-workflow-wiring.test.ts); no staged, unstaged or new files. Repo-wide search of Markdown and templates for stale free-suite runner or sub-shard sizing.

Documentation health:

  • docs/TESTING_INTERNALS.md — Current (sizing paragraph and seed-recorder note already say ubicloud-standard-16 at k = 8)
  • README.md, CONTRIBUTING.md, CLAUDE.md, AGENTS.md, docs/pregate.md — Current (no free-suite runner references affected)

Coverage debt: none; FREE_SUITE_RUNNER / FREE_SUITE_JOBS have reference coverage in docs/TESTING_INTERNALS.md.

Diagram drift: none.

Agent notes

Tracking: GST-3303. Captain GStack Minder (GSTA-36) chose option A on 11-21: about $150–240 a month for roughly 65–70 s per run, inside the phase-2 cap.

Rollback rule, fixed before landing: take the first 5 pull_request Free Tests runs after this lands that start shards (not reused, not docs-only, not cancelled), red or green, and the last 5 such standard-8 runs on a base with #4588. Compare the median slowest free-suite job wall (start to finish) and, separately, the median time from the run's start to the last shard finishing, which includes runner queueing. Failures and cancellations are reported on their own. If the job-wall saving is under 45 s, revert to standard-8 at k = 4 in the same lane without asking.

Plan: exempt: audited-list

Local: free-tests-workflow-wiring, free-durations-record-workflow, harness-version, docs-only-workflow, test-free-shards (132 pass); the 16 test files that read TESTING_INTERNALS.md (185 pass).

{
  "schema_version": 1,
  "pr": 4600,
  "head": "87505d7670a75a7f19a2e9ce782403b09d33be37",
  "version": "1.102.1.0",
  "base": "main",
  "gate": {
    "bun run test": {
      "pass": 1727,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "bun_run_test",
      "run": 44880954554,
      "attempt": 1,
      "tree": "108d3d95e1ff3298f3f66ebd2faa525d5b2c84a3"
    }
  ],
  "calls": 16,
  "session_kind": "unattended",
  "run": "ship-4600",
  "head_tree": "108d3d95e1ff3298f3f66ebd2faa525d5b2c84a3",
  "product_patch_id": "cf7d247ef8081779cdef7c78cfb6a2c0c8f42304",
  "gstack_version": "1.102.1.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 4,
    "rules": "85b3923b1a978e41",
    "base": "e057dfa1003a7c755ad0965dbaa4c8283732a128",
    "registry": "e057dfa1003a7c755ad0965dbaa4c8283732a128",
    "gate_scan": {
      "tagged": 0,
      "head": "87505d7670a75a7f19a2e9ce782403b09d33be37"
    },
    "reasons": [
      "gate-class",
      "runtime=4"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @108d3d95e1ff (8 checks, current for 87505d7670a7)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/44880954554/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44880954554/attempts/1",
    "free-tests.yml/cso-windows-launcher: https://github.com/garrytan/gstack/actions/runs/44880954554/attempts/1"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 5,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "est_input_tokens": 4318,
    "dispatches": {
      "specialist-batched": 1,
      "red-team": 1
    }
  },
  "gate_dispositions": []
}

Open in Capy

FREE_SUITE_RUNNER moves to ubicloud-standard-16 and FREE_SUITE_JOBS to 8, keeping two vCPUs per test worker. With test/review-pass.test.ts split, two trial runs cut the slowest shard job from 222-226 s to 155-158 s for about $0.085 more per run.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai
capy-ai Bot merged commit 09bd0fa into main Nov 21, 2026
54 checks passed
@garrytan garrytan mentioned this pull request Nov 21, 2026
capy-ai Bot added a commit that referenced this pull request Nov 21, 2026
- Habits from nine teams, written into gstack. (#4585)
- Three more habits from teams that run evals. (#4602)
- The /ship conductor trial plan gives its real-problem judge one more attempt on fresh labels after it missed its agreement bar twice, and stops the trial incomplete if it misses again (GST-3003). (#4611)
- The /ship conductor trial plan now stops a trial only at the final remote-gate refusal, gives both arms the same note that the brief overrides team rules, and counts every report the no-gstack arm returns (GST-3003). (#4609)
- The /ship conductor trial plan now ends a trial at the remote gate when its case base isn't main, gives the no-gstack arm a test runner, and audits every trial for exposure to the plan (GST-3003). (#4605)
- The /ship conductor trial plan now runs an uncounted pilot in every arm before its counted trials and takes one planned look at half the cases (GST-3003). (#4587)
- gstack's own use on Capy can be counted, and is kept out of real-use numbers. (#4576)
- Free Tests shards finish closer together. (#4578)
- The weekly test-time recording can land again on its own. (#4581)
- The job-log tree.json step's recommended sleep is long enough for real runners. (#4589)
- Pull requests no longer wait on the Trunk flaky-test upload, and the quick tier's flaky passes now reach Trunk. (#4579)
- Windows Setup E2E finishes sooner on install changes. (#4575)
- Skills no longer stop on Codex when they clean up temp files. (#4612)
- /review on Codex with OpenAI models no longer holds back a review that ran its adversarial pass. (#4622)
- Crew threads on Capy now check in at 500M own tokens, standing threads rotate at 250M and any subagent past 50M gets a look, half the old lines, because Capy's token counts read about half what they did before 2026-11-15. (#4582)
- gstack no longer offers to add a `## Skill routing` section to your project's CLAUDE.md. (#4629)
- The README and docs no longer say gstack makes your agent fix more bugs. (#4598)
- `/eval-plan` now writes eval plans that waste less money. (#4591)
- /cso checks every folder above a source file before it looks at the file, so it never looks through a symlinked folder. (#4592)
- Plan reviews no longer read a /design-review audit summary as the branch's design doc. (#4623)
- Node's built-in test files now run with `node --test` in repos that use vitest or jest. (#4626)
- A quarantined test that the runner skipped now fails the run instead of passing it. (#4590)
- A flaky free test is fixed: the spawnSync overflow check no longer fails about once an hour on CI. (#4613)
- Free Tests runs its shards on 16-core runners. (#4600)
- /office-hours asks for ground truth first. (#4468)
- Every startup session ends with a dated test. (#4468)
- /plan-tune's dream cycle now logs each send of your typed answers to Anthropic. (#4621)
- Landing a ready PR no longer depends on a hand-copied gate decision, and the ready note, release PR and squash message say the right thing. (#4596)
- /ship no longer asks for a fresh review because of a stacked parent that main already had. (#4580)
- Results PRs with large captured agent sessions can be reviewed. (#4574)
- /ship no longer stalls on review notes a reviewer already cleared, counts review rounds the way the review policy reads them, and keeps security findings out of the PR body. (#4595)
- /ship's review readers are now told never to stop processes they didn't start. (#4607)
- /ship's review no longer stops when Capy's own drive sync database grows past 100 MB. (#4606)
- /ship's preflight now honors your repository's time limit for rerunning CI-skipped tests, and tells you when a fresh worktree needs its packages installed. (#4608)
- The slowest free test file is now six files. (#4588)
- Step 11.5 keeps a reviewed head current across base-only merges. (#4577)
- On a Capy install, only the owner's opt-in sends telemetry. (#4597)
- New page: working across agent systems. (#4583)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai Bot added a commit that referenced this pull request Nov 23, 2026
Free Tests goes back to running its shards on 8-core runners with four
sub-shards each, the setup it used before #4600.

The 16-core runners made each shard faster but a whole run only about
0.4 minutes faster, while the median run cost about a third more.

Nothing to do as a reader: the same tests run in the same shards.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant