Skip to content

Nightly Windows tests fit their time limit again (GST-2827) - #4409

Merged
capy-ai[bot] merged 2 commits into
mainfrom
capy/nightly-windows-tests-fit
Nov 17, 2026
Merged

capy-ai[bot] merged 2 commits into
mainfrom
capy/nightly-windows-tests-fit

Conversation

@garrytan

@garrytan garrytan commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

The nightly Windows test run on main finishes inside its 15-minute job limit again: the planner now has a Windows duration for all 902 test files and splits them across eight shards of about 12 minutes each instead of six uneven ones.

Why: one shard has run past the limit almost every night since 2026-11-06, which kept the nightly red and held a stable cut. No test is dropped and the time limit is unchanged.
Nothing to do as a reader; the proof is a dispatched Windows Free Tests run on this branch, linked below.

What changed, why, and how it was checked

What changed

The nightly Windows run went from one shard cancelled at the 15-minute limit to eight shards that all finish in under 12 minutes

The nightly Windows run went from one shard cancelled at the 15-minute limit to eight shards that all finish in under 12 minutes.

Before/after as text: The nightly Windows run went from one shard cancelled at the 15-minute limit to eight shards that all finish in under 12 minutes
--- Before · before.txt · captured output
+++ After · after.txt · captured output
+Windows Free Tests on this branch (run 43882907921, 93161f67), 8 shards, same 15-minute job limit
-Windows Free Tests, nightly on main, 2026-11-16 (run 43840279690, a15a0de7), 6 shards, 15-minute job limit
   shard 1   10.9 min  success
+  shard 2    7.2 min  success
+  shard 3    7.1 min  success
+  shard 4   11.6 min  success
+  shard 5   10.2 min  success
+  shard 6   10.5 min  success
+  shard 7    9.7 min  success
+  shard 8   11.6 min  success
+result: success
-  shard 2    8.6 min  success
-  shard 3   15.3 min  cancelled at the time limit
-  shard 4   11.0 min  success
-  shard 5   12.0 min  success
-  shard 6   11.7 min  success
-result: cancelled
 

Why

The nightly Windows run kept getting cancelled. One shard ran past the 15-minute limit almost every night since 2026-11-06. The old seed, recorded on 2026-10-31, had no entry for 95 of today's 902 Windows-safe files, so the planner placed them at a 112-second guess and one shard ended up with far more work than the rest. Scoring the 2026-11-16 plan (run 43840279690) against the fresh recording gives 14.1, 12.0, 26.5, 15.3, 13.6 and 14.7 minutes per shard, and shard 3 was the one cancelled. With every file recorded, eight shards each hold about 12 minutes of recorded work.

Blast radius

Only the nightly and hand-started Windows Free Tests workflow plans differently; it never runs on a pull request, so no PR check changes. The aggregate check, the reuse profile in .gstack/pregate.json and the shard map in lib/pregate/flaky-exception.ts all read the shard list from the plan rather than a fixed count (read by two reviewers), and the planner run with this seed picks exactly the 902 seeded files (script ran).

Summary

The Windows nightly was red because its duration seed was three weeks stale, not because any test got slow. This PR takes the fresh Windows recording from the weekly refresh PR and adds two shards so the suite fits with room under the limit.

Test Coverage

No runtime code changed; the workflow test pins the new shard count.
Tests ran: tests 1671 (Free Tests run 43886167787 at 5d2d6d2)

Pre-Landing Review

No issues found. Five readers ran on the reviewed tree (specialist, red team, adversarial, second-model review on GPT-6.1 Sol, and a targeted secret-class read); none found a blocking issue.
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen ledgers_read=3 dispatches=2 est_input_tokens=46908
Gate edits: none detected (4 listed, 4 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Second-model review (openai/gpt-6.1-sol): VERDICT: CLEAN.

Review notes

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

  • INFORMATIONAL .github/workflows/windows-free-tests.yml:113 Headroom under the 15-minute job limit rests on the 0.6-0.9x in-shard speed ratio cited in the comment; at 1.0x plus setup a job is near 13.5 of 15 min. Resolved by run 43882907921: the eight shards took 7.1 to 11.6 minutes.
  • INFORMATIONAL changelog.d/windows-nightly-fits-its-time-limit.md:1 The changelog's 26 vs 12 minutes comes from CI logs the reviewer did not fetch. Resolved by recount: scoring run 43840279690's plan with test(seed): refresh the free-suite duration seeds #4249's Windows seed gives shard 2 = 12.0 min and shard 3 = 26.5 min.

Exploratory QA

Functional surface: the Windows shard planner. Two probes, both pass: the plan step at --shards 8 exits 0 and emits shards 1-8, and its 902 planned files all have a recorded duration, with every shard at 12.03 minutes of recorded work. Real per-shard wall time comes from run 43882907921 above.

Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped.

Review bot comments

No review bot comments.

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). This is a bug fix, which needs no plan.

TODOS

No TODO items completed in this PR.

Documentation

Status: updated. Two stale Windows shard counts were corrected to match the move from six to eight shards.

Scope: the diff from base a15a0de to head 93161f6 (the Windows free-tests workflow, the Windows duration seed, docs/TESTING_INTERNALS.md, a workflow test and a changelog.d fragment). The working tree, index and new files were clean. I searched the tracked Markdown and templates for the old shard count.

Documentation health:

  • CONTRIBUTING.md: updated. The Windows subset row now says eight windows-latest jobs.
  • docs/support-tiers.md: updated. It now says the eight-shard Windows free suite.
  • docs/TESTING_INTERNALS.md: current. It already shows --shards 8 on this branch.
  • changelog.d/windows-nightly-fits-its-time-limit.md: current.

Coverage debt: none. The change is a CI tuning change with no new public surface, and the reference docs cover it.

Diagram drift: none.

Test plan

  • bun run test: Free Tests run 43886167787 green at 5d2d6d2 (1671 files)
  • Windows Free Tests run 43882907921: all eight shards green, 7.1 to 11.6 minutes each
Agent notes

Flaky-fix pass 2026-11-16 (GSTA-568). Overlaps only #4249's Windows seed file, a bot branch that the weekly recording rewrites.
Refs GST-2827

Approvals

No approvals recorded for branch capy/nightly-windows-tests-fit.
Plan: exempt: bug fix
Plan check: exempt bug fix

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen ledgers_read=3 dispatches=2 est_input_tokens=46908
Gate edits: none detected (4 listed, 4 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

{
  "schema_version": 1,
  "pr": 4409,
  "head": "5d2d6d2d368bee20f9c0527dde74b1848a11a1d0",
  "version": "1.99.5.0",
  "base": "main",
  "gate": {
    "tests": {
      "pass": 1671,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "tests",
      "run": 43886167787,
      "attempt": 1,
      "tree": "cc5078ec0e8af2d3160a4c66cd5436f1e5337705"
    }
  ],
  "session_kind": "unattended",
  "head_tree": "cc5078ec0e8af2d3160a4c66cd5436f1e5337705",
  "product_patch_id": "b419488a5bbb88c4bf7db1353cb08ec8511f1447",
  "gstack_version": "1.99.5.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 1704,
    "rules": "66e5174161eecc2c",
    "base": "a15a0de7b1b2098ec59d158c90275adb75d7812b",
    "registry": "a15a0de7b1b2098ec59d158c90275adb75d7812b",
    "gate_scan": {
      "tagged": 0,
      "head": "5d2d6d2d368bee20f9c0527dde74b1848a11a1d0"
    },
    "reasons": [
      "gate-class",
      "risk:secret",
      "runtime=1704"
    ],
    "risk": [
      "secret"
    ],
    "mode": "panel"
  },
  "pregate": "pass @cc5078ec0e8a (8 checks, current for 5d2d6d2d368b)",
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, CONTRIBUTING.md, AGENTS.md, CLAUDE.md against the 5-file branch diff"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "est_input_tokens": 46908,
    "ledgers_read": 3,
    "dispatches": {
      "specialist-batched": 1,
      "red-team": 1
    }
  },
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "secret"
    ],
    "rules": "8811fd300bf305f0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "b419488a5bbb88c4bf7db1353cb08ec8511f1447",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

The Windows duration seed missed 95 of 902 files, so the planner packed
them blind and one shard got about 26 minutes of work. Refresh the seed
from the 2026-11-16 recording and run eight shards of about 12 minutes.

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

trunk-io Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

CONTRIBUTING.md and docs/support-tiers.md still said six shards after the workflow moved to eight.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit be73938 into main Nov 17, 2026
53 checks passed
capy-ai Bot added a commit that referenced this pull request Nov 17, 2026
- /autoplan's approval page no longer hides a reviewer's product objection behind "keep your direction". (#4431)
- Every skill that loads the shared preamble, on every host, now says to ask a question once and to check a file before handing it over. (#4383)
- The Captain manuals now name the `Failed or skipped:` and `Also changed:` lines that READY and lane reports carry. (#4432)
- gstack's shell locks hold again on Ubuntu 26.04, where `mkdir` reports success when another process won the race (GST-2247). (#4262)
- `test/gstack-lock-race.test.ts` runs the old pattern and the helper against a PATH shim that behaves like uutils 0.8.0 `mkdir`, so it runs on any runner image: the old pattern lets two of four racers win, the helper admits exactly one in each of 60 races and never overlaps across take, hold and release loops, and parallel `gstack-config` writers keep every key. (#4262)
- Windows Setup E2E now runs when `bin/gstack-lock.sh` changes. (#4433)
- Claude Code's skill list now says when to use each gstack skill, so Opus loads /review and /plan-eng-review when a request fits. (#4387)
- A pull request's merge head can no longer keep its `/ship` receipt without a full review. (#4365)
- `/ship` now counts review rounds per pull request, and the head that merges always gets a full review. (#4360)
- /ship's documentation audit no longer accepts a passing result when an earlier line from the same audit said "blocked". (#4434)
- /ship's documentation audit no longer spends an attempt when the audit child writes text after its result. (#4285)
- The README lists the two new guides, and the install doc counts its hooks right. (#4403)
- docs/releases.md now says the stable release cut treats a failed commit status as red and a pending one as still going, as it has since #4257. (#4436)
- /ship's `finish --docs-requested` now accepts a docs fix when the audit named the file with a line number. (#4437)
- Document the `.gstack/approval-classes.json` schema, `gstack-approval-classes` CLI commands, and owner approval citation format in `docs/ship-policy.md#approval-classes`. (#4355)
- `/eval-plan` now runs four result checks instead of leaving them to judgment. (#4384)
- The /review coverage-audit eval no longer fails a run that really read the source file when zsh stops a command line at an `echo ====` separator. (#4364)
- Sixteen in-repo documentation links reach their section again. (#4394)
- gstack agents now open every status report with what failed, what they didn't verify and what else they changed. (#4273)
- Two new short guides. (#4380)
- A skill you wrote whose contract still lists `check_after_last_edit` keeps the rest of its contract. (#4439)
- The ship policy guide now explains how to merge any pull request with `gstack-ship-queue land`, even in a repository with one maintainer. (#4377)
- /ship's test step runs a large unit suite on Linux. (#4426)
- Every skill that loads the shared preamble, on every host, now says never to print a whole environment, git config or process table. (#4382)
- Pull requests from /ship now open with at most three plain lines, and every merge lands as one commit titled with the PR title. (#4438)
- `gstack-pr-wait`, `gstack-ci-gate` and the release cut no longer call a commit green while a check on it failed. (#4257)
- `gstack-runaway` now says what a thread's cold and empty wakes cost, not just how many there were (GST-2770). (#4385)
- The optional Stop hook no longer checks for a test run after the last edit, and /verify asks for it in plain words instead. (#4428)
- /ship's test step says when it ran out of time, and you can set its budget. (#4429)
- The remote test command no longer puts every file on one command line. (#4429)
- The stable release no longer waits on the nightly Windows tests (GST-2815). (#4400)
- Ubicloud fan-outs can no longer overshoot the vCPU limit, and owners no longer delete each other's VMs. (#4430)
- hono is pinned to 4.13.16, which fixes five advisories the weekly OSV scan found in 4.13.13 (gstack#4406). (#4408)
- `package.json` overrides (#4408)
- `test/dependency-security.test.ts`: the lockfile floor check now covers `hono >= 4.13.16`. (#4408)
- The nightly Windows test run finishes again. (#4409)
- A short write-up checklist in ETHOS.md. (#4381)

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