Skip to content

Verify efficiency 3/3: turbo, nx, jest, vitest, pytest, go matchers (#390) - #666

Merged
currentbits merged 1 commit into
coder/verify-scope-core-390from
coder/verify-scope-runners-390
Aug 22, 2026
Merged

currentbits merged 1 commit into
coder/verify-scope-core-390from
coder/verify-scope-runners-390

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Third of three stacked PRs for #390. Based on #665, which is based on #664.

What

The remaining runner matchers for scopeVerifyCommand. The framework, all the bail-out rules and the visibility logging are in 2/3 — this PR only adds match-and-rewrite functions, each of which returns null (leaving the command untouched) when it does not recognise the runner or has nothing to narrow to.

runner rewrite
turbo <cmd> --filter=...[<base>]
nx nx affected -t <target> --base=<base> --head=HEAD, keeping the target from -t / --target and defaulting to test
jest <cmd> --findRelatedTests <changed code files>
vitest <vitest prefix> related <changed code files> --run
pytest <pytest prefix> <changed .py files>, handling both bare pytest and python -m pytest
go go test <dirs of changed .go files>, deduped and sorted

turbo and nx need a base ref and return null without one. The rest need at least one changed file of a type they care about.

Testing

npm run test:electron: 1948 tests, 1 load-dependent flake that is clean on rerun and also present on main (main failed once in two full-suite runs here, on a different test). 0 real failures.

Reviewer note

None of these runners exist in this repo, so they are unexercised outside their unit tests. If you would rather not carry matchers nothing here uses, this is the PR to drop — #664 and #665 stand without it.

Closes #390.

Add the remaining verify-command matchers on top of the node --test
framework. Unknown runners and already-filtered commands stay full-suite.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@currentbits
currentbits merged commit 01a2536 into coder/verify-scope-core-390 Aug 22, 2026
5 of 6 checks passed
currentbits added a commit that referenced this pull request Aug 22, 2026
* feat(verify): affected-scope node --test selection (#390)

Rewrite the verify command to the tests the diff touches when the
runner is node --test. Docs-only diffs skip the suite; lockfiles, --all,
unknown diffs, and compound npm scripts stay full-suite. Wired into
the runner gate and Verify now. Post-merge verify is unchanged.

* feat(verify): affected-scope turbo/nx/jest/vitest/pytest/go (#390) (#666)

Add the remaining verify-command matchers on top of the node --test
framework. Unknown runners and already-filtered commands stay full-suite.

Co-authored-by: Willem <[email protected]>

---------

Co-authored-by: Willem <[email protected]>
currentbits added a commit that referenced this pull request Aug 22, 2026
* feat(verify): share turbo/nx/cargo cache across worktrees (#390)

Point every worktree of a repo at ~/.solenta/build-cache/<repo> so
thread B reuses thread A's task results. Injected into the verify
spawn and every agent CLI. Does not override env the user already set.

* Verify efficiency 2/3: affected-scope verify, node --test (#390) (#665)

* feat(verify): affected-scope node --test selection (#390)

Rewrite the verify command to the tests the diff touches when the
runner is node --test. Docs-only diffs skip the suite; lockfiles, --all,
unknown diffs, and compound npm scripts stay full-suite. Wired into
the runner gate and Verify now. Post-merge verify is unchanged.

* feat(verify): affected-scope turbo/nx/jest/vitest/pytest/go (#390) (#666)

Add the remaining verify-command matchers on top of the node --test
framework. Unknown runners and already-filtered commands stay full-suite.

Co-authored-by: Willem <[email protected]>

---------

Co-authored-by: Willem <[email protected]>

---------

Co-authored-by: Willem <[email protected]>
@currentbits
currentbits deleted the coder/verify-scope-runners-390 branch October 3, 2026 16:07
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