Skip to content

Run Free Tests shards on 8-core runners again to cut CI cost - #4749

Merged
capy-ai[bot] merged 3 commits into
mainfrom
free-tests-runner-8-core
Nov 23, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
free-tests-runner-8-core

Conversation

@garrytan

@garrytan garrytan commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

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.

What changed

Free Tests got more expensive this week without getting noticeably faster: #4600 doubled each shard's cores, but the macOS jobs and the final check still decide when a run finishes. This puts the shards back on ubicloud-standard-8, so a run costs about what it did before.

  • .github/workflows/free-tests.yml: FREE_SUITE_RUNNER goes back to ubicloud-standard-8 and FREE_SUITE_JOBS to '4', two vCPUs per sub-shard as before. FREE_SUITE_SHARDS stays '10'; no job is renamed or split, so the required check names are unchanged.
  • docs/TESTING_INTERNALS.md records the move back, the audit numbers and which runner size each belongs to.
  • A changelog fragment describes it.

There is no visible surface to picture, because the change is two workflow constants.

Why

The 2026-11-23 weekly CI audit found that on 16 cores shard jobs took 2.6 min p50 against 4.4 on 8 cores, but a whole run only went from 6.2 to 5.8 min p50, while a run's Ubicloud cost went from $0.23 to $0.31 p50. The audit puts that at roughly $80 a week at current volume, an estimate from the median gap at list price; the mean gap in its sample was smaller ($0.240 on 16 cores, n=27, against $0.230 on 8 cores, n=71).

Blast radius

Only the free-suite shard jobs change runner size. Each shard's job timeout is computed from FREE_SUITE_JOBS and the recorded durations, so the slower shards get matching timeouts, and the wiring tests pass on this tree. Free Tests on this pull request ran on the new setting.

Documentation

Status: current. The documentation already matches the change, and no edits were needed.

Scope: 3 committed files from cb06a6d to 9baea90 (.github/workflows/free-tests.yml, changelog.d/free-tests-runner-8-core.md, docs/TESTING_INTERNALS.md), with no staged, unstaged or new files. I searched the authored docs for stale references to the free-suite runner size and sub-shard count.

Documentation health:

  • docs/TESTING_INTERNALS.md: current. The Free Tests sizing paragraph and the duration-recorder note both say ubicloud-standard-8 at k = 4, which matches FREE_SUITE_RUNNER and FREE_SUITE_JOBS.
  • changelog.d/free-tests-runner-8-core.md: current. It agrees with the workflow and the testing doc.
  • CONTRIBUTING.md, docs/pregate.md, docs/ship-policy.md, docs/skills.md: current. Their standard-16 mentions describe Ubicloud VM sizes, not the Free Tests shard runner.

Coverage debt: none new. The runner constants already have reference and explanation coverage in TESTING_INTERNALS.md.

Diagram drift: none. No diagram names the runner size.

Pre-Landing Review

No blocking issues. Four reviewers, including a second-model review, raised only low notes: the changelog wrongly gave the exclusive shard four sub-shards (fixed), the fragment name did not follow the branch slug (fixed), the docs sentence did not say which runner each number belongs to (fixed), the audit numbers cannot be recomputed from the repository (they come from the weekly audit's 100-run sample), and if the macOS jobs get faster later the 16-core saving would matter again.

Eval Results

No prompt-related files changed — evals skipped.

TODOS

No TODO items completed in this PR.

Tests
  • bun test test/free-tests-workflow-wiring.test.ts test/free-durations-record-workflow.test.ts test/test-free-shards.test.ts: 112 pass, 0 fail
Agent notes

For GStack Minder (GSTA-36), thread GSTA-824, from the 2026-11-23 weekly audit (D2, proposal 1). #4600 changed both the runner and FREE_SUITE_JOBS (4 to 8), so both are reverted; I found no measurement of k = 8 on an 8-core runner. A cross-family trail read (GPT-6.2 Sol) flagged that wording and the median-based weekly estimate; both are corrected.

Approvals

No approvals recorded for branch free-tests-runner-8-core.
Plan: exempt: audited-list

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=6 fixed=0 scope=frozen dispatches=4
Gate edits: none detected (GATE_SCAN tagged=0)

{
  "schema_version": 1,
  "pr": 4749,
  "head": "9baea905c0b1f74e9cd21c5f8224d8d1d886ac4c",
  "version": "1.103.0.0",
  "base": "main",
  "gate": {
    "workflow": {
      "pass": 112,
      "fail": 0,
      "skip": 0
    }
  },
  "calls": 52,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/ship-runner8",
  "head_tree": "d1cffd8cf5ed631b5958227801c9e3630d78e171",
  "product_patch_id": "f361594c6b630e955a003681795f89f2293c4dd7",
  "gstack_version": "1.103.0.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 4,
    "rules": "33831f8248a814fd",
    "base": "b5eb401e450bdf73059296c303cb5fc3391a060e",
    "registry": "b5eb401e450bdf73059296c303cb5fc3391a060e",
    "gate_scan": {
      "tagged": 0,
      "head": "9baea905c0b1f74e9cd21c5f8224d8d1d886ac4c"
    },
    "reasons": [
      "gate-class",
      "runtime=4"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @d1cffd8cf5ed (8 checks, current for 9baea905c0b1)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/45243354386/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/45243354386/attempts/1",
    "free-tests.yml/cso-windows-launcher: https://github.com/garrytan/gstack/actions/runs/45243354386/attempts/1"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md, CONTRIBUTING.md"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 6,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 4,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "gate_dispositions": []
}
{"head":"788d1f0bded3607cf1b7d4012ed74393d82be9e3","run":"ship-runner8","status":"started","review_loop":{"passes":1,"blocking_found":0,"deferred":0,"noted":1,"fixed":0,"scope":"frozen","rounds":1,"dispatches":{"specialist":3,"red-team":1}}}
{"head":"5b19e3e3393bfdcbe49ac4ba8ddb0418120ca24d","version":"1.103.0.0","gstack_version":"1.103.0.0","run":"/home/user/.capy/work/ship-runner8","review_loop":{"passes":1,"blocking_found":0,"deferred":0,"noted":6,"fixed":0,"scope":"frozen","rounds":1,"ledgers_read":3,"dispatches":{"specialist":3,"red-team":1}},"depth":"full"}

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

trunk-io Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 23, 2026 17:38
…gelog fragment after the branch

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit aab606e into main Nov 23, 2026
53 checks passed
@garrytan garrytan mentioned this pull request Nov 24, 2026
capy-ai Bot added a commit that referenced this pull request Nov 24, 2026
- `/ship` now tells you what to change when GitHub refuses a push for email privacy. (#4748)
- The release gate's /cso check accepts the low-confidence hypotheses /cso now reports. (#4753)
- /cso reports every security finding the code supports instead of dropping most of them. (#4739)
- /cso can search the whole repository in one call, and a daily report now lists its low-confidence hypotheses. (#4742)
- A first version's plan and try-it message now open with the owner's own words, and the build is tried the same way he will try it before he is asked. (#4759)
- A first version's public export now keeps out the owner's short quotes and his reasons to leave something out, and a phone first-use check installs a build the cloud phone can actually run. (#4772)
- Three intermittent test failures are fixed. (#4745)
- Free Tests runs its shards on 8-core runners again. (#4749)
- A land that waits on an earlier CI run now decides on what that run actually did. (#4763)
- Landing a PR no longer starts a new CI run when one for the same merged code is already running or has passed. (#4760)
- /ship no longer misses a file-mode change from main on files whose names start with `:`. (#4774)
- make-pdf keeps quotes in alt text, link titles and raw HTML attributes inside the attribute, so a Markdown file can no longer add an `onerror`, `onload` or `javascript:` link that runs in the print browser. (#4761)
- Posting a PR body that lists earlier /ship runs no longer stops for a phone number that isn't there. (#4747)
- A first version's public export now catches a short owner quote whose padding or quote marks are encoded. (#4778)
- A first version's public export now also keeps out a short owner quote written with spaces just inside its quote marks. (#4776)
- Posting a PR body that lists earlier /ship runs no longer stops for a card number that isn't there. (#4751)
- /ship no longer asks for an extra reader when you merge the base branch next to code that was already reviewed. (#4754)
- /ship no longer plans narrow re-checks after a fix. (#4741)
- /ship can't quietly gain new refusals. (#4740)
- `gstack-upgrade` no longer refuses to run after you disable skills. (#4743)
- The free test suite splits its shards from this week's recorded test times. (#4744)
- gstack now writes up a failed or shelved attempt before closing it. (#4735)

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