From 149b2c0782ef30808341e7a90dd6060828147637 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Tue, 6 Oct 2026 06:55:28 +0200 Subject: [PATCH] the README's scratch-image claim becomes a runner measurement, not a promise 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. --- README.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7eebed6..9f385cb 100644 --- a/README.md +++ b/README.md @@ -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