Repository navigation
v1.91.371.0 ci(evals): a pr-summary run skips the readiness wait it never used - #3609
Merged
Merged
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
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>
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
When a repository declares a train, E2E Evals in
pr-summarymode now skips thereadinessjob. 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: inpr-summarymode every planning and paid job is skipped, and the run's real work is the ~20 sscreen-summaryjob. Now the check finishes in about a minute.readinessgainsneeds: [route]. Itsifkeeps every existing clause and addsneeds.route.outputs.mode != 'pr-summary'. These are unchanged:prmode (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:
pr-summaryPR push)routereadinessroute: 600 s quiet window, then waits for green Free Testsroute; mode ispr-summary)build-imagescreen-summaryplan-slices,eval-slices, …)prmode (no train)routeRecheck at the current head 95868a2 (run 41201641988, 2026-10-31):
route24 s,readinessskipped,screen-summarysuccess in 22 s, every paid job skipped; wall 2 min 9 s, of which 52 s wasscreen-summarywaiting for a runner.Why
Measured over 392 PR heads since 2026-10-19 (GSTA-149 audit):
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-commentfires only onneeds.readiness.result == 'failure'(evals.yml:324), andrecover-receiptsandplan-slicesalready accept a skipped readiness and still requireneeds.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
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-summarymode and finishes in about a minute, whileprmode keeps the wait it uses. The branch carries its CHANGELOG entry as the fragmentchangelog.d/capy-gsta149-pr-summary-wait.md; the merge step assigns the version.Behavior changes
pr-summarymode, 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.pr-summaryruns. 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 simulatedpr-summaryPR run isbuild-image,routeandscreen-summaryonly, andprmode still runsreadiness.test/evals-pr-lane-workflow.test.tspins the newneedsand the fullif.ci-paid-coordination,eval-readiness,test-health-report,workflow-shell-lint, actionlint, andtypecheck: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
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.
.github/workflows/evals.yml:324Under 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..github/workflows/evals.yml:287Inprand train modes readiness now starts afterroutefinishes 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.scripts/test-health-report.ts:280push-to-verdict's p50 drops becausepr-summaryruns 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.docs/TESTING_INTERNALS.md:1265On apr-summarypush 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.
bun test test/evals-train-workflow.test.ts -t 'starts no paid slice': 1 pass, 0 fail.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
needs: [route](evals.yml)ifkeeps every clause and addsmode != 'pr-summary'readiness.needsand the fullifstringpr)gstack-ship-queue ready --screenstill reads the screen summaryAcceptance 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 --screenwas not run (this READY usesready --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 0bun run typecheck:test: 814 known diagnostics, none newbun teston the 6 touched/selected workflow and health files: 107 pass, 0 failgstack-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.05changelog.d/capy-gsta149-pr-summary-wait.md; product patch-id unchanged, receipt carried):bun run typecheckexit 0,typecheck:test814 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.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.