Repository navigation
fix(scripts): check:changed runs an eval's grader tests when its cases change - #804
Conversation
…s change A changed evals/<eval>/cases/ file selected no test, so a broken case reached CI unseen. check:changed now adds evals/<eval>/run.test.ts when it exists. Closes #803 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
What: Independent review round 1 passes head Reviewed Issue #803 in full, repository AGENTS.md including Verifying/test rules, docs/fork.md, the entire Findings: none blocking.
Proof assessed: PR reports failing-first Limitations: no local test execution or worktree creation; the historical failing-first transcript is reported in the PR, not independently replayed. The new helper does not exist on base, so transplanting the test alone fails on its missing export rather than exercising the former command selection. Source inspection independently confirms the former code had no case-to-grader mapping. CI proof is the GitHub synthetic merge, not a separate local exact-head run. No paid evals, edits to checkouts, fixes, or PR watch. Reviewer: GPT-6.1-sol, Codex harness; did not author the change. |
What:
vp run check:changednow runsevals/<eval>/run.test.tswhen a file underevals/<eval>/cases/changes.Why: a changed case file selected no test, because selection only picked tests beside changed code files; on #802 a new case broke
evals/mcp-tool-use/run.test.tsand only CI caught it.So what: ready for independent review, then merge.
Closes #803
Change
scripts/check-changed.ts: newevalCaseTests(files)maps eachevals/<eval>/cases/...path toevals/<eval>/run.test.ts;checkChangedadds it next todocReaderTestswhen the file exists. Every other path is unchanged.scripts/check-changed.test.ts: one new case (secrets and file-links cases select the grader once; an eval README and acases/dir outsideevals/select nothing).scripts/check-changed.tsis an upstream file, so it is registered underfork-maintenanceindocs/fork-features.mdandscripts/fork-upstream-edits.txt. Upstream (pingdotgg/t3codemain, PRs, Issues) has no fix for this.Elon record
check:changedbefore push to run the tests beside changes; the PR feat(server): agents save a value shown in a browser tab to a private file #802 worker hit this gap on 2026-11-18.evals/change.scripts/check-changed.ts(docReaderTestsand the beside-file loop).scripts/check-changed.ts: selection uses onlyCODEfiles and their*.test.*siblings;.ndjsoncases match neither.Proof
vp test run scripts/check-changed.test.ts -t "eval's grader"before the fix:Tests 1 failed | 17 skipped (18).vp test run scripts/check-changed.test.ts:Tests 18 passed (18).vp run check:changed: format, lint, knip 1/2 and 2/2, typecheck (1 package), test (1 file) all pass.bash scripts/fork-check.sh --upstream upstream:fork-check: OK.Done by Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code