You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 26ec6fe
Browse filesBrowse the repository at this point in the historyBrowse files
feat(test): add test:changed and make it the local check during implementation
Adds `bun run test:changed`, which runs only the tests whose import graph
touches the diff, and rewrites AGENTS.md, src/AGENTS.md and the eight
contributing guides so the full suite is the PR-ready gate rather than the
routine local one.
`--changed` gets `--pass-with-no-tests` (a graph filter selecting nothing is a
valid answer, not a failure) and must not receive a default `./tests/` path, or
Bun treats the graph filter as unused.
MEASURED CAVEAT, unresolved and worth deciding before this lands: `--changed=dev`
compares against the LOCAL `dev` branch. On this machine that branch sits 296
commits behind upstream, so a 3-file change selected 753 of 902 test files —
13053 tests, 81s. The failure is silent in both directions: a stale `dev`
quietly runs most of the suite, and a diverged one can select too little while
the guides now say the full suite is no longer required for shared routing,
config or server edits. That combination is the risk, not the graph filter
itself, which selects correctly relative to whatever ref it is given.
Left as `dev` deliberately rather than guessing a remote name: `origin` is a fork
here and `upstream` is the real repo, while a direct contributor's layout is the
reverse. Candidate fixes (pin a remote ref, fetch first, warn when the selection
is implausibly large or small) are a repo-convention call.
Stacked on the --parallel fix, which introduces resolveBunTestArgs.
Gate: 14439 pass / 1 fail; that failure also fails on untouched upstream/dev at
this commit. Zero regressions.
0 commit comments