the README's scratch-image claim becomes a runner measurement, not a promise
ci / lint the workflow and the shell (push) Successful in 11s
ci / build, test, smoke (push) Successful in 2m18s
ci / the operator page in a real browser (push) Successful in 2m25s
ci / build the image and smoke it (push) Successful in 3m57s
ci / the same smoke on an image with no base (push) Successful in 3m55s

Gitea Actions run 2476 (head be6c608) built the scratch image on the x86-64
runner: RID linux-x64, loader line 1, 12 shared objects and 19.9 MB of them,
scratch 218 MB against chiseled 258 MB, and the same curl suite answering
368 passed, 0 failed. The arm64 numbers stay, so the two architectures can be
compared rather than one extrapolated to the other.

The same run is the first green source job since 7c5e1ef: the schema-script gate
now restores dotnet/dotnet-tools.json by path and reports "ok, the committed
schema script is what the current model generates (5652 bytes)" on the runner
instead of exiting 2.
This commit is contained in:
Pavlo Ratushnyi
2026-10-06 06:55:28 +02:00
parent be6c608ada
commit 149b2c0782
+12 -7
View File
@@ -342,11 +342,14 @@ the shared objects itself: the ones `ldd` reports, the dynamic loader (the kerne
looks for it at the path recorded inside the binary, so it has to land at exactly
that path), the NSS modules `getaddrinfo` dlopen()s, OpenSSL, and the CA bundle.
Measured on this tree on 2026-10-06, one host, arm64: chiseled **262 MB**,
scratch **222 MB**, of which 12 shared objects and a CA bundle make **18.7 MB**.
`scripts/compose-smoke.sh` runs unchanged against either one — the only change is
the `docker-compose.scratch.yml` override — and both answer **368 passed,
0 failed**.
Measured twice, on 2026-10-06. On one arm64 host: chiseled **262 MB**, scratch
**222 MB**, of which 12 shared objects and a CA bundle make **18.7 MB**. On the
x86-64 runner, where the production architecture is the one that matters (Gitea
Actions run 2476, head `be6c608`, the `scratch-image` job): RID `linux-x64`, the
same **12** shared objects and **19.9 MB**, scratch **218 MB** against chiseled
**258 MB**. `scripts/compose-smoke.sh` runs unchanged against either image — the
only change is the `docker-compose.scratch.yml` override — and it answered
**368 passed, 0 failed** on both architectures.
The assertions are the reason the second Dockerfile is worth having, and the
first scratch image built here is the reason they were needed: it started, its
@@ -365,8 +368,10 @@ scripts/ci-gates.sh scratch-image # build it, print both images' sizes
scripts/ci-gates.sh scratch-smoke # the 368, against it
```
Not measured here: the linux-x86-64 scratch image. The `scratch-image` CI job
builds it on the runner, and that run is where the amd64 number will come from.
What is still not measured: a NativeAOT build of this edge that serves traffic.
The NativeAOT entry in `docs/ARCHITECTURE.md` says what EF 10.0.12's precompiler
refuses and what it emits when it does not — the static-binary shape is blocked
there, not in the Dockerfile.
## Schema