diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2021-05-20 11:14:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 11:14:30 +0200 |
commit | f144f6faa9e71d859a91aa86f9c7543d203904d4 (patch) | |
tree | 6d00f0a3abccb2869c7ac50394aee360a36f534a /.github/workflows | |
parent | nspawn: fix build failure (diff) | |
parent | ci: skip root tty login (diff) | |
download | systemd-f144f6faa9e71d859a91aa86f9c7543d203904d4.tar.xz systemd-f144f6faa9e71d859a91aa86f9c7543d203904d4.zip |
Merge pull request #19669 from mrc0mmand/ci-mkosi-arch
ci: work around #19442 to make CI happy again
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/mkosi.yml | 11 | ||||
-rwxr-xr-x | .github/workflows/test_mkosi_boot.py | 3 |
2 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index c7508a5bd9..d6b0566605 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -48,8 +48,17 @@ jobs: - name: Build ${{ matrix.distro }} run: sudo python3 -m mkosi --password= --qemu-headless build + - name: Show ${{ matrix.distro }} image summary + run: sudo python3 -m mkosi --password= --qemu-headless summary + + # 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 diff --git a/.github/workflows/test_mkosi_boot.py b/.github/workflows/test_mkosi_boot.py index 37904eb059..3418fd3a51 100755 --- a/.github/workflows/test_mkosi_boot.py +++ b/.github/workflows/test_mkosi_boot.py @@ -8,9 +8,6 @@ import sys def run() -> None: p = pexpect.spawnu(" ".join(sys.argv[1:]), logfile=sys.stdout, timeout=300) - p.expect("login:") - p.sendline("root") - p.expect("#") p.sendline("systemctl poweroff") |