Repository navigation
ci: run a stdio smoke test in pr-check - #32
Open
jinho-yeom wants to merge 5 commits into
Open
jinho-yeom wants to merge 5 commits into
jinho-yeom wants to merge 5 commits into
Conversation
searchRegistryItems was removed in #26.
A server that crashed at startup left the requests pending, so the test waited 15 s and reported no response. Listen for the child exit and report the exit code.
A stray console.log in the server breaks MCP stdio clients. The test failed on it with a raw SyntaxError stack. Report the offending line.
pr-check only installed and built, so a server that builds but fails to start or drops a tool passed.
Member
Author
|
@dillionverma Re-adding the smoke test from #18 in #32, since pr-check only runs tsc and I'm changing src a lot for 3.0.0. |
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.
Why
pr-checkonly installs and builds, so a server that crashes on startup or drops a tool still passes. #18 was merged with "stdio smoke test" in its title, but the test was dropped before merge.What
scripts/smoke-test.mjsfrom the first commit of ci: pin pnpm and add PR check with stdio smoke test #18. It spawnsdist/server.js, sendsinitializeandtools/list, and expects exactlygetRegistryItemandlistRegistryItems.pr-checkafterpnpm build.Notes
EXPECTED_TOOLS.srcor the published package.Verified
Local with pnpm 9.15.9: passes in under 1 s. Early exit, non-JSON stdout, and no reply each fail with their own message.