Repository navigation
v1.91.370.0 ci(free-tests): run the free suite on ubicloud-standard-2 from one runner/shard constant - #3617
Merged
Conversation
…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>
|
😎 This pull request was merged. |
…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>
Merged
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
The free suite moves from
ubicloud-standard-8toubicloud-standard-2at 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:runs-on: ubicloud-standard-8and a shard count set separately per eventFREE_SUITE_RUNNER: ubicloud-standard-2,FREE_SUITE_SHARDS: '20'), resolved byfree-planinto outputs thatfree-suitereads, so pull_request, push and dispatch runs all use the same sizeworkflow_dispatchinputsfree_runner(standard-2/4/8 only) andfree_shards(1–40), validated before use, with unexpected values refusedRESOURCES: peak_used_mib=… min_free_disk_mib=…docs/TESTING_INTERNALS.mdnames the constant, the sizing overrides and the RESOURCES line; changelog fragmentchangelog.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.
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_RUNNERback toubicloud-standard-4if 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. TheRESOURCESlines 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-suitereads the new runner output.free-planstill runs onubuntu-24.04, andquick-bun-defaultand the seed recorder stay on standard-8. Iffree-planrefuses an override or fails,free-suiteis skipped and thefree-testsaggregate requiresneeds.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.tsruns the realfree-planstep 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
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, whichgstack-ship-queue landturns into a versioned entry at merge.Test Coverage
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=7counts 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).
test/free-durations-record-workflow.test.ts:34The regex accepts any ubicloud-standard-N for the recorder andFREE_SUITE_RUNNER; pinningubicloud-standard-8andubicloud-standard-2would enforce the decision (testing specialist + adversarial)..github/workflows/free-durations-record.yml:5The header comment still says the seed is recorded on the same standard-8 runner as the free-suite shards; TESTING_INTERNALS now says otherwise..github/workflows/free-tests.yml:90A 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..github/workflows/free-tests.yml:85The 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..github/workflows/free-tests.yml:490free's used column excludes /dev/shm and sampling starts after the build steps, so peak_used_mib can undercount pressure..github/workflows/free-tests.yml:353The 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..github/workflows/free-tests.yml:356max-parallel: 20stays while free_shards allows 40, so larger sizing experiments queue in waves.Exploratory QA
Surface: functional (the
free-planstep script extracted from the workflow and run with a stubbedbun), 5 probes. Verdict: pass for the intended cases.--shards 20.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
FREE_SUITE_RUNNER(ubicloud-standard-2) andFREE_SUITE_SHARDS('20'), whichfree-planresolves for every event. It also covers theworkflow_dispatchoverridesfree_runner(standard-2/-4/-8) andfree_shards(1–40), which are for sizing experiments only and never a PR or train result, and the per-shardRESOURCES: peak_used_mib=… min_free_disk_mib=… samples=…line. The duration-seed bullet now says the recorder stays onubicloud-standard-8while the shards run onFREE_SUITE_RUNNER.[Unreleased]under the fragments policy (#3654); text unchanged,PROSE_LINT: ok.Coverage debt:
FREE_SUITE_RUNNER/FREE_SUITE_SHARDSand the dispatch overrides now have reference coverage in TESTING_INTERNALS.md. There is no how-to for running a sizing experiment, such as agh 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 failbun run typecheck: exit 0bun run typecheck:test: 814 known diagnostics, none newgstack-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[Unreleased]); free-tests.yml merges clean. The train merges CHANGELOG by section; main was not merged.🤖 Generated with Claude Code