fix: stop orphaned QA gateway children

This commit is contained in:
Peter Steinberger
2026-05-02 11:14:50 +01:00
parent 7686136419
commit aebac43d97
6 changed files with 151 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ describe("buildQaRuntimeEnv", () => {
});
expect(env.OPENCLAW_TEST_FAST).toBe("1");
expect(env.OPENCLAW_QA_PARENT_PID).toBe(String(process.pid));
expect(env.OPENCLAW_QA_ALLOW_LOCAL_IMAGE_PROVIDER).toBe("1");
expect(env.OPENCLAW_ALLOW_SLOW_REPLY_TESTS).toBe("1");
expect(env.OPENCLAW_SKIP_STARTUP_MODEL_PREWARM).toBe("1");

View File

@@ -216,6 +216,7 @@ export function buildQaRuntimeEnv(params: {
OPENCLAW_SKIP_STARTUP_MODEL_PREWARM: "1",
OPENCLAW_NO_RESPAWN: "1",
OPENCLAW_TEST_FAST: "1",
OPENCLAW_QA_PARENT_PID: String(process.pid),
OPENCLAW_QA_ALLOW_LOCAL_IMAGE_PROVIDER: "1",
// QA uses the fast runtime envelope for speed, but it still exercises
// normal config-driven heartbeats and runtime config writes.