Skip to content

v1.91.370.0 ci(free-tests): run the free suite on ubicloud-standard-2 from one runner/shard constant - #3617

Merged
capy-ai[bot] merged 7 commits into
mainfrom
capy/gsta149-free-runner
Oct 31, 2026
Merged

capy-ai[bot] merged 7 commits into
mainfrom
capy/gsta149-free-runner

Conversation

@garrytan

@garrytan garrytan commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3617,
  "head": "18f702ab3e919f3203d1548491c97924da71ef76",
  "version": "1.91.319.0",
  "base": "main",
  "gate": {
    "touched-tests": {
      "pass": 23,
      "fail": 0,
      "skip": 0
    },
    "remote-pregate": {
      "pass": 10122,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "fdd72a979f3a413468f210e2db044968a43a721c",
  "product_patch_id": "c829e2f468302f8f75eb89513e454ccf597e278b",
  "gstack_version": "1.91.319.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 57,
    "rules": "150435b0a543019a",
    "base": "a305302963372231ce8db901b9515c30efa6dc1c",
    "registry": "a305302963372231ce8db901b9515c30efa6dc1c",
    "gate_scan": {
      "tagged": 0,
      "head": "18f702ab3e919f3203d1548491c97924da71ef76"
    },
    "reasons": [
      "gate-class",
      "runtime=57>50"
    ]
  },
  "pregate": "requires-remote cleared @fdd72a979f3a (1 checks, current for 18f702ab3e91)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/41201637369",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41201637369",
    "free-tests.yml/cso-windows-launcher: https://github.com/garrytan/gstack/actions/runs/41201637369",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41201637362",
    "pregate.json/remote_gate: remote-gate tree=fdd72a979f3a tests=717"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/ (TESTING_INTERNALS free-suite runner constant, dispatch overrides, RESOURCES line, seed recorder), README.md, CONTRIBUTING.md, CLAUDE.md, AGENTS.md, CHANGELOG.md"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 7,
    "fixed": 0,
    "scope": "frozen",
    "dispatches": {
      "specialist": 6,
      "red-team": 1
    }
  },
  "carry": {
    "from": "f9b94c42c9f7ca76bb1b5a3f7cf8d43bf3fdff9e",
    "reason": "release metadata",
    "product_patch_id": "c829e2f468302f8f75eb89513e454ccf597e278b",
    "changed_paths": [
      "metadata:CHANGELOG.md",
      "metadata:changelog.d/capy-gsta149-free-runner.md"
    ],
    "merge_commits": 0,
    "range_diff": "1:  93adf1908 = 1:  93adf1908 ci(free-tests): one runner and shard constant for every event, dispatch overrides for sizing, per-shard memory and disk peak\n2:  ed7ba04ca = 2:  ed7ba04ca test(free-tests): type the refused dispatch overrides\n3:  4619ee3cc = 3:  4619ee3cc ci(free-tests): run the free suite on ubicloud-standard-2 at 20 shards\n4:  72d5b4e7a = 4:  72d5b4e7a docs(testing): the free-suite runner constant, sizing overrides and RESOURCES line\n5:  f9b94c42c = 5:  f9b94c42c chore: CHANGELOG [Unreleased] entry for the standard-2 free suite\n-:  --------- > 6:  18f702ab3 chore: move the CHANGELOG entry to changelog.d/capy-gsta149-free-runner.md (fragments policy since #3654)",
    "covers": [
      "pre-landing review",
      "adversarial review",
      "gate integrity",
      "documentation audit"
    ],
    "reruns": [
      "CI at head (gstack-ship-queue ready requires it); test and helper code changed since the reviewed head runs there unreviewed"
    ],
    "ancestry": "linear",
    "trees": [
      "7f957b6b81ee3662dd833a529c71a9ae69e28869"
    ]
  }
}

What changed

The free suite moves from ubicloud-standard-8 to ubicloud-standard-2 at the same 20 shards. Each shard runs its files one at a time and waits on disk and processes, not CPU, so a quarter of the vCPUs costs a quarter as much per minute and adds only seconds per shard. This PR changes CI wiring only (no UI), so the before/after is the workflow behavior:

Before After
Runner and shard count runs-on: ubicloud-standard-8 and a shard count set separately per event One workflow-level constant (FREE_SUITE_RUNNER: ubicloud-standard-2, FREE_SUITE_SHARDS: '20'), resolved by free-plan into outputs that free-suite reads, so pull_request, push and dispatch runs all use the same size
Sizing experiments Edit the workflow workflow_dispatch inputs free_runner (standard-2/4/8 only) and free_shards (1–40), validated before use, with unexpected values refused
Resource visibility None Each shard samples memory and disk and prints RESOURCES: peak_used_mib=… min_free_disk_mib=…
Seed recorder standard-8 unchanged (standard-8)
Docs Free-suite paragraph describes shards only docs/TESTING_INTERNALS.md names the constant, the sizing overrides and the RESOURCES line; changelog fragment changelog.d/capy-gsta149-free-runner.md (the version is assigned at merge)

Why standard-2 (sizing evidence, not CI evidence for this head). Three paired rounds at one SHA, with the same 20-shard plan on each runner. The A/B dispatch runs lack this branch's typecheck fix and are not this PR's checks.

Round Slowest shard suite, standard-8 Slowest shard suite, standard-2 Paired per-shard delta (median) standard-2 peak memory standard-2 min free disk
1 226 s 222 s +7 s 2,385 MiB 15,177 MiB
2 204 s 191 s +3 s 2,444 MiB 15,606 MiB
3 213 s 266 s +8 s 2,430 MiB 15,181 MiB

Runner-minutes were about equal (464 on standard-8 vs 475 on standard-2 across the three rounds), so the free suite's runner cost falls by roughly three quarters. The per-shard deltas sit well inside the paired spread (−90 s to +65 s), peak memory stays under 2.5 GiB, and no shard came near the disk floor. The only failure on either runner was the image-20261026 Chromium launch that #3616 fixes. A 16-shard standard-2 arm was slower beyond that spread (slowest shard 303–351 s), so the shard count stays at 20.

Revert rule (from the approved plan). Set FREE_SUITE_RUNNER back to ubicloud-standard-4 if a shard shows OOM, ENOSPC or a Chromium launch failure not explained by #3616, or if the slowest-shard p50 in the first week exceeds standard-8's max above. The RESOURCES lines are there to make that check readable from job logs.

Why

Garry asked to "order priority by what saves money fastest", and the free suite's 20 shards on standard-8 were the largest Ubicloud line in the GSTA-149 audit. Moving them to standard-2 cuts that runner cost by about three quarters while the slowest shard stays inside standard-8's observed range. A later resize is now a one-line constant change, measured by a dispatch with two inputs instead of a workflow edit.

Blast radius

Only free-suite reads the new runner output. free-plan still runs on ubuntu-24.04, and quick-bun-default and the seed recorder stay on standard-8. If free-plan refuses an override or fails, free-suite is skipped and the free-tests aggregate requires needs.free-suite.result == success (free-tests.yml:578), so a bad input turns the check red instead of running on a wrong runner. Evidence rung: script ran. test/free-tests-workflow-wiring.test.ts runs the real free-plan step for the default, a valid override and five refusals, three reviewers read the wiring at file:line, and the remote pregate ran the free tier at this head (10,122 tests, 0 failed).

Approvals

Date Asked Exact words Outcome Covers Still pending
2026-10-29 Approve the plan "GSTA-149 plan: CI workflows and runners, cost and latency without losing coverage (rev 2)" (autoplan run autoplan-20261029041322, 2 decisions) “Do it. Order priority by what saves money fastest” (Garry (via GStack Minder), relayed by agent:jam_01M62S3FBDQBZEG2TNRT5CHWCY) approved the reviewed plan (sha256 a32d8d5793f9), every recommendation taken none
2026-10-29 Merge #3617 when green “yes merge when green” (Garry, 2026-10-16 (GStack Minder crew rule 6)) standing approval every crew PR, merged by GStack Minder through a train none
2026-10-29 Remote pregate spend on Ubicloud for #3617 (cap $2) “it's fine run as many $93 paid gates as you want who cares” (Garry, 2026-10-15 (GStack Minder crew rule 5)) standing approval gates and focused paid runs, lane cap $10 per PR none

Source: gstack-approvals record for capy/gsta149-free-runner (display only; not an approval citation).

Summary

The free suite now runs on the cheapest Ubicloud size that keeps its shard times, from one constant every event reads. Sizing experiments are a validated dispatch, and every shard reports its peak memory and minimum free disk so the revert rule can be checked from job logs. The branch also adds the TESTING_INTERNALS note and the changelog fragment changelog.d/capy-gsta149-free-runner.md, which gstack-ship-queue land turns into a versioned entry at merge.

Test Coverage

free-tests.yml free-plan / free-suite
├─ no override → FREE_SUITE_RUNNER + FREE_SUITE_SHARDS ── [★★★ free-tests-workflow-wiring: real step, runner output + --shards 20]
├─ valid override (standard-4, 16) → honored ── [★★★ same test]
├─ invalid runner / shards (5 cases) → refused before planning ── [★★★ same test: status≠0, no output, bun never called]
├─ free-suite runs-on ← free-plan output ── [★★ wiring pin]
├─ sampler before suite, report always() ── [★★ step-order pin]
└─ recorder stays a ubicloud-standard runner ── [★ free-durations-record-workflow: regex pin (see Review notes)]
COVERAGE: 6/6 paths, weak 1, gaps 0

Tests: 2 new (the wiring and sampler cases in the original commits), 1 existing test edited.
Tests ran: touched-tests 23
Tests ran: typecheck count unavailable
Tests ran: typecheck-test count unavailable (814 known diagnostics, none new)
Tests ran: actionlint count unavailable
Tests ran: remote pregate (Ubicloud, whole selected free tier) 10122

Pre-Landing Review

No issues at the blocking floor. One batched specialist pass (testing, maintainability, security, performance, simplification, state-machines and red-team checklists in one Claude Opus 5.5 subagent): 4 informational. Native adversarial (Claude Opus 5.5): 6 informational, none at the floor ("ship because nothing reaches the blocking floor; the most exploitable finding is the overflow past the free_shards bound, and only a dispatcher with write access can trigger it").
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=7 fixed=0 scope=frozen dispatches=7
Gate edits: 3 listed, 3 read, 0 findings (patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none). The recorder-test hunk (test/free-durations-record-workflow.test.ts) drops the recorder-equals-shard-runner equality; all three reviewers judged it justified by the plan's decision to keep the recorder on standard-8, with a pin-both-sizes note below.
Outside review (cross-family, OpenAI GPT-6.1 Sol via a Capy subagent; Codex CLI not installed): completed, NO FINDINGS.
dispatches=7 counts checklists; three reviewer subagents ran (crew rule 30a).

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR (crew rule 30a: informational findings go in the PR body, never another pass).

  • INFORMATIONAL test/free-durations-record-workflow.test.ts:34 The regex accepts any ubicloud-standard-N for the recorder and FREE_SUITE_RUNNER; pinning ubicloud-standard-8 and ubicloud-standard-2 would enforce the decision (testing specialist + adversarial).
  • INFORMATIONAL .github/workflows/free-durations-record.yml:5 The header comment still says the seed is recorded on the same standard-8 runner as the free-suite shards; TESTING_INTERNALS now says otherwise.
  • INFORMATIONAL .github/workflows/free-tests.yml:90 A free_shards value of 20+ digits overflows [ -lt/-gt ], the test errors and the 1–40 bound is skipped (reproduced); only a dispatcher with write access can send it, and the plan step then fails. Fix: reject ???* in the case pattern.
  • INFORMATIONAL .github/workflows/free-tests.yml:85 The refused free_runner value is echoed; a newline in an API dispatch could emit workflow commands. The job is secretless and dispatch needs write access.
  • INFORMATIONAL .github/workflows/free-tests.yml:490 free's used column excludes /dev/shm and sampling starts after the build steps, so peak_used_mib can undercount pressure.
  • INFORMATIONAL .github/workflows/free-tests.yml:353 The 20-minute job timeout headroom on standard-2 rests on three A/B rounds plus PR runs; the first-week watch in the revert rule covers it.
  • INFORMATIONAL .github/workflows/free-tests.yml:356 max-parallel: 20 stays while free_shards allows 40, so larger sizing experiments queue in waves.

Exploratory QA

Surface: functional (the free-plan step script extracted from the workflow and run with a stubbed bun), 5 probes. Verdict: pass for the intended cases.

  • Default (no inputs): runner=ubicloud-standard-2, --shards 20.
  • Override standard-4/16: honored. Override standard-8/40: honored.
  • free_shards=99999999999999999999: accepted (the overflow note above).
  • RESOURCES awk on a two-sample log: prints peak and minimum correctly.
    Limits: the sampler's behavior on the runner is read from CI logs, not probed locally.

Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped. No case, selection, trial or tier change; the train gate covers paid work.

Greptile Review

No Greptile comments.

Plan Completion

Plan: GSTA-149 autoplan run autoplan-20261029041322 (APPROVED; Garry 2026-10-29: "Do it. Order priority by what saves money fastest"), PR 2 item. DONE: dispatch inputs and sampler; A/B on one SHA (control standard-8/20, standard-2/20, standard-2/16); pre-registered acceptance met (median paired delta +3..+8 s, under +10 %; standard-2 slowest-shard median 222 s inside control's 204–226 s; peak memory under 2.5 GiB against the 6 GB bar; no ENOSPC; the only Chromium failure is #3616's). CHANGED: the workflow-level constant replaces dispatch-input defaults (build condition H1, so pull_request and push runs read the same size). Deferred by design: the one-week post-merge watch under the revert rule.

Verification Results

Plan obligations at this head: the wiring test, the override refusals, the sampler order and actionlint all passed, and none failed or was blocked. The post-merge watch is not run yet, by design.

TODOS

No TODO items completed in this PR.

Documentation

Status: updated — one factual note added to docs/TESTING_INTERNALS.md for the free-suite runner constant, the sizing overrides and the RESOURCES line.

Scope: base ad8e12d to head 4619ee3 (3 commits: .github/workflows/free-tests.yml and two workflow tests) plus the unstaged CHANGELOG.md entry. Discovery covered tracked and new docs and templates. Only TESTING_INTERNALS.md described the free-suite CI runner. Banned terms: none.

Documentation health

File Status
docs/TESTING_INTERNALS.md Updated: the Free suite paragraph now names FREE_SUITE_RUNNER (ubicloud-standard-2) and FREE_SUITE_SHARDS ('20'), which free-plan resolves for every event. It also covers the workflow_dispatch overrides free_runner (standard-2/-4/-8) and free_shards (1–40), which are for sizing experiments only and never a PR or train result, and the per-shard RESOURCES: peak_used_mib=… min_free_disk_mib=… samples=… line. The duration-seed bullet now says the recorder stays on ubicloud-standard-8 while the shards run on FREE_SUITE_RUNNER.
changelog.d/capy-gsta149-free-runner.md Current: the entry moved here from CHANGELOG.md [Unreleased] under the fragments policy (#3654); text unchanged, PROSE_LINT: ok.
CLAUDE.md, CONTRIBUTING.md, docs/ship-policy.md Current: no contradiction with the change.

Coverage debt: FREE_SUITE_RUNNER/FREE_SUITE_SHARDS and the dispatch overrides now have reference coverage in TESTING_INTERNALS.md. There is no how-to for running a sizing experiment, such as a gh workflow run free-tests.yml -f free_runner=… -f free_shards=… row in CONTRIBUTING's command table. That is a common gap, left for a follow-up. Diagram drift: none; no diagrams reference the free-suite runner.

Test plan

  • bun test test/free-tests-workflow-wiring.test.ts test/free-durations-record-workflow.test.ts test/testing-internals-anchors.test.ts: 23 pass, 0 fail
  • bun run typecheck: exit 0
  • bun run typecheck:test: 814 known diagnostics, none new
  • actionlint 1.7.11 (pinned digest): exit 0
  • gstack-pregate --stage preflight: pass (regen, secrets, strays, literals, timing, guards)
  • gstack-pregate --stage tests --remote --spend-cap 2: 10,122 tests, 0 failed on tree 7f957b6b81ee, $0.06
  • CI at f9b94c4 (dispatched: the CHANGELOG-only conflict with main leaves GitHub no merge ref, so no pull_request run): Free Tests run 40928929135 success, all 21 free-suite shards on standard-2 (image 20261021.1.0; slowest job 570 s wall; peak_used_mib max 2311, min_free_disk_mib min 15176); Windows Free Tests run 40928936073 success. Both cleared the pregate requires-remote lanes.
  • /ship at 18f702a (2026-10-31, gstack 1.91.365.0): receipt carried from f9b94c4 (release metadata only, product patch-id c829e2f4 unchanged; no new review loop, crew rule 30b). Remote pregate: 717 tests, 0 failed on tree fdd72a979f3a, $0.04; requires-remote lanes cleared from Free Tests run 41201637369 and Windows Free Tests run 41201637362, both success at 18f702a (pull_request). Local: touched tests (wiring, recorder and testing-internals-anchors) 23 pass, 0 fail; typecheck exit 0; typecheck:test 814 known, none new; actionlint 1.7.11 exit 0.
  • Rule 25 at 18f702a: scratch trial merge with origin/main a305302 is clean (CHANGELOG no longer conflicts now that the entry is a fragment); main was not merged.
  • Rule 25 (earlier, at f9b94c4): trial merges of f9b94c4 with origin/main 319ef50 and with v1.91.321.0 ci(free-tests): grant user namespaces to the bundled Chromium on runner image 20261026 #3616 cbc09f6 conflict on CHANGELOG.md only (both add [Unreleased]); free-tests.yml merges clean. The train merges CHANGELOG by section; main was not merged.

🤖 Generated with Claude Code

Open in Capy

garrytan and others added 3 commits October 29, 2026 16:02
…ch overrides for sizing, per-shard memory and disk peak

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

trunk-io Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 4 commits October 29, 2026 18:12
…ESOURCES line

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>
…er.md (fragments policy since #3654)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title ci(free-tests): run the free suite on ubicloud-standard-2 from one runner/shard constant v1.91.370.0 ci(free-tests): run the free suite on ubicloud-standard-2 from one runner/shard constant Oct 31, 2026
@capy-ai
capy-ai Bot merged commit cae783e into main Oct 31, 2026
62 checks passed
capy-ai Bot added a commit that referenced this pull request Oct 31, 2026
…ert rule for #3617) (#3710)

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