Repository navigation
Conversation
… default), per-file JUnit counts (GSTA-203 PR 2) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ister shard-jobs.ts in ship-measure touchfiles Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…icter --ci-verify records, unique count paths, no serial launch without wall Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…s FREE_ONLY entry is non-behavioral Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…text names the wall the parallel phase left Adversarial pass 2 (GSTA-203 PR 2): a plain relative path now matches a planned file exactly, and an absolute or ../-prefixed path matches only when its prefix is the child's root, so an unplanned browse/test/x.test.ts is never credited to test/x.test.ts. The serial sub-shard's FREE_SUBSHARD_TIMEOUT text says how much of the shard wall the parallel phase left it. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ds (docs audit docs-203-1) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…obs and windows_jobs dispatch inputs (k=1 defaults) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…STA-203 PR 3 A/B winner); Windows stays at k=1 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… baseline and the unchanged 80 vCPUs) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t docs-pr3-2) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
…rant, GSTA-203 PR 3) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # .github/workflows/free-tests.yml # docs/TESTING_INTERNALS.md # scripts/harness-version.json # scripts/lib/shard-jobs.ts # scripts/test-free-shards.ts # test/shard-jobs.test.ts # test/windows-native-workflows.test.ts
…udit after the main merge) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Contributor
|
Frozen in wave |
4 of 5 tasks
capy-ai Bot
added a commit
that referenced
this pull request
Nov 2, 2026
* test-free-shards: --ci-run --jobs k sub-shards inside one CI job (k=1 default), per-file JUnit counts (GSTA-203 PR 2) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(ci): ship ffmpeg in the eval image so the marathon design-motion case can run (#3687) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * shard-jobs: serial sub-shard gets what is left of the shard wall; register shard-jobs.ts in ship-measure touchfiles Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * shard-jobs: validate every sub-shard summary, bounded JUnit read, stricter --ci-verify records, unique count paths, no serial launch without wall Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * shard-jobs tests: non-hex plan id fixture; harness-version: shard-jobs FREE_ONLY entry is non-behavioral Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(test:free): exact root-bound JUnit path matching; serial timeout text names the wall the parallel phase left Adversarial pass 2 (GSTA-203 PR 2): a plain relative path now matches a planned file exactly, and an absolute or ../-prefixed path matches only when its prefix is the child's root, so an unplanned browse/test/x.test.ts is never credited to test/x.test.ts. The serial sub-shard's FREE_SUBSHARD_TIMEOUT text says how much of the shard wall the parallel phase left it. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs(testing): real-home tripwire covers --jobs k>1 parallel sub-shards (docs audit docs-203-1) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * ci(free): per-shard sub-shard k in the CI plan (--shard-jobs), free_jobs and windows_jobs dispatch inputs (k=1 defaults) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * ci(free-tests): 10 x ubicloud-standard-8 at 4 sub-shards per shard (GSTA-203 PR 3 A/B winner); Windows stays at k=1 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: pre-landing review fixes (changelog names main's 20 x standard-4 baseline and the unchanged 80 vCPUs) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs(testing): sub-shard default is the plan's per-shard k (docs audit docs-pr3-2) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * ci(free): run the #3680/#3679 BSD-userland regression on macos-named-regressions Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * changelog: macos-named-regressions runs the BSD-userland ubi-runner regression (#3680) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: Windows k=1 applies to the nightly suite since #3806 (docs re-audit after the main merge) 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>
Contributor
4 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 Linux free suite moves from main's 20 ×
ubicloud-standard-4machines running one file at a time to 10 ×ubicloud-standard-8machines, each running 4 sandboxed sub-shards side by side. Both use 80 vCPUs. Windows stays at one child per shard.Text version
Why
Garry: "First apply these principles to all our tests" (GSTA-203, from "How I made our CI 20x faster"). PR 2 (#3730) taught one CI job to run k sub-shards in parallel; this PR measures where that pays off and turns it on. The Linux free suite's slowest shard drops by about 45% and each run costs about 20% less on the same vCPU count.
Blast radius
This changes
.github/workflows/free-tests.yml(runner label, shard count, aFREE_SUITE_JOBSconstant and afree_jobsdispatch input) andwindows-free-tests.yml(awindows_jobsdispatch input, default 1, so Windows behavior is unchanged). The workflow edits add no network calls, secrets, permissions or dependencies; they only change machine size, shard count and k. A k=1 plan keeps the same id as before, the exclusive TREE_MUTATING shard is always k=1, and--ci-verifyrejects a shard that ran at a different k than planned (tests intest/shard-jobs.test.tsandtest/free-tests-workflow-wiring.test.ts; the same code ran the 15 CI runs listed below).Approvals
Source: gstack-approvals record for gsta203-pr3-subshards (display only; not an approval citation).
GSTA-149 owns
FREE_SUITE_RUNNERandFREE_SUITE_SHARDSand signed off this change as written, with one condition. For 7 days after this merges, watch main's Free Tests flaky-retry rate. If a new failure appears that the sub-shards share (a file lock, a port or a temp dir), revert to 20 ×ubicloud-standard-4at k=1, which is a one-constant change.Summary
The free CI suite spent most of its wall time waiting on a few long shards, and small machines left cores idle. With PR 2's sub-shards, a bigger machine runs 4 test files at once, each still sandboxed. The pre-registered A/B (plan item 3, three runs per arm at one commit, 12407a3) picked the cheapest arm that passed every bar: Linux Free Tests now uses 10 × standard-8 at k=4.
Windows stays at k=1. Since #3806, that applies to the nightly Windows suite, not to a PR gate; the required Windows PR check is
windows-smoke. W2 (k=2) was faster, but two of its three runs needed the flaky retry for new Windows file-lock failures (browse/test/stealth-webdriver.test.tsEBUSY in run 41249397760;browse/test/cookie-import-native-job.test.ts"Native fixture root cleanup failed" in run 41250570447), which fails the "zero new failures" bar. PR 1 (waiting on #3585) may retune the Windows shard count later; thewindows_jobsinput stays for that experiment.A/B evidence (all at 12407a3, every run concluded success)
A met every pre-registered bar. It had zero new failures, and its slowest-shard median (233 s) is below the control's minimum (389 s). Its weekly cost at premium prices is below the control's. Over the 1330 Free Tests runs from 2026-10-24T23:15Z to 2026-10-31T23:15Z, C would cost $521, A $419 and B $420. Per-file test counts are identical (1452 files, 32635 tests in every Linux run). Per-file expect() counts vary from run to run inside the control itself (
qa-only-cleanup134/136,test-free-shards-settlement-lifecycle188/189,cso-scanner-cli50/51). A's only difference (qa-only-cleanup136, run 41250567176) is inside the control's own spread; B'sqa-only-cleanup130 (run 41250562387) is not.Targets (reported, not gating): Free Tests p50 ≤ 340 s is not met by run wall: A's median run wall is 493 s while its slowest shard is 233 s, so setup and queueing are the rest. PR path p50 ≤ 9 min was not measured in this PR.
Plan: GSTA-203 plan v2, PR 3 (GStack Minder drive,
handoffs/ci-20x/GSTA-203-plan-v2.md).Test Coverage
All new code paths have test coverage: per-shard k in the plan, the TREE_MUTATING k=1 rule, the unchanged k=1 plan id,
--ci-rundefaulting to the plan's k with--jobsoverriding it,--ci-verify's k mismatch, and the workflow wiring forFREE_SUITE_JOBS,free_jobs,WINDOWS_FREE_JOBSandwindows_jobs.Tests ran: typecheck count unavailable
Tests ran: focused 148
Pre-Landing Review
No blocking issue needed a code fix; one changelog wording item was auto-fixed.
REVIEW_LOOP: passes=1 blocking_found=1 deferred=1 noted=4 fixed=1 scope=frozen fix_checks=2 dispatches=2
Gate edits: 16 listed, 11 read, 0 findings — 0 kept, 0 restored, 0 open
Outside review: clean (openai/gpt-6.1-sol, cross-family).
After the main merge,
gstack-ship-receipt carryrefused (RECEIPT_CARRY_PRODUCT_CHANGED: the base moved from PR 2's branch to main). Under R51 the carry took the light route: one scoped fix-check of the conflict resolution (no findings) and a docs re-audit that named the nightly Windows lane in TESTING_INTERNALS and the changelog. No new review loop.Deferred findings
.github/workflows/free-tests.yml:47(adversarial, labelled CRITICAL): the conflict with main's v1.92.1.0 ci(free-tests): run the free suite on ubicloud-standard-4 (week-1 revert for #3617) #3710 runner block. Resolved by the one granted main merge (dd9834d, merge commit f02e95e): this branch keeps its runner constants and takes v1.92.51.0 ci: windows-smoke is the required Windows check; the six-shard suite runs nightly (GSTA-203 PR 1) #3806's nightly andwindows-smokestructure. A scoped fix-check of that resolution found nothing.Review notes
Below the blocking floor; recorded here and not fixed in this PR.
.github/workflows/free-tests.yml:382the runner's own wall for a 10-shard plan (3326 s) sits behind the job'stimeout-minutes: 20, so a hung parallel sub-shard is killed by GitHub and loses the FREE_SUBSHARD_TIMEOUT diagnostics. It still fails loudly. This already existed at base (1663 s wall at 20 shards).scripts/lib/free-ci-health.ts:1shardOverrunscompares a k>1 shard's wall against its serial predictedMs × 1.5, so the overrun warning rarely fires at k=4.docs/TESTING_INTERNALS.md:1571stale sentence about--jobs; fixed in this PR by the docs audit..github/workflows/free-tests.yml:530four sub-shards share one xvfb display and the host's ports; watch the flake ledger after landing.Exploratory QA
Not run: no user-facing surface. The 15 A/B CI runs above are the behavioral check.
Design Review
No frontend files changed — design review skipped.
Eval Results
No prompt-related files changed — evals skipped.
Plan Completion
PR 3 of GSTA-203 plan v2, built as planned: A/B at one commit with 3 runs per arm on Linux (C, A, B) and Windows (k=1, k=2); the cheapest passing arm adopted on Linux; Windows left at k=1 because its k=2 arm did not pass.
Issues
Refs #3806
TODOS
No TODO items completed in this PR.
Documentation
Status: updated. One stale sentence about the sub-shard default was corrected in docs/TESTING_INTERNALS.md; no blockers.
Scope: base 84f93c9 to d80db6f on gsta203-pr3-subshards (3 commits, 9 files; nothing staged, unstaged or untracked). The audit covered the committed workflow, runner and doc changes plus a search of every tracked and new doc and template for free-suite sizing,
--jobsand--shard-jobsclaims.Documentation coverage:
Debt: the
--ci-verifyper-shard k rejection has reference coverage only. Diagram drift: none.Test plan
The focused lane failed once at this tree in
test-free-shards: exit 0 WITH the terminal summary passesand passed on its one rerun. Cause: PR 2's real-home check insiderunFreeShardsees /ship's own lane log growing under~/.gstack(reproduced in 1 of 3 runs with the log under~/.gstack, 0 of 3 with it elsewhere). It is a test-isolation issue in the base PR, not this diff; CI does not log there.