Skip to content

Commit 4e410a2

Browse files
authored
ci: fix integration test CLOUD_INIT_LOCAL_LOG_PATH. drop hashFiles (#6804)
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.
1 parent a5f6267 commit 4e410a2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/24-pr-integration.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ jobs:
6767
echo "[lxd]" > /home/$USER/.config/pycloudlib.toml
6868
- name: Run integration Tests
6969
run: |
70-
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/
70+
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/
7171
- name: Upload cloudinit logs on failure
72-
if: failure() && hashFiles('./cloudinit_logs/**') != ''
72+
if: failure()
7373
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7474
with:
7575
name: 'cloudinit-logs'
7676
path: './cloudinit_logs'
7777
retention-days: 3
78+
if-no-files-found: ignore

0 commit comments

Comments
 (0)