Skip to content
Open

test #10

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions packages/k8s/src/k8s/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,7 @@ export async function execCpToPod(
}
}

let attempts = 15
const delay = 1000
let attempts = 1
for (let i = 0; i < attempts; i++) {
try {
const want = await localCalculateOutputHashSorted([
Expand All @@ -457,14 +456,12 @@ export async function execCpToPod(
core.debug(
`The hash of the directory does not match the expected value; want='${want}' got='${got}'`
)
await sleep(delay)
continue
}

break
} catch (error) {
core.debug(`Attempt ${i + 1} failed: ${error}`)
await sleep(delay)
}
}
}
Expand Down Expand Up @@ -534,8 +531,7 @@ export async function execCpFromPod(
}
}

let attempts = 15
const delay = 1000
let attempts = 1
for (let i = 0; i < attempts; i++) {
try {
const want = await execCalculateOutputHashSorted(
Expand All @@ -554,14 +550,12 @@ export async function execCpFromPod(
core.debug(
`The hash of the directory does not match the expected value; want='${want}' got='${got}'`
)
await sleep(delay)
continue
}

break
} catch (error) {
core.debug(`Attempt ${i + 1} failed: ${error}`)
await sleep(delay)
}
}
}
Expand Down