mirror of
https://github.com/systemd/systemd.git
synced 2025-03-14 04:58:28 +03:00
ci: work around #19442 to make CI happy again
Let's introduce a somewhat ugly workaround for #19442 and retry the systemd-nspawn image boot test up to three times in case it dies with the dissect timeout. Since this issue occurs only in the Arch job, limit the workaround to this job only.
This commit is contained in:
parent
31db4c20ea
commit
48a3cf58d5
8
.github/workflows/mkosi.yml
vendored
8
.github/workflows/mkosi.yml
vendored
@ -48,8 +48,14 @@ jobs:
|
||||
- name: Build ${{ matrix.distro }}
|
||||
run: sudo python3 -m mkosi --password= --qemu-headless build
|
||||
|
||||
# Ugly workaround for systemd/systemd#19442 where systemd-nspawn
|
||||
# occasionally fails with 'Failed to dissect image xxx: Connection timed out
|
||||
- name: Retry the build if necessary
|
||||
if: ${{ matrix.distro == 'arch' }}
|
||||
run: echo "BUILD_RETRY_MAX=3" >> $GITHUB_ENV
|
||||
|
||||
- name: Boot ${{ matrix.distro }} systemd-nspawn
|
||||
run: sudo ./.github/workflows/test_mkosi_boot.py python3 -m mkosi --password= --qemu-headless boot
|
||||
run: sudo -E bash +e -x -c 'for _ in $(seq 1 ${BUILD_RETRY_MAX:-1}); do ./.github/workflows/test_mkosi_boot.py python3 -m mkosi --password= --qemu-headless boot && break; done'
|
||||
|
||||
- name: Boot ${{ matrix.distro }} QEMU
|
||||
run: sudo ./.github/workflows/test_mkosi_boot.py python3 -m mkosi --password= --qemu-headless qemu
|
||||
|
Loading…
x
Reference in New Issue
Block a user