Skip to content

Weekly test health passes again with freshly recorded test times (GST-3385) - #4633

Merged
capy-ai[bot] merged 1 commit into
mainfrom
ci/refresh-free-seed-gsta748
Nov 21, 2026
Merged

capy-ai[bot] merged 1 commit into
mainfrom
ci/refresh-free-seed-gsta748

Conversation

@garrytan

@garrytan garrytan commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

The Weekly test health check has failed on main three Mondays running because more than five free test files had no recorded run time. This re-records the times for all 1,739 files so it passes again.
No test, threshold or workflow changes; two files now over 60 seconds get allowlist entries with a todo to split them. Nothing to do.

What changed

The weekly health report kept going red on one check: "Free test files missing from the duration seed". New test files had landed without a recorded run time (7 on main today), and the free suite uses those times to split files across its parallel jobs. The times are now re-recorded for every one of the 1,739 free test files, so the check reports 0 missing (limit 5). Two files that now run past the 60-second limit, test/gstack-capy-install.test.ts (71 s) and test/harness-register.test.ts (68 s), get allowlist entries with a todo to split them, and crew/test/ship-queue-train-land.test.ts leaves the allowlist because it now runs in 55 s.

Why

The free suite splits its files across parallel jobs using these recorded times, and the weekly health report fails while more than five files have none. The last three weekly refresh PRs closed unmerged, so the times fell behind.

Blast radius

Only data files change: scripts/free-test-durations.json, scripts/free-test-seed-allowlist.json and one release-note fragment. The free suite's job split reads the new times, and the CI free-suite run at this head (44951632396) passed all 1,732 files it owed, so the new split runs clean.

Pre-Landing Review

No issues found. Five readers (a batched specialist, a red team, an adversarial reader, a second-model review on GPT-6.1 Sol and a targeted reader) read the diff; none found a blocking problem. The second-model review's verdict was clean.

Review notes

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

  • INFORMATIONAL scripts/free-test-seed-allowlist.json:21 New allowlist reasons name no recording run id
  • INFORMATIONAL scripts/free-test-durations.json:3 Timings from a manual standard-8 run may under-predict CI shard times (warning noise only)
  • INFORMATIONAL changelog.d/free-seed-refresh-2026-11-21.md:1 Changelog history figure (16 missing on 11-16) not verified by the reader
Exploratory QA

Functional smoke, 2 probes, both pass: the health check's missing-times check reports "0 unseeded file(s) (limit 5)" at this head, and the recorded times match the free test list one to one (1,739 each, none missing, none extra).

Verification Results

No plan file, so no plan checks: 0 PASS, 0 FAIL, 0 BLOCKED, 0 NOT RUN. The repro on main 6263e0e reports "stale seed: 7 unseeded file(s) > 5".

TODOS

No TODO items completed in this PR.

Documentation

Scope: This branch re-records the free-test run times (scripts/free-test-durations.json) and updates the allowlist of slow test files (scripts/free-test-seed-allowlist.json): it adds test/gstack-capy-install.test.ts and test/harness-register.test.ts and removes crew/test/ship-queue-train-land.test.ts. It also adds a release-note fragment in changelog.d/. The audit checked the docs that describe these files: docs/TESTING_INTERNALS.md, CONTRIBUTING.md and docs/pregate.md.

Result: All docs are current, and no edits were needed. The docs explain how the recorded times and the allowlist work and how to refresh them. That explanation still holds after this change.

Debt: docs/pregate.md (line 190) still quotes seed timings from the 2026-10-19 recording, so its numbers may no longer match the new recording. It was left as written.

Tests
  • CI free suite at this head (run 44951632396): 1,732 files passed, 0 failed
  • Health check repro (unseededCheck): 0 unseeded file(s) (limit 5)
Agent notes

Recorded with bun run test:ubicloud --record-durations on ubicloud-standard-8, GSTACK_FREE_JOBS=2, 0 files failed. Allowlist reconciled with scripts/free-seed-allowlist.ts --reconcile.

Approvals

No approvals recorded for branch ci/refresh-free-seed-gsta748.
Plan: exempt: bug fix (stale data repair, --kind fix) with a repro on main 6263e0e
Plan check: exempt bug fix

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

Refs GSTA-748

{
  "schema_version": 1,
  "pr": 4633,
  "head": "365877235e8f663ffbada629379e891019b5e7c7",
  "version": "1.102.1.0",
  "base": "main",
  "gate": {
    "free": {
      "pass": 1732,
      "fail": 0,
      "skip": 7
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 44951632396,
      "attempt": 1,
      "tree": "50c29fe580a19c64f91882fcd1040cc856020343"
    }
  ],
  "calls": 14,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/ship-4633/run1",
  "head_tree": "50c29fe580a19c64f91882fcd1040cc856020343",
  "product_patch_id": "984a763e3d8982e5ae0f1a072c5887c2d2c7c3f5",
  "gstack_version": "1.102.2.0",
  "review_depth": {
    "depth": "full",
    "class": "code",
    "runtime_lines": 3408,
    "rules": "85b3923b1a978e41",
    "base": "79eea6d5fca540cf4b3483781e025b89d751bf25",
    "registry": "79eea6d5fca540cf4b3483781e025b89d751bf25",
    "gate_scan": {
      "tagged": 0,
      "head": "365877235e8f663ffbada629379e891019b5e7c7"
    },
    "reasons": [
      "risk:secret",
      "runtime=3408"
    ],
    "risk": [
      "secret"
    ],
    "mode": "panel"
  },
  "pregate": "pass @50c29fe580a1 (8 checks, current for 365877235e8f)",
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/TESTING_INTERNALS.md, CONTRIBUTING.md, docs/pregate.md (seed and allowlist docs); no edits"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 3,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 2,
    "dispatches": {
      "specialist": 1,
      "red-team": 1
    }
  },
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "secret"
    ],
    "rules": "b3f6f8b4843c0c30",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "984a763e3d8982e5ae0f1a072c5887c2d2c7c3f5",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

Open in Capy

…-3385)

Re-records the per-file run times for all 1,739 free test files so the weekly health check no longer finds more than five files without one. Two files now over 60 seconds get allowlist entries with a todo to split them.

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

trunk-io Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai
capy-ai Bot merged commit 3c1c22e into main Nov 21, 2026
52 of 53 checks passed
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