From 51345379d2951713e5a8f569da0aeef0bc529dcb Mon Sep 17 00:00:00 2001 From: Hweinstock Date: Tue, 22 Sep 2026 21:43:54 +0000 Subject: [PATCH 1/2] chore(e2e): add logs to determine source of failure --- e2eTest/project/templates.test.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/e2eTest/project/templates.test.ts b/e2eTest/project/templates.test.ts index d67e75170..d31e37cd9 100644 --- a/e2eTest/project/templates.test.ts +++ b/e2eTest/project/templates.test.ts @@ -241,12 +241,21 @@ describe( // the server may take a bit to get ready, so we retry on a timeout. const response = await retry(async () => { - if (!dev) throw new Error("project dev did not start."); - if (dev.exitCode !== null) - throw new Error(`project dev exited with code ${dev.exitCode ?? "unknown"}.`); + if (!dev) { + throw new Error(`project dev did not start. \nstdout/stdout = ${pendingOutput}`); + } + if (dev.exitCode !== null) { + throw new Error( + `project dev exited with code ${dev.exitCode ?? "unknown"}. \nstdout/stdout = ${pendingOutput}`, + ); + } const port = runtimePorts.get(runtime.name); - if (!port) throw new Error(`Runtime '${runtime.name}' is not ready.`); + if (!port) { + throw new Error( + `Runtime '${runtime.name}' is not ready. \nstdout/stdout = ${pendingOutput}`, + ); + } return parseResult( LocalRuntimeInvokeResponseSchema, From 84d7c2b5e2800140cc763cfac2454efb328cd280 Mon Sep 17 00:00:00 2001 From: Hweinstock Date: Tue, 22 Sep 2026 22:37:37 +0000 Subject: [PATCH 2/2] fix(e2e): ensure thrown error is the one shown --- e2eTest/project/templates.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2eTest/project/templates.test.ts b/e2eTest/project/templates.test.ts index d31e37cd9..afa47b9a7 100644 --- a/e2eTest/project/templates.test.ts +++ b/e2eTest/project/templates.test.ts @@ -279,7 +279,7 @@ describe( projectDir, ), ); - }, TIMEOUT_MS.PROJECT_INVOKE); + }, TIMEOUT_MS.PROJECT_INVOKE * 0.9); expect(response.complete).toBe(true); if (runtime.protocol === "MCP" || runtime.protocol === "A2A") {