Skip to content

Windows Setup E2E runs its long cases on parallel runners (GST-3303) - #4575

Merged
capy-ai[bot] merged 3 commits into
mainfrom
ci/windows-setup-e2e-parallel
Nov 20, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
ci/windows-setup-e2e-parallel

Conversation

@garrytan

@garrytan garrytan commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Pull requests that touch install files get their Windows Setup E2E result about 3 minutes sooner: its long cases now run on parallel Windows runners instead of one after another.
This goes toward PR feedback in minutes: Windows Setup E2E was the last check to finish on 77 of the 234 pull request heads it ran on.
Nothing to do: every case still runs on every in-scope pull request, and no required check changes.

What changed
Job Cases Before
windows-setup ./setup, setup.ps1, bun run build and the rest of the install checks also ran the false-positive recovery and both forced-CSO failures
windows-setup-recovery (new) the false-positive recovery (#3088, #3100) in windows-setup
windows-setup-cso (new) forced CSO failure is fatal under strict build; forced publish failure still completes setup (#3071) in windows-setup
held-install-journey clean and already-unmerged installs also ran dirty, trial, go-back and later-release
held-install-trial (new) dirty-conflicting recovery, then trial and go-back in held-install-journey
held-install-later-release (new) dirty-conflicting recovery, then the later release in held-install-journey

The held-install fixture that the three held jobs share moved out of the workflow into scripts/windows-held-install-fixture.sh, unchanged apart from a header comment and the shell settings the repository's script guards require, and that file joins the install paths list. Each job's closing step checks its own case list. The trial and later-release jobs each repeat the dirty-conflicting recovery, because both start from the install it leaves. The testing docs' table of observed CI jobs now lists all six jobs.

Why

Windows Setup E2E finished last on 77 of the 234 pull request heads it ran on, because each of its two jobs ran every case one after another. With the long cases on their own runners, an install change waits for the slowest single case chain instead of the whole list.

Blast radius

The change touches only the Windows Setup E2E workflow, the fixture script it runs, three tests that pin the workflow's job list and one docs table. None of the six jobs is a required check, so a red or skipped job cannot hold up a merge, and all six passed at this head in run 44814828573.

Numbers

Before, from the last two weeks of pull request runs: held-install-journey ran 458 s at the median (525 s p95) and windows-setup 368 s (417 s p95). The slowest steps were Install with ./setup 170 s, the dirty step 145 s, clean plus unmerged 123 s, trial and go-back 102 s, later release 87 s, false-positive recovery 84 s and the CSO publish failure 38 s. The expected wall after the split is about 4.5 to 5 minutes.

Documentation

Status: updated. One factual correction in the documentation of Trunk's observed CI jobs.

Scope: branch ci/windows-setup-e2e-parallel compared with base 6a64c49 (head bce0192): the workflow .github/workflows/windows-setup-e2e.yml (split into parallel jobs), the new fixture script scripts/windows-held-install-fixture.sh, three test pins and one changelog.d fragment. Staged and unstaged changes: none before the audit.

Documentation health

  • docs/TESTING_INTERNALS.md: updated. The observed-jobs table row for windows-setup-e2e.yml now lists all six job ids (windows-setup, windows-setup-recovery, windows-setup-cso, held-install-journey, held-install-trial, held-install-later-release), matching the workflow and test/trunk-dynamic-ci-observers.test.ts.
  • docs/pregate.md: current. The windows-setup job it names still exists.
  • changelog.d/ci-windows-setup-e2e-parallel.md: current. Reviewed, not edited.

Coverage debt: no prose doc describes the new held-install fixture script; the workflow comments and the changelog fragment cover it. No diagrams are affected.

Pre-Landing Review

One full review pass at bce0192 (batched specialists, red team, native adversarial, a reviewer from a second model family and the targeted gate reader) found nothing that blocks. Nothing was fixed; the items below are recorded and left for later. The stale Trunk observer table the red team and native reviewer both named was corrected by the documentation audit in 432b259.

  • INFORMATIONAL sf-a6a2df8b105d security finding, details recorded privately
  • INFORMATIONAL .github/workflows/windows-setup-e2e.yml:758 The later-release updater no longer runs after the trial and go-back forms, so updating after a trial plus go-back is no longer exercised.
  • INFORMATIONAL docs/TESTING_INTERNALS.md:1729 The Trunk observer table and the workflow comment at line 107 still name only the old two jobs.
  • INFORMATIONAL scripts/windows-held-install-fixture.sh:12 Three held-install jobs now each fetch the pinned release commit, tripling the chance of a fetch flake.
  • INFORMATIONAL scripts/windows-held-install-fixture.sh:66 The generated lib.sh install_state removes HOME's gstack install; moved unchanged from the inline step, only reachable by sourcing the CI fixture by hand with RUNNER_TEMP set.
Exploratory QA

Three captures on Linux, verdict pass: the moved fixture script builds the held-install fixture from this head (bare origin at this tree on top of v1.91.101.0, fix-branch with the trial marker, a valid lib.sh, an empty case list), and its body matches the old inline step apart from the strict-mode line. The first capture was superseded: the local clone was shallow and lacked the pinned release commit. Windows behaviour is covered by the Windows Setup E2E run, not by these probes.

Tests
  • Free Tests (workflow_dispatch run 44815919303 at 432b259): green, 1719 test files, carried by /ship accept
  • Windows Setup E2E (run 44814828573 at 432b259): all six Windows jobs green
  • Focused local tests: test/windows-path-scope-workflow, test/trunk-dynamic-ci-observers, test/windows-native-workflows, test/held-install-recovery, test/build-cso-nonfatal, test/heredoc-pipe-deadlock, test/egress-receipt-wiring pass; actionlint 1.7.11 clean
Agent notes

Tracking: GST-3303 (change 3 of the CI speed plan). Pregate still reads only windows-setup as a Windows lane that runs tests; the new jobs add no remote-clear obligation (checked with parseWorkflow). The Trunk Dynamic CI observer now records all six Windows job keys. Measured Windows Setup E2E wall at 432b259 comes from run 44814828573.

Approvals

No approvals recorded for branch ci/windows-setup-e2e-parallel.
Plan: exempt: audited-list
Plan check: exempt audited-list

Pre-Landing Review: 6 issues — 0 auto-fixed, 1 asked (0 fixed, 1 skipped), 0 deferred, 5 noted
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=5 fixed=0 scope=frozen ledgers_read=2 dispatches=2 est_input_tokens=17111
Gate edits: none detected (15 listed, 12 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

Open in Capy

{
  "schema_version": 1,
  "pr": 4575,
  "head": "432b259bf6a1605567e6c10535ae0b9f36d5a96f",
  "version": "1.102.0.0",
  "base": "main",
  "gate": {
    "tests": {
      "pass": 1719,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "tests",
      "run": 44815919303,
      "attempt": 1,
      "tree": "2f5ff0721948ae9d91920c672d7417eef145433c"
    }
  ],
  "calls": 21,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/gstack/ship-4575-bce0192",
  "head_tree": "2f5ff0721948ae9d91920c672d7417eef145433c",
  "product_patch_id": "c196380c63ecedb07bb00b173b897a6f19d4c4aa",
  "gstack_version": "1.102.1.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 415,
    "rules": "85b3923b1a978e41",
    "base": "29bff55dd8a14b32ff282d5a37097e3a53e3250a",
    "registry": "29bff55dd8a14b32ff282d5a37097e3a53e3250a",
    "gate_scan": {
      "tagged": 4,
      "head": "432b259bf6a1605567e6c10535ae0b9f36d5a96f"
    },
    "reasons": [
      "gate-class",
      "risk:security",
      "runtime=415"
    ],
    "risk": [
      "security"
    ],
    "mode": "panel"
  },
  "pregate": "warn @2f5ff0721948 (8 checks, current for 432b259bf6a1)",
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md against the branch diff"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 5,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "est_input_tokens": 17111,
    "ledgers_read": 2,
    "dispatches": {
      "specialist-batched": 1,
      "red-team": 1
    }
  },
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "gate"
    ],
    "rules": "b3f6f8b4843c0c30",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "c196380c63ecedb07bb00b173b897a6f19d4c4aa",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

The false-positive recovery and the forced-CSO-failure cases leave
windows-setup for their own jobs, and the held-install journey splits into
three jobs that each build the same fixture from a checked-in script. Every
case still runs, and each job checks its own case list.

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.

garrytan and others added 2 commits November 20, 2026 20:30
…ards

It sets BASH_COMPAT=50 like the other scripts with a large heredoc, and the
network-use scanner lists it with its reason: a CI-only fixture that fetches
one pinned gstack release commit and pushes only to a local bare repo.

Refs: GST-3303
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 593d7e1 into main Nov 20, 2026
85 checks passed
@garrytan garrytan mentioned this pull request Nov 21, 2026
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