Repository navigation
fix(npm): report why the native binary failed to launch - #211
Merged
Merged
Conversation
The npm launcher discarded spawnSync's error, so a non-executable or uninterpretable native binary exited 1 with empty stderr. Print the launch error, which names the executable path and OS error code. Stdio, environment, arguments and exit status forwarding are unchanged. Add scripts/npm-launcher.test.mjs (missing binary, arguments with spaces and env/status forwarding, EACCES, missing interpreter) and an npm-launcher-tests workflow. Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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
The npm
coven-codelauncher now prints why the native binary failed to start, instead of exiting 1 silently.Context
npm/bin/coven-codeplus a fixture test and workflow.Changes
spawnSyncreturns anerror, printcoven-code: failed to launch native binary: <message>(4 lines). The message carries the executable path and the OS error code. Inherited stdio and environment, argument forwarding, child exit status and the existing missing-binary message are unchanged.scripts/npm-launcher.test.mjsuses temporary executable fixtures: a missing binary, an argument with spaces plus environment forwarding and exit status 7, a non-executable binary (EACCES), and a missing interpreter (ENOENT)..github/workflows/npm-launcher-tests.yml: Linux and macOS, read-only, PR and manual dispatch.Validation
node scripts/npm-launcher.test.mjs: exit 0 on this branch (current main).node --check npm/bin/coven-code,actionlint .github/workflows/npm-launcher-tests.yml,git diff --check: pass.PR Readiness