fix: use Stdio::inherit for run_tests to prevent pipe deadlock
spawn() with piped stdout/stderr deadlocks when the test binary produces more output than the OS pipe buffer (64KB). Switch to Stdio::inherit so test output flows to server logs and we can see what's happening. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -411,8 +411,8 @@ pub(super) async fn tool_run_tests(args: &Value, ctx: &AppContext) -> Result<Str
|
|||||||
let child = std::process::Command::new("bash")
|
let child = std::process::Command::new("bash")
|
||||||
.arg(&script_path)
|
.arg(&script_path)
|
||||||
.current_dir(&working_dir)
|
.current_dir(&working_dir)
|
||||||
.stdout(std::process::Stdio::piped())
|
.stdout(std::process::Stdio::inherit())
|
||||||
.stderr(std::process::Stdio::piped())
|
.stderr(std::process::Stdio::inherit())
|
||||||
.spawn()
|
.spawn()
|
||||||
.map_err(|e| format!("Failed to spawn test script: {e}"))?;
|
.map_err(|e| format!("Failed to spawn test script: {e}"))?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user