Skip to content

test: e2e smoke tests against a live containerd (2.3 + 2.4, amd64 + arm64) - #13

Merged
atmask merged 1 commit into
mainfrom
test/e2e-smoke
Nov 23, 2026
Merged

atmask merged 1 commit into
mainfrom
test/e2e-smoke

Conversation

@atmask

@atmask atmask commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Why

Nothing tested the shim against a real containerd daemon. The containerd 2.4 upgrade (#11) was only build-checked until I tested it by hand on the NixOS UTM VM. This PR automates those manual checks.

What

scripts/e2e.sh runs these checks against a live containerd:

Check What it proves
nixpkgs#hello one-shot The full flake path works: Nix build, rootfs, run, exit
Container without a containix label Unlabelled containers still go straight to runc
Nonexistent flake Fails cleanly with a nix build error and leaves nothing behind
nixpkgs#redis run -d → exec PING → SIGTERM → delete The full lifecycle of a long-running task
Leftovers No containers left behind

just e2e installs the shim and runs the script on the dev VM.

CI job e2e runs the same script on containerd 2.3.7 (the oldest supported line) and 2.4.2 (the version the shim is built against), each on amd64 and arm64. It uses:

  • containerd release tarballs pinned by version and SHA-256;
  • the shim from nix build .#default;
  • runc from the locked nixpkgs;
  • a separate root, state directory and socket, so it doesn't touch the runner's own containerd.

Verified

On the UTM VM (NixOS aarch64, containerd 2.3.0), all 8 checks pass with both the v0.1.0 shim and the current main shim.

Notes

  • Dependabot doesn't track the containerd tarball pins. Update them by hand when the containerd module is bumped.
  • Something these tests uncovered, unrelated to this PR: containix drops ctr run's trailing arguments. bin/sleep with 5 gets no operand on both v0.1.0 and main. This is probably worth its own issue.

scripts/e2e.sh runs the shim through real containerd:
- one-shot flake container (nixpkgs#hello)
- passthrough of an unlabelled container to runc
- clean failure for a nonexistent flake
- long-running lifecycle: run -d, exec, SIGTERM, delete (nixpkgs#redis)
- no leftover containers

`just e2e` runs it on the dev VM. A new CI e2e job runs it on
containerd 2.3.7 (oldest supported line) and 2.4.2 (the library
version), on amd64 and arm64, using checksum-verified release tarballs
and a separate containerd root/state/socket from the runner's own.
@atmask
atmask merged commit 6576c9a into main Nov 23, 2026
10 checks passed
@atmask
atmask deleted the test/e2e-smoke branch November 23, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant