Every gate this workflow runs now has a Linux number except one

`scripts/ci-linux-rehearsal.sh` (added in `42d4af9`) covered the dotnet suites
and `smoke.sh`. The third thing the objective asks CI to run — `scripts/
compose-smoke.sh` — did not have a Linux number, and "we run it on macOS against
a Linux image" is only half a proof: the script itself is the part that could be
a darwin habit.

It now runs in `docker:cli` against the host daemon, so the image build, the
stack and the asserting shell are all Linux. Full rehearsal, one invocation:

    source gates (restore/build/unit/integration/smoke): PASS   54/54, 28/28, 19/19
    compose gate: PASS                                          27 passed, 0 failed
    console gate: not covered here (needs a real Chromium)
    wall: 47.61 s

Getting it green surfaced two facts about the harness, not the product, and both
are now comments in the script where the next person will hit them:

- `compose-smoke.sh` asserts over JSON with **python3** (`jcount`/`jget`) and
  reads the clock with it. A bare container failed **23 of 27** assertions for
  nothing else. The runner image has python3; `docker:cli` does not, so the
  stage installs bash, curl and python3 itself.
- The stack is created by the host daemon, so its published port lives in the
  host's network namespace. Without `EDGE=http://host.docker.internal:8080`,
  every HTTP assertion returns curl code `000` **while the image's own
  HEALTHCHECK reports healthy** — a green stack with red assertions, the most
  confusing failure this gate can produce. The gate already had an `EDGE`
  override; this is what it is for.

The compose stage also printed its own instrumentation again: enforcement lag
**12 ms** between writing a ban and the edge refusing the source — the snapshot
invalidation path, measured on Linux this time.

Still true and still said plainly: none of these jobs has executed on a runner,
because the repository has no remote. The Linux numbers narrow what a first run
could still discover; they do not replace one.
This commit is contained in:
Pavlo Ratushnyi
2026-10-01 15:31:16 +02:00
parent bf1129a8d8
commit c290aa06f6
3 changed files with 146 additions and 68 deletions
+8 -8
View File
@@ -14,14 +14,14 @@
# a single apt-get step; a hung job is worse than a failed one.
#
# What has been done to narrow the darwin/linux gap without a runner:
# scripts/ci-linux-rehearsal.sh runs the source-tree gates (restore, build, unit,
# integration, smoke) inside mcr.microsoft.com/dotnet/sdk:10.0 — Ubuntu 24.04.5,
# SDK 10.0.401 resolving the pinned global.json, 54/54 + 28/28 + 19/19 on
# 2026-10-01, first try, 1:02.81 wall with a cold container and a cold NuGet
# cache — evidence that the 25-minute timeout below is not near. The image and compose
# gates already run a Linux image;
# the console gate needs a Chromium and stays macOS-verified until this file
# actually executes.
# scripts/ci-linux-rehearsal.sh runs the gates in containers. Source gates
# (restore, build, unit, integration, smoke) in mcr.microsoft.com/dotnet/sdk:10.0
# — Ubuntu 24.04.5, SDK 10.0.401 resolving the pinned global.json, 54/54 + 28/28
# + 19/19, first try, 1:02.81 wall cold: evidence that the 25-minute timeout
# below is not near. Compose gate in docker:cli against the host daemon: 27/27 on
# Linux. So every gate this file runs except the console one now has a Linux
# number; the console gate needs a Chromium and stays macOS-verified until this
# file actually executes.
name: ci