Skip to content

Commit

Permalink
ci/prow-entrypoint: put kola logs in ARTIFACT_DIR
Browse files Browse the repository at this point in the history
Right now, we're not getting any logs from the kola tests which makes it
extremely hard to debug test failures.

The `cosa kola` wrapper has knowledge of `ARTIFACT_DIR` too, but since
we're running kola multiple times, let's just set up the right path with
distinct subdirs per run right here.
  • Loading branch information
jlebon committed Feb 27, 2024
1 parent 843a139 commit 0131937
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ci/prow-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ kola_test_qemu() {
# Skip Secure Boot tests on SCOS for now
# See: https://github.com/openshift/os/issues/1237
if rpm-ostree compose tree --print-only "${manifest}" | jq -r '.packages[]' | grep -q "centos-release"; then
cosa kola --basic-qemu-scenarios
cosa kola --basic-qemu-scenarios --output-dir ${ARTIFACT_DIR:-/tmp}/kola-basic
else
cosa kola --basic-qemu-scenarios --skip-secure-boot
cosa kola --basic-qemu-scenarios --skip-secure-boot --output-dir ${ARTIFACT_DIR:-/tmp}/kola-basic
fi
cosa kola run --parallel 2 --output-dir tmp/kola-all
cosa kola run --parallel 2 --output-dir ${ARTIFACT_DIR:-/tmp}/kola
}

# Build metal, metal4k & live images and run kola tests
Expand All @@ -143,7 +143,7 @@ kola_test_metal() {
cosa compress --artifact=metal --artifact=metal4k

# Run all testiso scenarios on metal artifact
kola testiso -S --output-dir tmp/kola-metal
kola testiso -S --output-dir ${ARTIFACT_DIR:-/tmp}/kola-testiso
}

# Ensure that we can create all platform images for COSA CI
Expand Down

0 comments on commit 0131937

Please sign in to comment.