From 0e444c948e7d8ddbdec83116b68af7d876e2d2f6 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 9 Jan 2025 15:13:18 +0100 Subject: [PATCH 1/3] fmf: Move meson logs and failed test journals to test artifacts dir --- test/fmf/integration-tests/test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/fmf/integration-tests/test.sh b/test/fmf/integration-tests/test.sh index d2c9dbfb89..783737e8ee 100755 --- a/test/fmf/integration-tests/test.sh +++ b/test/fmf/integration-tests/test.sh @@ -132,6 +132,11 @@ mkosi -f sandbox \ --suite integration-tests \ --print-errorlogs \ --no-stdsplit \ - --num-processes "$NPROC" + --num-processes "$NPROC" && EC=0 || EC=$? + +find build/meson-logs -type f -exec mv {} "$TMT_TEST_DATA" \; +find build/test/journal -type f -exec mv {} "$TMT_TEST_DATA" \; popd + +exit "$EC" From 6e761c5a93278fc719a66f7c984af9608b836991 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 9 Jan 2025 15:24:51 +0100 Subject: [PATCH 2/3] fmf: Log clock source --- test/fmf/integration-tests/test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/fmf/integration-tests/test.sh b/test/fmf/integration-tests/test.sh index 783737e8ee..9ba1990b21 100755 --- a/test/fmf/integration-tests/test.sh +++ b/test/fmf/integration-tests/test.sh @@ -11,6 +11,8 @@ echo "CPU and Memory information:" lscpu lsmem +echo "Clock source: $(cat /sys/devices/system/clocksource/clocksource0/current_clocksource)" + # Allow running the integration tests downstream in dist-git with something like # the following snippet which makes the dist-git sources available in $TMT_SOURCE_DIR: # From 8965d57f4b03dd8979f84f555836287f380e9e29 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 9 Jan 2025 15:45:41 +0100 Subject: [PATCH 3/3] fmf: Use one fewer than number of available CPUs again This effectively reverts b8582198ca1e6fe390f7169e623a9130b68a6b36 as I can not get the testing farm bare metal machines working downstream and even if I managed to, without also using the testing farm bare metal machines upstream (for which there is no capacity), the setup would very quickly bitrot anyway so we'll just run the container based tests for now. --- test/fmf/integration-tests/test.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/fmf/integration-tests/test.sh b/test/fmf/integration-tests/test.sh index 9ba1990b21..d1e43b1d7d 100755 --- a/test/fmf/integration-tests/test.sh +++ b/test/fmf/integration-tests/test.sh @@ -112,13 +112,6 @@ if [[ ! -e /dev/kvm ]]; then export TEST_NO_QEMU=1 fi -NPROC=$(nproc) -if [[ $NPROC -ge 10 ]]; then - NPROC=$((NPROC / 2)) -else - NPROC=$((NPROC - 1)) -fi - # Create missing mountpoint for mkosi sandbox. mkdir -p /etc/pacman.d/gnupg @@ -134,7 +127,7 @@ mkosi -f sandbox \ --suite integration-tests \ --print-errorlogs \ --no-stdsplit \ - --num-processes "$NPROC" && EC=0 || EC=$? + --num-processes "$(($(nproc) - 1))" && EC=0 || EC=$? find build/meson-logs -type f -exec mv {} "$TMT_TEST_DATA" \; find build/test/journal -type f -exec mv {} "$TMT_TEST_DATA" \;