The console gate has a Linux number now, in a real Chromium

The rehearsal covered the dotnet suites, smoke.sh and compose-smoke.sh, and
then printed "console gate: not covered here (needs a real Chromium)". That was
the one honest line in the summary, and it was also the last hole: the console
job in `.github/workflows/ci.yml` runs on ubuntu-latest, so its gate was
verified only on darwin.

`scripts/ci-linux-rehearsal.sh console` closes it. `scripts/console-smoke.sh`
grew `SEED_ONLY=1` (start the stack, seed the streaks/bans/allow entries the
page must show, then stop before driving the page) and an `EDGE` override, so
the seeding half runs in `docker:cli` against the host daemon and the browser
half runs in `mcr.microsoft.com/playwright:v1.63.0-noble` — the Playwright
version pinned there is the version the CI console job pins, or the rehearsal
is rehearsing something else. The stack is torn down either way.

Two facts about that image, both now comments in the script:

- It ships the browsers (`/ms-playwright`: chromium-1243) but **not** the npm
  package — there is no playwright-core anywhere in it. So the stage installs
  `playwright@1.63.0` into `/tmp` and points `PLAYWRIGHT_CORE` at
  `/tmp/node_modules/playwright-core`.
- The repo is mounted read-only for this stage. Writable, the install would
  have dropped `node_modules` into the working tree of the checkout.

The summary line also stopped lying by accident: `verdict()` now separates a
stage the caller never asked for ("not run") from a stage that could not run
("skipped (no docker socket)"), and the exit code includes the console stage.

Two full rehearsals on this tree, one invocation each, both EXIT=0:

    source gates (restore/build/unit/integration/smoke): PASS   54/54, 28/28, 19/19
    compose gate: PASS                                          27 passed, 0 failed
    console gate: PASS                                          26 assertions, 0 failed
    wall: 2:14.33 (cold containers, cold NuGet cache)

72 assertions pass from inside Linux, and the console half includes the
round-trip a page cannot fake: a ban drawn on the page answers 301 on the next
request from that address, and the address passes again once the row is
deleted. actionlint 1.7.12 (same pinned checksum as CI): 0 problems. shellcheck
and `bash -n` clean.

Still true: none of this has executed on a runner, because the repository has
no remote. The Linux numbers narrow what a first run can discover; they do not
replace one.
This commit is contained in:
Pavlo Ratushnyi
2026-10-01 15:50:51 +02:00
parent c290aa06f6
commit e02e442ae2
4 changed files with 126 additions and 25 deletions
+5 -3
View File
@@ -19,9 +19,11 @@
# — 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.
# Linux. Console gate in mcr.microsoft.com/playwright:v1.63.0-noble — the stack
# seeded by docker:cli, the same console-check.cjs driving it in a real Linux
# Chromium: 26/26. So every gate this file runs now has a Linux number. What it
# does not have is a runner: the repository has no remote, so this file has
# never executed on GitHub.
name: ci