Repository navigation
docs(agents): tell agents to run tests through bun run test - #219
Closed
TornquistK wants to merge 1 commit into
Closed
TornquistK wants to merge 1 commit into
TornquistK wants to merge 1 commit into
Conversation
Plain bun test fails in the isolated-HOME preload. A preload cannot forward the run: it sees only the first test file, and with --parallel it runs in each worker. Agents now read the command before their first test run.
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
Agents run plain
bun testfirst, hit the isolated-HOME refusal, and retry withbun run test. A checked-in instruction tells them the command up front.Why not make
bun testforward totest/run-isolated.tsinstead (probed with Bun 1.4.4):run-isolated.tswith the original argumentsprocess.argvis[bun, <first test file>]:-t, other files and flags are lost--parallelHOMEin-processos.homedir()andBun.spawnchildren keep the real HOMEEvidence
packages/mate-core,bun test src/lib/update-checker.test.ts→error: tests must run with an isolated HOME: use \bun run test` …`bun run test -- src/lib/update-checker.test.ts→ 42 tests, 0 fail.bun run test -- <path>passes the path to every package (scripts/test/run-packages.ts), so the line says to run one file in its package.AGENTS.mdorCLAUDE.mdin this repository.Merge Danger
Door: two-way
Two new instruction files; no code, test or script change. A revert deletes them.
Blast Radius: narrow
Every agent session in a mate-cli checkout loads the line. A contributor with an untracked local
AGENTS.mdorCLAUDE.mdgets a "would be overwritten" error on pull until they move it.