Repository navigation
Run the ISO end-to-end tests on the archive-1 runners - #740
Merged
Merged
Conversation
The Debian and Ubuntu unattended ISO tests run on the runner named by the ISO_E2E_RUNNER repository variable, or on ubuntu-latest while it is unset. Pull requests from forks always stay on ubuntu-latest. A self-hosted host is reused between runs, so each job now: - uses its own TAP interface, subnet and MAC, so both can run on one host; - clears a leftover guest network before creating its own, and removes it and the build output afterwards; - takes back root-owned files a cancelled run left in the workspace. Removing the network also stops a dnsmasq whose pid file was lost. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each ISO job gets its own Compose project, so the Debian and Ubuntu jobs cannot share or remove each other's installer container on one Docker host, and removes its installer container, network and image when it finishes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guest network, QEMU and the test now run inside one Docker container per job, through test/e2e_in_docker.sh. The container is its own network namespace, so the TAP interface, NAT rules and dnsmasq keep fixed names and addresses, never clash with a parallel job on the same host, and go away with the container. The runner needs only Docker and /dev/kvm: no sudo, no apt, and no per-workflow interfaces, subnets or MACs.
This was referenced Nov 19, 2026
A cancelled job can be killed before test/e2e_in_docker.sh runs its own trap, which leaves the test container holding KVM for up to 85 minutes. The container now carries a label for its run, and the always() cleanup step removes it with test/e2e_in_docker.sh --remove. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run the ISO end-to-end tests in their own container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Debian and Ubuntu unattended ISO tests now run on our
archive-1org runners (archive-org-2,archive-org-3) instead ofubuntu-latest. This works towards the decision of 14 October to move the installer repo's Actions minutes off GitHub. Pull requests from forks stay onubuntu-latest.Why more than a
runs-onchangeA GitHub-hosted runner is thrown away after each job; ours are not, and both of them run on the same host. Each test creates a TAP interface, iptables NAT rules and a dnsmasq, and the ISO build leaves root-owned files in the workspace. So:
test/e2e_in_docker.shand the image intest/e2e.Dockerfile. The container is its own network namespace, so every job keeps the fixeddne2e0/192.168.77.0/24, and parallel jobs on one host never clash. The TAP interface, NAT rules and dnsmasq go away with the container.dappnode-iso-<run_id>-<attempt>. When it finishes, it removes its installer container, network and image.docker runrather thansudo.test/e2e_in_docker.sh --removedeletes it in case the job was killed before the script could.test/e2e_network.shskips theip_forwardsysctl when it is already on, because a container's/proc/sysis read-only. Itsdownalso stops a dnsmasq whose pid file was lost.What the runner needs
/dev/kvm. Without it the install falls back to TCG emulation and runs past the 90-minute timeout. The job warns when KVM is missing.The runner needs no
sudoand no packages besides Docker, though access to Docker is root-equivalent on the host.How it was tested
archive-1, both ondne2e0, both with KVM, and both passed.test/e2e_in_docker.sh --removethen deleted it.timezone:key on the schedule, which is already on master and works.test/e2e_in_docker.shandtest/e2e_network.sh: clean.ubuntu-latest, which only fork pull requests use.🤖 Generated with Claude Code