Skip to content

Commit a3b86ee

Browse files
committed
nix: trim the integration test VM toward a tiny profile
Drop doc generation and timesyncd in the check VM — it only needs to boot, run docker, and exec one test binary. Boot is dominated by dockerd init (functional); this shaves the avoidable NixOS userspace. microvm.nix is noted as a larger follow-up since it still needs a full docker daemon + nested KVM.
1 parent 34e821a commit a3b86ee

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

nix/tests/integration.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ in
7474
# /CablePull) and intermittent container-startup flakes. Keep it off them.
7575
networking.dhcpcd.denyInterfaces = [ "veth*" "br-*" "docker*" ];
7676

77+
# Trim the guest toward a tiny profile: this VM only needs to boot, run
78+
# docker, and exec one test binary. Boot is ~20s and dominated by dockerd
79+
# init (functional, can't trim) plus default NixOS userspace; dropping doc
80+
# generation and unused services shaves the avoidable part. (A microvm.nix
81+
# guest would go further but still needs a full docker daemon + nested KVM,
82+
# so it is a larger follow-up than this profile for a small boot win against
83+
# the ~2-3 min image-load + test runtime.)
84+
documentation.enable = false;
85+
services.timesyncd.enable = false;
86+
7787
# Sized for the full version matrix (a test can spawn 12+ tailscale
7888
# containers + headscale + the runner) while still fitting a standard
7989
# 4-core/16 GB GitHub runner. Disk-backed docker (not tmpfs) keeps RAM

0 commit comments

Comments
 (0)