Skip to content

v1.91.371.0 ci(evals): a pr-summary run skips the readiness wait it never used - #3609

Merged
capy-ai[bot] merged 4 commits into
mainfrom
capy/gsta149-pr-summary-wait
Oct 31, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
capy/gsta149-pr-summary-wait

Conversation

@garrytan

@garrytan garrytan commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3609,
  "head": "95868a2c723ac503793f3f9a84862e98890d493f",
  "version": "1.91.319.0",
  "base": "main",
  "gate": {
    "touched-tests": {
      "pass": 107,
      "fail": 0,
      "skip": 0
    },
    "remote-pregate": {
      "pass": 10146,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "08d60e67fc56d4727d11087f91f2de2873f2d793",
  "product_patch_id": "4c9f977746a58f4120779879673330102925d168",
  "gstack_version": "1.91.319.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 10,
    "rules": "150435b0a543019a",
    "base": "12dc6782c26909f5f52be82c260d5f95d5dc5b37",
    "registry": "12dc6782c26909f5f52be82c260d5f95d5dc5b37",
    "gate_scan": {
      "tagged": 0,
      "head": "95868a2c723ac503793f3f9a84862e98890d493f"
    },
    "reasons": [
      "gate-class",
      "runtime=10<=50"
    ]
  },
  "pregate": "requires-remote cleared @08d60e67fc56 (1 checks, current for 95868a2c723a)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41201642013",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41201642034",
    "pregate.json/remote_gate: remote-gate tree=08d60e67fc56 tests=3418"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/ (TESTING_INTERNALS R1 readiness section), README.md, CONTRIBUTING.md, CLAUDE.md, AGENTS.md, CHANGELOG.md"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 4,
    "fixed": 0,
    "scope": "frozen",
    "est_input_tokens": 4975,
    "dispatches": {
      "adversarial-native": 1,
      "outside-voice": 1
    }
  },
  "carry": {
    "from": "e44921b987925ade786c73a9bd3b57039d59a88b",
    "reason": "release metadata",
    "product_patch_id": "4c9f977746a58f4120779879673330102925d168",
    "changed_paths": [
      "metadata:CHANGELOG.md",
      "metadata:changelog.d/capy-gsta149-pr-summary-wait.md"
    ],
    "merge_commits": 0,
    "range_diff": "1:  8bc401d4f = 1:  8bc401d4f ci(evals): a pr-summary run skips the readiness wait it never used\n2:  e44921b98 = 2:  e44921b98 chore: CHANGELOG [Unreleased] entry for the pr-summary readiness skip\n-:  --------- > 3:  95868a2c7 chore: move the CHANGELOG entry to changelog.d/capy-gsta149-pr-summary-wait.md (fragments policy since #3654)",
    "covers": [
      "pre-landing review",
      "adversarial review",
      "gate integrity",
      "documentation audit"
    ],
    "reruns": [
      "CI at head (gstack-ship-queue ready requires it); test and helper code changed since the reviewed head runs there unreviewed"
    ],
    "ancestry": "linear",
    "trees": [
      "3ab6918235949ad650c16de0f1435424b9cd8ee1"
    ]
  }
}

What changed

When a repository declares a train, E2E Evals in pr-summary mode now skips the readiness job. Before this change, every PR head's E2E check slept a fixed 10-minute quiet window and then waited on Free Tests. Nothing downstream used that wait: in pr-summary mode every planning and paid job is skipped, and the run's real work is the ~20 s screen-summary job. Now the check finishes in about a minute.

readiness gains needs: [route]. Its if keeps every existing clause and adds needs.route.outputs.mode != 'pr-summary'. These are unchanged: pr mode (a repository with no train block), build-image (which still validates Dockerfile.ci and lockfile changes on PRs), screens, train gates, bisects and dispatches.

CI wiring only, no UI, so the before/after is the job graph of one E2E Evals run on a PR push:

Before (pr-summary PR push) After (this branch, run 40908497452 at 8bc401d)
route runs runs (16:07:53 → 16:08:15)
readiness runs in parallel with route: 600 s quiet window, then waits for green Free Tests skipped (needs route; mode is pr-summary)
build-image runs runs
screen-summary runs runs (success)
paid jobs (plan-slices, eval-slices, …) skipped skipped
E2E Evals wall p50 10.1 min 58 s
pr mode (no train) readiness gates recovery and planning unchanged; readiness now starts after route

Recheck at the current head 95868a2 (run 41201641988, 2026-10-31): route 24 s, readiness skipped, screen-summary success in 22 s, every paid job skipped; wall 2 min 9 s, of which 52 s was screen-summary waiting for a runner.

Why

Measured over 392 PR heads since 2026-10-19 (GSTA-149 audit):

  • The E2E check took p50 10.1 min and finished last on 111 heads.
  • The wait held 2,949 GitHub ubuntu runner-minutes a week during PR bursts.
  • It produced 9 red readiness results since 10-24 that each needed a rerun.

Push-to-all-green alone moves only from 11.3 to about 11.1 min p50, because Windows Free Tests finishes last on most heads. The Windows PR in this series is the user-visible latency win.

Blast radius

The change touches every job in evals.yml that reads readiness: readiness-comment fires only on needs.readiness.result == 'failure' (evals.yml:324), and recover-receipts and plan-slices already accept a skipped readiness and still require needs.route.result == 'success' (evals.yml:363, :509), so a skipped readiness can neither start nor block paid work. Evidence rung: file:line read by three reviewers, the job-graph simulation in test/evals-train-workflow.test.ts ran green, and the live run 40908497452 shows readiness skipped with every paid job skipped.

Approvals

Date Asked Exact words Outcome Covers Still pending
2026-10-29 Approve the plan "GSTA-149 plan: CI workflows and runners, cost and latency without losing coverage (rev 2)" (autoplan run autoplan-20261029041322, 2 decisions) “Do it. Order priority by what saves money fastest” (Garry (via GStack Minder), relayed by agent:jam_01M62S3FBDQBZEG2TNRT5CHWCY) approved the reviewed plan (sha256 a32d8d5793f9), every recommendation taken none
2026-10-29 Merge #3609 when green “yes merge when green” (Garry, 2026-10-16 (GStack Minder crew rule 6)) standing approval every crew PR, merged by GStack Minder through a train none
2026-10-29 Remote pregate spend on Ubicloud for #3609 (cap $2, spent $0.05 per run) “it's fine run as many $93 paid gates as you want who cares” (Garry, 2026-10-15 (GStack Minder crew rule 5)) standing approval gates and focused paid runs, lane cap $10 per PR none

Source: gstack-approvals record for capy/gsta149-pr-summary-wait (display only; not an approval citation).

Summary

The E2E check on a train repository's PR push spent ten minutes waiting for a quiet PR and green Free Tests, then did nothing with it. It now skips that wait in pr-summary mode and finishes in about a minute, while pr mode keeps the wait it uses. The branch carries its CHANGELOG entry as the fragment changelog.d/capy-gsta149-pr-summary-wait.md; the merge step assigns the version.

Behavior changes

  • In pr-summary mode, E2E Evals no longer turns red when Free Tests is red on the head. Free Tests stays the required check and still shows the failure.
  • test:health's "PR lane push-to-verdict" drops by about 10 min for pr-summary runs. The metric's rule text notes the discontinuity.

Coverage

No case, selection, trial, threshold or tier changes. Paid work for PRs still runs through the dispatched screen and the train gate, which never waited on readiness.

Tests

  • test/evals-train-workflow.test.ts: the simulated pr-summary PR run is build-image, route and screen-summary only, and pr mode still runs readiness.
  • test/evals-pr-lane-workflow.test.ts pins the new needs and the full if.
  • Passing: ci-paid-coordination, eval-readiness, test-health-report, workflow-shell-lint, actionlint, and typecheck:test (no new diagnostics).

Plan: GSTA-149 autoplan run autoplan-20261029041322 (APPROVED; Garry 2026-10-29: "Do it. Order priority by what saves money fastest").

Test Coverage

evals.yml readiness
├─ needs:[route] ── [★★ evals-pr-lane-workflow: needs toEqual ['route'] + exact if-string]
├─ route.mode=='pr-summary' → SKIPPED ── [★★★ evals-train-workflow: simulate jobs == build-image,route,screen-summary]
└─ route.mode=='pr' → RUNS ── [★★ evals-train-workflow: simulate jobs toContain readiness]
Not counted: docs/TESTING_INTERNALS.md (docs), test-health-report.ts metric description string (no behavior)
COVERAGE: 3/3 paths (100%), weak 0, gaps 0

Tests: 0 new (existing pins edited and extended in the original commit).
Coverage: 100% value-weighted (100% including 0 weakly covered paths)
Test value: 0 tests written, 0 rejected by the authoring gate, 0 existing tests extended, 0 paths weakly covered (weak = ★, gate-failing or unrated).
Tests ran: touched-tests 107
Tests ran: typecheck count unavailable
Tests ran: typecheck-test count unavailable
Tests ran: actionlint count unavailable
Tests ran: remote pregate (Ubicloud, 8 selected files) 116

Pre-Landing Review

No issues found. One batched specialist pass (state-machines + red-team, Claude Opus 5.5): NO FINDINGS.
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=4 fixed=0 scope=frozen dispatches=3 est_input_tokens=4975
Gate edits: none detected (3 listed, 3 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Adversarial (native, Claude Opus 5.5): 3 informational notes, none at the blocking floor ("Ship because the most exploitable finding, readiness-comment no longer replacing a stale verdict comment under pr-summary, is cosmetic").
Outside review (cross-family, OpenAI GPT-6.1 Sol via a Capy subagent; Codex CLI not installed): completed, NO FINDINGS.

Review notes

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

  • INFORMATIONAL [ADVISORY] .github/workflows/evals.yml:324 Under pr-summary, readiness-comment can no longer fire (it needs readiness.result == 'failure'), so a prior head's E2E Evals PR comment is not replaced with NOT RUN when Free Tests is red. Free Tests stays the required check.
  • INFORMATIONAL [ADVISORY] .github/workflows/evals.yml:287 In pr and train modes readiness now starts after route finishes instead of alongside it (route's full-history checkout plus Bun setup). The quiet window is measured from run creation, so it does not lengthen.
  • INFORMATIONAL [ADVISORY] scripts/test-health-report.ts:280 push-to-verdict's p50 drops because pr-summary runs plan nothing, not because the gate got faster; the ~10 min is the fixed 600 s wait named in the plan, and the rule text records the discontinuity.
  • INFORMATIONAL [ADVISORY] docs/TESTING_INTERNALS.md:1265 On a pr-summary push E2E Evals goes green even when Free Tests is red; intended and documented (Free Tests stays required).

Exploratory QA

Surface: functional (CI job graph), bounded smoke (300 s, 2 probes), evidence in .gstack/qa-reports/ship-3609/functional (checkpoint 002). Verdict: pass.

  • 001 bun test test/evals-train-workflow.test.ts -t 'starts no paid slice': 1 pass, 0 fail.
  • 002 gh run view 40908497452 --json jobs: route, build-image and screen-summary success; readiness, recover-receipts, readiness-comment, plan-slices and every paid job skipped.
    Limits: pr-mode readiness cannot run live under the train policy (static pins only); the readiness-comment path on a red Free Tests head was not probed.

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.

Scope Drift

Scope Check: CLEAN
Intent: E2E pr-summary without the dead readiness wait (plan-v2 PR 1).
Delivered: readiness needs route and skips in pr-summary; docs, metric rule text, pins, changelog.d fragment.

Plan Completion

  • readiness needs: [route] (evals.yml)
  • readiness if keeps every clause and adds mode != 'pr-summary'
  • build-image unchanged
  • test:health rule text notes the ~10 min discontinuity
  • Pin readiness.needs and the full if string
  • Pin that pr-mode wiring is unchanged (readiness runs in mode pr)
  • Real PR run: E2E 58 s (run 40908497452), readiness skipped, screen-summary green
  • [~] CHANGED: train simulation pinned in test/evals-train-workflow.test.ts instead of test/ci-paid-coordination.test.ts
  • PARTIAL: build-image pinned only for pr-summary in this diff (screen/train/bisect/dispatch not added)
  • UNVERIFIABLE: PR body lists the behaviour changes
  • PENDING: gstack-ship-queue ready --screen still reads the screen summary

Acceptance edits: none.
Parent follow-up on the audit: the PARTIAL item is covered by existing pins (test/evals-train-workflow.test.ts:211 screen, :233 train, :256 bisect, :151 dispatch all list build-image); the behaviour changes are listed above under Behavior changes; ready --screen was not run (this READY uses ready --no-screen: no eval case content or selection changes, and the train gate covers paid work).

Verification Results

Step 8.1 obligations: 1 PASS (E2E Evals under 2 min on a real PR run: 58 s, run 40908497452), 0 FAIL, 0 BLOCKED, 1 NOT RUN (gstack-ship-queue ready --screen; READY uses --no-screen).

TODOS

No TODO items completed in this PR.

Documentation

Scope: docs/TESTING_INTERNALS.md (the R1 readiness section, lines ~1246–1264), README.md, CONTRIBUTING.md, CLAUDE.md, AGENTS.md and CHANGELOG.md, searched for "readiness", "pr-summary", "quiet window" and "waits for Free Tests" against base ad8e12d.

Result: current. The R1 section already documents the pr-summary skip; no other doc describes the evals.yml readiness job (other "readiness" hits are the browser probe, doctor, review dashboard and design records). No edits.

Debt: none.

Test plan

  • bun run typecheck: exit 0
  • bun run typecheck:test: 814 known diagnostics, none new
  • actionlint 1.7.11 (pinned digest): exit 0
  • bun test on the 6 touched/selected workflow and health files: 107 pass, 0 fail
  • Remote pregate at the frozen tree 3ab6918 (gstack-pregate --stage tests --remote --spend-cap 2 --timeout 2700, Ubicloud, 407 selected files): 10,146 tests, 0 failed, $0.06; an earlier run at 69c19be (before the CHANGELOG entry): 116 tests, 0 failed, $0.05
  • Windows Free Tests dispatched at e44921b (CHANGELOG-only conflict, docs/ship-policy.md dispatch route): run 40912513714 success; pregate lane cleared
  • Head 95868a2 (the only change since e44921b moves the CHANGELOG entry to changelog.d/capy-gsta149-pr-summary-wait.md; product patch-id unchanged, receipt carried): bun run typecheck exit 0, typecheck:test 814 known diagnostics none new, actionlint 1.7.11 exit 0, the 2 touched workflow test files 38 pass 0 fail; remote pregate at tree 08d60e6: 3,418 tests, 0 failed, $0.05 (first attempt was an infra failure: the VM could not resolve nodejs.org, no test ran, $0.02); Free Tests run 41201642013 success; Windows Free Tests run 41201642034 success.
  • (superseded at 95868a2 by run 41201642013, success) Free Tests dispatched at e44921b: run 40912507642 failure, only free-suite (10) in browse/test/cookie-import-native.test.ts "real synthetic Playwright pipe smoke" (cookie_read stage missing; failed with its in-run retry). The same failure hit the pull_request run 40908497325 at 8bc401d. This PR touches no browse code; GStack Minder's lane owns the KNOWN_INFRA_FLAKES rerun. macos-named-regressions passed and its pregate lane is cleared.

Open in Capy

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

trunk-io Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 3 commits October 29, 2026 16:22
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…y-wait.md (fragments policy since #3654)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title ci(evals): a pr-summary run skips the readiness wait it never used v1.91.371.0 ci(evals): a pr-summary run skips the readiness wait it never used Oct 31, 2026
@capy-ai
capy-ai Bot merged commit 48599bb into main Oct 31, 2026
62 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