From 013193796141896452d66b8678a92b23d5452083 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 27 Feb 2024 11:53:57 -0500 Subject: [PATCH] ci/prow-entrypoint: put kola logs in ARTIFACT_DIR 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. --- ci/prow-entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/prow-entrypoint.sh b/ci/prow-entrypoint.sh index c278205d..b4910b92 100755 --- a/ci/prow-entrypoint.sh +++ b/ci/prow-entrypoint.sh @@ -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 @@ -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