jcp-gateway: the stdio tests' awk server answers on any awk #234
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/gateway-test-server-any-awk"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
jcp-gateway'stests/stdio_binary.rsdrives the real gateway binary in front of an awk MCP server. The tests passed in CI's Linux image and on macOS.On a host whose awk is mawk, the default on Debian and Ubuntu, both tests failed at their 120 s deadline. mawk buffers piped input in blocks, so the server never saw the
initializerequest until the pipe closed, and the gateway, correctly, waited for its reply. This was found running the jcp-rs leg directly on jetson-hub's host, where/usr/bin/awkis mawk 1.3.4.What
A test-only change. A small
awk_server(script)asks the awk what it is (awk -W version):-W interactive, which reads the pipe a line at a time;Both tests build their server command through it.
Evidence
🤖 Generated with Claude Code