Repository navigation
Commit 47c2b2e
authored
test(integration): cover the premade NixOS base image in the distro matrix (#3498)
Adds the premade NixOS image to `TestTemplateBuildDistroFamilies`, so CI
catches a base image that doesn't boot. The tar-only publish gate in
`nixos-base-image.yml` provably can't: the pre-shim 26.05 image passed
every tar assertion and still froze at boot with no units. The profile
installs nothing, so reaching ready proves exactly the parts that are
ours — the busybox `Bootstrap`, the `/sbin/e2b-nixos-init` shim (#3478),
and the `rm -rf /etc/systemd/system` that lets `setup-etc` take over.
**Immutable tag, never `:latest`** — `phases/base/hash.go` keys the base
layer on `Config.FromImage` as written, so a republished `:latest` would
keep building from the stale cached layer and a failure wouldn't
reproduce.
**Cost, measured on this run.** Lands in `templates-builds-2` (`Distro`
misses `TEMPLATE_BUILDS_SHARD1_RE`). The subtest is **156s** — 515 MB
compressed / 1.05 GiB unpacked, cold pull every time. Package wall 166s
→ 255s, job **5.7 → 7.2 min** against a 30 min cap. It grows the wall by
more than 156/4 because the pull and unpack also slow its three
concurrent neighbours (utilisation 3.7× → 3.0×). That makes shard 2 the
long pole against shard 1's 4m52s; leaving `TEMPLATE_BUILDS_SHARD1_RE`
alone — that 2.3 min gap wants its own measuring run, the way #3479 did
it.
**`compression-tests.tsv`: no change.** The test is already absent; the
documented criterion is reading a snapshot back, and provisioning is
compression-invariant like the other four cases. Entries are per
top-level test anyway, so a subtest couldn't be listed on its own.1 parent 80fe746 commit 47c2b2e
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
46 | 65 | | |
47 | 66 | | |
48 | 67 | | |
| |||
0 commit comments