feat: diff-based test selection for E2E and LLM-judge evals (v0.6.1.0)#139
Merged
feat: diff-based test selection for E2E and LLM-judge evals (v0.6.1.0)#139
Conversation
Each test declares file dependencies in a TOUCHFILES map. The test runner checks git diff against the base branch and only runs tests whose dependencies were modified. Global touchfiles (session-runner, eval-store, gen-skill-docs) trigger all tests. New scripts: test:e2e:all, test:evals:all, eval:select Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… hints The test was flaky at 20 turns because the agent reads a 300-line SKILL.md, navigates, extracts design data, and writes a report. Added hints to skip preamble/batch commands/write early while still testing the real SKILL.md. Now completes in ~13 turns consistently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.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.
Summary
git diff— only tests whose file dependencies changed are runtest/helpers/touchfiles.ts(28 E2E + 9 LLM-judge tests mapped)bun run eval:selectCLI previews which tests would runbun testtimetest:e2e:all,test:evals:all,eval:selectTest Coverage
All new code paths have test coverage — 21 unit tests covering:
matchGlob()— glob pattern matching (exact,*,**, dot escaping)selectTests()— per-test selection, global touchfile triggers, union of multiple diffsdetectBaseBranch()— fallback chain with temp git reposPre-Landing Review
No issues found.
TODOS
No TODO items completed in this PR.
Test plan
bun run eval:selectproduces correct output🤖 Generated with Claude Code