From 7b22b80e71789a5feb5610b74d239cd29a5aa9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Stolarczuk?= Date: Thu, 28 Nov 2024 12:42:06 +0100 Subject: [PATCH 1/2] [CI] Fix QEMU build on Ubuntu 22.04 ssh may return non-zero code on shutting down the connection. If the VM won't close properly it will fail in next stop of the workflow. --- .github/workflows/reusable_qemu.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable_qemu.yml b/.github/workflows/reusable_qemu.yml index 36c125ea9b..257e90f628 100644 --- a/.github/workflows/reusable_qemu.yml +++ b/.github/workflows/reusable_qemu.yml @@ -124,7 +124,8 @@ jobs: ssh testuser@127.0.0.1 -p 2222 -t "sudo chown -R testuser:users /home/testuser" ssh testuser@127.0.0.1 -p 2222 -t "bash /home/testuser/scripts/qemu/run-build.sh COVERAGE" - ssh testuser@127.0.0.1 -p 2222 -t "sudo shutdown -h now" + # ssh may return non-zero error code on closing the connection in Ubuntu 22.04 + ssh testuser@127.0.0.1 -p 2222 -t "sudo shutdown -h now" || true - name: Run tests in QEMU run: | @@ -143,7 +144,8 @@ jobs: ssh testuser@127.0.0.1 -p 2222 -t "export SHORT_RUN=${SHORT_RUN} OS_FULL_NAME=${{matrix.os}} && /home/testuser/scripts/qemu/run-tests.sh COVERAGE ${config_name}" scp -r -P 2222 testuser@127.0.0.1:/home/testuser/coverage ./ - ssh testuser@127.0.0.1 -p 2222 -t "sudo shutdown -h now" + # ssh may return non-zero error code on closing the connection in Ubuntu 22.04 + ssh testuser@127.0.0.1 -p 2222 -t "sudo shutdown -h now" || true done ls -al ./coverage From 09daa84f74e4076e380e4702d53b0597e6963de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Stolarczuk?= Date: Thu, 28 Nov 2024 12:56:43 +0100 Subject: [PATCH 2/2] [CI] Enable latest Ubuntu in QEMU nightly build This way we could verify the latest packages (e.g. compilers). --- .github/workflows/nightly.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 2c11fcc4b6..281ae00615 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -191,4 +191,6 @@ jobs: uses: ./.github/workflows/reusable_qemu.yml with: short_run: false - os: "['ubuntu-22.04', 'ubuntu-24.04']" + # Beside the 2 LTS Ubuntu, we also test this on the latest Ubuntu - to be updated + # every 6 months, so we verify the latest version of packages (compilers, etc.). + os: "['ubuntu-22.04', 'ubuntu-24.04', 'ubuntu-24.10']"