From d53abd2f2fe08ee8bca6422b5e508eba2d8d8034 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Jun 2026 21:32:05 +0000 Subject: [PATCH 1/2] Initial plan From dde2f7fcab4392b9fc2e73eb33bf7464b2014e87 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Jun 2026 21:33:49 +0000 Subject: [PATCH 2/2] Fix misleading error messages in run-container-step.ts - Rename debug message from 'createJob failed' to 'createContainerStepPod failed' - Update thrown error messages from 'failed to run script step' to 'failed to run container step' in both catch blocks --- packages/k8s/src/hooks/run-container-step.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/k8s/src/hooks/run-container-step.ts b/packages/k8s/src/hooks/run-container-step.ts index 1786a38a..602d80a7 100644 --- a/packages/k8s/src/hooks/run-container-step.ts +++ b/packages/k8s/src/hooks/run-container-step.ts @@ -54,9 +54,9 @@ export async function runContainerStep( try { pod = await createContainerStepPod(getStepPodName(), container, extension) } catch (err) { - core.debug(`createJob failed: ${JSON.stringify(err)}`) + core.debug(`createContainerStepPod failed: ${JSON.stringify(err)}`) const message = (err as any)?.response?.body?.message || err - throw new Error(`failed to run script step: ${message}`) + throw new Error(`failed to run container step: ${message}`) } if (!pod.metadata?.name) { @@ -111,7 +111,7 @@ export async function runContainerStep( } catch (err) { core.debug(`execPodStep failed: ${JSON.stringify(err)}`) const message = (err as any)?.response?.body?.message || err - throw new Error(`failed to run script step: ${message}`) + throw new Error(`failed to run container step: ${message}`) } finally { fs.rmSync(runnerPath, { force: true }) }