Repository navigation
Give the missing-command test its own PATH - #1514
Merged
Merged
Conversation
The devtools test that spawns a missing command looked it up on the ambient PATH. When a folder on that PATH can't be read (as /usr/local/bin is in some agent shells on this Mac), the OS lookup answers EACCES instead of ENOENT, so the test failed and blocked `bun run ship` and the pre-push checks. It now spawns with PATH set to an empty scratch folder, so the lookup is the same in every shell and on CI. Co-Authored-By: Claude Opus 5.5 <[email protected]>
dylanplayer
force-pushed
the
codevisor/duck
branch
from
November 28, 2026 08:00
0f95659 to
fca3d19
Compare
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.
What
The devtools test that checks
runCommand/captureCommandreject (rather than crash or hang) when a command can't start looked upcodevisor-missing-toolon the machine's own PATH. In agent shells where/usr/local/binis on PATH but unreadable (drwx------ root), the OS command lookup returnsEACCESinstead ofENOENT, so the test failed and blockedbun run shipand the pre-push checks (hit by several agents, most recently on #1513).The test now spawns with
PATHset to an empty scratch folder, so the lookup is deterministic in any shell and on CI. The code under test is unchanged: passing the OS error through is correct.Other tests
Ran the full
turbo run test,dev:scripts:testandrelease:scripts:testwith/usr/local/binon PATH and with it removed. This was the only test whose result changed. The git-hosts CLI tests already isolate lookup with absolute paths and an empty env.Verification
dev-shared-modules.test.ts"cannot start" test passes with:/usr/local/binon it)/usr/local/binremovedchmod 000folder first on PATHThe old unisolated spawn gets
EACCES,ENOENT,EACCESin those same three setups. Full devtools package: 194/194 pass under the ambient PATH.🤖 Generated with Claude Code