From d6c7a8c47e0385247a8245e843fcf7f5e0c7d4d3 Mon Sep 17 00:00:00 2001 From: Chad Smith Date: Wed, 25 Mar 2026 09:19:39 -0600 Subject: [PATCH] ci: fix integration test CLOUD_INIT_LOCAL_LOG_PATH. drop hashFiles hashFiles OOMs github actions while attempting to md5sum large sets files under cloudinit_logs. Use `if-no-files-found: ignore` in upload-artifact to avoid errors in absence of cloudinit_logs due to unexpected errors which prevent writing integration test logs. --- .github/workflows/24-pr-integration.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/24-pr-integration.yml b/.github/workflows/24-pr-integration.yml index fda996dd63e..9c1c40e8cf0 100644 --- a/.github/workflows/24-pr-integration.yml +++ b/.github/workflows/24-pr-integration.yml @@ -67,11 +67,12 @@ jobs: echo "[lxd]" > /home/$USER/.config/pycloudlib.toml - name: Run integration Tests run: | - CLOUD_INIT_CLOUD_INIT_SOURCE="$(ls ${{ runner.temp }}/cloud-init-base*.deb)" CLOUD_INIT_OS_IMAGE=${{ env.RELEASE }} LOCAL_LOG_PATH=./cloudinit_logs tox -e integration-tests-ci -- --color=yes tests/integration_tests/ + CLOUD_INIT_CLOUD_INIT_SOURCE="$(ls ${{ runner.temp }}/cloud-init-base*.deb)" CLOUD_INIT_OS_IMAGE=${{ env.RELEASE }} CLOUD_INIT_LOCAL_LOG_PATH=./cloudinit_logs tox -e integration-tests-ci -- --color=yes tests/integration_tests/ - name: Upload cloudinit logs on failure - if: failure() && hashFiles('./cloudinit_logs/**') != '' + if: failure() uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: 'cloudinit-logs' path: './cloudinit_logs' retention-days: 3 + if-no-files-found: ignore