Skip to content

Free Tests splits the suite from freshly recorded test times (GST-3303) - #4578

Merged
capy-ai[bot] merged 2 commits into
mainfrom
ci/free-seed-refresh
Nov 20, 2026
Merged

capy-ai[bot] merged 2 commits into
mainfrom
ci/free-seed-refresh

Conversation

@garrytan

@garrytan garrytan commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Free Tests should report about 45 seconds sooner. It splits the suite into shards using a record of how long each test file takes, and that record was eleven days old and missing 67 files, so some shards got far more real work than others.
The times are now re-recorded for every file, so the shards should finish close together and the slowest one sets the result less often.
Nothing to do: every test still runs, and no check name changes.

What changed
  • scripts/free-test-durations.json is re-recorded for all 1,727 free-suite files with the documented recorder, on the same Ubicloud size the weekly recording uses. No file failed while recording.
  • The 67 files added since 11-09 used to count as 54-second files each (the planner's guess for a file it has no time for). That was about 3,560 seconds of load that doesn't exist, on a suite that really runs about 5,870 seconds.
  • Six files now run past the 60-second limit for a single file. Each is added to scripts/free-test-seed-allowlist.json with its time and a follow-up to split it, the same way the 11-09 refresh admitted its long files.
  • The runner-size trial input on manual Free Tests runs also accepts ubicloud-standard-16, for paired trials of a bigger runner. Pull request runs don't change size.
Numbers

Before, from the 215 pull request runs between 11-06 and 11-20 where all 11 shards passed: from the first shard starting to the last one finishing took 274 s at the median and 346 s at p90, and the slowest shard's test step took 220 s at the median and 262 s at p90. Inside one run, the slowest and fastest of shards 1 to 10 were 75 s apart at the median. In the latest run, each shard's four parallel groups ranged from 77 to 106 s for the fastest group up to 167 to 218 s for the slowest.

Replaying that run's per-file times through the planner: the old record gives a slowest shard of 246 s, the new one 177 s.

After, on this branch with the same runner, three runs of the same tree: first shard start to last shard end took 234, 227 and 220 s, and the slowest shard's test step took 186, 192 and 184 s. The shards finished 37 to 44 s apart. That is about 45 s off the shard phase at the median, from three runs; 22% of the earlier runs already had a slowest test step of 192 s or less, so read it as a shift of the typical run, not a guarantee for every run.

A bigger runner isn't worth it yet. One run on ubicloud-standard-16, with twice as many parallel groups per shard, brought the slowest shard to 170 s: 16 to 22 s more for twice the cores. Its slowest group was a single file, test/review-pass.test.ts, which takes about 4.4 minutes alone. Splitting that file is the next step before more cores pay off, so the default runner stays as it is.

Pre-Landing Review

No blocking issues. One review round on d490fc4 read the whole change: three specialist checks (testing, security, state machines), a red-team read, an adversarial read, a second-model review (GPT-6.1 Sol, verdict clean) and a targeted secrets read (no findings). The out-of-date runner list in the testing docs, which two readers noticed, is fixed by the documentation update below; the other notes are listed next and left for later.

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL sf-590108056e01 security finding, details recorded privately
  • INFORMATIONAL sf-6ca068bff78e security finding, details recorded privately
  • INFORMATIONAL scripts/free-test-durations.json:1 Two files sit within 0.3 s of the 60 s ceiling; next recording may flip them and need an allowlist edit
  • INFORMATIONAL scripts/free-test-seed-allowlist.json:15 New allowlist reasons name no run id; recording VM size not verifiable from the diff
  • INFORMATIONAL scripts/free-test-seed-allowlist.json:14 Older allowlist reasons quote outdated times (ship-queue-land 60 s now 67 s, a second ship test 67 s now ~80 s, review-pass 221 s now ~263 s)
  • INFORMATIONAL .github/workflows/free-durations-record.yml:211 A stale-seed issue opened by the recorder workflow closes only by hand when the seed lands another way
Exploratory QA

Surface: the runner-size check in the Free Tests plan step, run as written with sample settings. Bounded smoke check, 2 probes, both passed.

Probe What it checks Expected Result
001 ubicloud-standard-16 is accepted exit 0 pass
002 an unlisted size (ubicloud-standard-32) is still refused exit 1, error lists -2, -4, -8 or -16 pass

Limits: the step ran outside GitHub Actions, so routing a job onto the -16 runner is not exercised here. The recorded times and the allowlist are data, checked by the seed test in Free Tests.

Verification Results

No plan file, so there were no plan-specific checks.

Documentation

Status: updated. One fact in one doc was corrected and nothing is blocked.

Scope: I compared ci/free-seed-refresh with base 593d7e1 (4 files: free-tests.yml, the free-test duration seed, the seed allowlist and a changelog.d fragment). I searched every tracked doc and template for runner-size and seed-allowlist references.

File Status
docs/TESTING_INTERNALS.md Updated: the free_runner override list now includes ubicloud-standard-16
CONTRIBUTING.md Current
docs/pregate.md Current

Coverage debt: none new. The six newly allowlisted slow test files already have their follow-up (the post-11-21 slow-test pass). Diagram drift: none.

Tests
Agent notes

Tracking: GST-3303, change 2 of the CI speed plan (rebalance; a paired ubicloud-standard-16 trial follows on this branch). The weekly seed PR #4249 has been open and failing its seed check since 11-09, which is why the record went stale.

Plan: exempt: audited-list

Local: test/free-seed-ratchet plus the free-tests workflow tests (113 pass), actionlint 1.7.11 clean. Recording log on the lane machine at ~/.capy/work/c2/record.log.

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=6 fixed=0 scope=frozen ledgers_read=3 dispatches=4

Gate edits: none detected (2 listed, 2 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

Approvals

No approvals recorded for branch ci/free-seed-refresh.
Plan: exempt: audited-list
Plan check: exempt audited-list

Open in Capy

{
  "schema_version": 1,
  "pr": 4578,
  "head": "21e3a6c6f096762a893079a6c1d8e9f2904cbcf7",
  "version": "1.102.1.0",
  "base": "main",
  "gate": {
    "tests": {
      "pass": 1720,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "tests",
      "run": 44826908640,
      "attempt": 1,
      "tree": "bf8ce24f2c29c76c3e7da14e7bac37342c187407"
    }
  ],
  "calls": 17,
  "session_kind": "unattended",
  "run": "ship-4578",
  "head_tree": "bf8ce24f2c29c76c3e7da14e7bac37342c187407",
  "product_patch_id": "74d4277c30ecb10c7937fe03a9af9cfc78f4ebbe",
  "gstack_version": "1.102.1.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 3339,
    "rules": "85b3923b1a978e41",
    "base": "ad65f62edff0740449b70cbab6f519e40316b10e",
    "registry": "ad65f62edff0740449b70cbab6f519e40316b10e",
    "gate_scan": {
      "tagged": 0,
      "head": "21e3a6c6f096762a893079a6c1d8e9f2904cbcf7"
    },
    "reasons": [
      "gate-class",
      "risk:secret",
      "runtime=3339"
    ],
    "risk": [
      "secret"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @bf8ce24f2c29 (8 checks, current for 21e3a6c6f096)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/44826908640/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44826908640/attempts/1",
    "free-tests.yml/cso-windows-launcher: https://github.com/garrytan/gstack/actions/runs/44826908640/attempts/1"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, CONTRIBUTING.md, CLAUDE.md, AGENTS.md against base 593d7e1 (runner-size and seed-allowlist references)"
  },
  "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
    }
  },
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "secret"
    ],
    "rules": "b3f6f8b4843c0c30",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "74d4277c30ecb10c7937fe03a9af9cfc78f4ebbe",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

The seed dated from 11-09 and lacked 67 files, each packed at the 54 s
99th-percentile guess, so shards and sub-shards were balanced against about
an hour of work that doesn't exist. Re-recorded on ubicloud-standard-8 with
bun run test:ubicloud --record-durations (1,727 files, none failed); six
files newly over the 60 s ceiling are admitted with a todo, as the 11-09
refresh did. The runner-sizing dispatch input also accepts
ubicloud-standard-16 for paired experiments.

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

trunk-io Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

…ial option

Step 14.5 docs audit docs-4578-a1: the free_runner dispatch input already accepts -16 in this PR.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 87a473e into main Nov 20, 2026
78 checks passed
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>
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