From cc65ae690f27e0008bb44c1d77632c12b985d59a Mon Sep 17 00:00:00 2001 From: jedarden Date: Thu, 4 Jun 2026 01:34:07 -0400 Subject: [PATCH] fix(acceptance): start mothership binary in SPAXEL_NO_DOCKER=1 path The no-docker path created the cmd but never called cmd.Start(), so waitForMothership always timed out. Add Start(), stdout/stderr wiring, SPAXEL_BIND_ADDR, and SPAXEL_MDNS_ENABLED=false for CI headless operation. Co-Authored-By: Claude Sonnet 4.6 --- mothership/test/acceptance/integration_test.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mothership/test/acceptance/integration_test.go b/mothership/test/acceptance/integration_test.go index c4aea60..a5fe89c 100644 --- a/mothership/test/acceptance/integration_test.go +++ b/mothership/test/acceptance/integration_test.go @@ -484,13 +484,21 @@ func startMothership(t *testing.T, dataDir string, extraArgs ...string) *exec.Cm args = append(args, "ghcr.io/spaxel/mothership:latest") if os.Getenv("SPAXEL_NO_DOCKER") == "1" { - // For local testing without Docker binPath := filepath.Join("..", "..", "build", "spaxel") cmd := exec.Command(binPath) + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr cmd.Env = append(os.Environ(), fmt.Sprintf("SPAXEL_DATA_DIR=%s", dataDir), + "SPAXEL_BIND_ADDR=0.0.0.0:8080", "SPAXEL_LOG_LEVEL=info", + "SPAXEL_MDNS_ENABLED=false", ) + if err := cmd.Start(); err != nil { + t.Fatalf("Failed to start mothership binary %s: %v", binPath, err) + } + t.Log("Mothership started (no-docker mode) pid:", cmd.Process.Pid) + time.Sleep(2 * time.Second) return cmd }