Skip to content

Commit

Permalink
fix(k8s): handle yet another Pod failure mode (fixes flaky test)
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed Aug 31, 2020
1 parent 6c2c994 commit 0933483
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/plugins/kubernetes/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ export async function runAndCopy({

if (status.state !== "ready") {
const containerStatus = status.resource.status.containerStatuses![0]
const message = containerStatus?.state?.terminated?.message || containerStatus?.state?.waiting?.message

if (containerStatus?.state?.terminated?.message?.includes("not found")) {
if (message?.includes("not found")) {
throw new ConfigurationError(
deline`
${description} specifies artifacts to export, but the image doesn't
Expand Down

0 comments on commit 0933483

Please sign in to comment.