mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-14 16:46:43 +00:00
Read logs also from failed child (container job/container action) pod (#135)
Co-authored-by: Katarzyna Radkowska <katarzyna.radkowska@sabre.com>
This commit is contained in:
@@ -12,10 +12,10 @@ import {
|
|||||||
} from '../k8s'
|
} from '../k8s'
|
||||||
import {
|
import {
|
||||||
containerVolumes,
|
containerVolumes,
|
||||||
PodPhase,
|
fixArgs,
|
||||||
mergeContainerWithOptions,
|
mergeContainerWithOptions,
|
||||||
readExtensionFromFile,
|
PodPhase,
|
||||||
fixArgs
|
readExtensionFromFile
|
||||||
} from '../k8s/utils'
|
} from '../k8s/utils'
|
||||||
import { JOB_CONTAINER_EXTENSION_NAME, JOB_CONTAINER_NAME } from './constants'
|
import { JOB_CONTAINER_EXTENSION_NAME, JOB_CONTAINER_NAME } from './constants'
|
||||||
|
|
||||||
@@ -65,7 +65,12 @@ export async function runContainerStep(
|
|||||||
|
|
||||||
await waitForPodPhases(
|
await waitForPodPhases(
|
||||||
podName,
|
podName,
|
||||||
new Set([PodPhase.COMPLETED, PodPhase.RUNNING, PodPhase.SUCCEEDED]),
|
new Set([
|
||||||
|
PodPhase.COMPLETED,
|
||||||
|
PodPhase.RUNNING,
|
||||||
|
PodPhase.SUCCEEDED,
|
||||||
|
PodPhase.FAILED
|
||||||
|
]),
|
||||||
new Set([PodPhase.PENDING, PodPhase.UNKNOWN])
|
new Set([PodPhase.PENDING, PodPhase.UNKNOWN])
|
||||||
)
|
)
|
||||||
core.debug('Container step is running or complete, pulling logs')
|
core.debug('Container step is running or complete, pulling logs')
|
||||||
|
|||||||
Reference in New Issue
Block a user