Skip to content

Commit 20d47f4

Browse files
committed
Merge branch 'marc/debian-release-tests' into tmp/e2e-fix-check
2 parents 57ef5a6 + b2e5c21 commit 20d47f4

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

‎.github/workflows/debian-iso-e2e.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ jobs:
2929
run: |
3030
export BASE_OS=debian
3131
export UNATTENDED=true
32-
docker compose up --build
32+
# Retry so a transient mirror outage does not fail the whole E2E run.
33+
for attempt in 1 2 3; do
34+
docker compose up --build --abort-on-container-exit --exit-code-from dappnode_installer && break
35+
[ "${attempt}" -lt 3 ] || exit 1
36+
echo "::warning::ISO build attempt ${attempt} failed; retrying in 30s"
37+
sleep 30
38+
done
3339
ls -lrt images/Dappnode-debian-*.iso
3440
3541
- name: Install QEMU test dependencies

‎.github/workflows/ubuntu-iso-e2e.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ jobs:
2929
run: |
3030
export BASE_OS=ubuntu
3131
export UNATTENDED=true
32-
docker compose up --build
32+
# Retry so a transient mirror outage does not fail the whole E2E run.
33+
for attempt in 1 2 3; do
34+
docker compose up --build --abort-on-container-exit --exit-code-from dappnode_installer && break
35+
[ "${attempt}" -lt 3 ] || exit 1
36+
echo "::warning::ISO build attempt ${attempt} failed; retrying in 30s"
37+
sleep 30
38+
done
3339
ls -lrt images/Dappnode-ubuntu-*.iso
3440
3541
- name: Install QEMU test dependencies

‎test/e2e_iso_install.sh‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,12 @@ run_e2e_iso_install() {
215215
# including replies to ping. User networking needs no root but drops ICMP.
216216
local installer_network_args guest_network_args ssh_host
217217
if [ -n "${tap_iface}" ]; then
218+
# Pin the PCI slot: the USB controller only exists while installing, and
219+
# without a fixed address the NIC name would change after the install
220+
# (enp0s5 -> enp0s4), unlike on real hardware.
218221
installer_network_args=(
219222
-netdev "tap,id=net0,ifname=${tap_iface},script=no,downscript=no"
220-
-device "virtio-net-pci,netdev=net0,mac=${guest_mac}"
223+
-device "virtio-net-pci,netdev=net0,mac=${guest_mac},addr=0x10"
221224
)
222225
guest_network_args=("${installer_network_args[@]}")
223226
ssh_host=${guest_ip}

0 commit comments

Comments
 (0)