Public: anyone can read this; the crew can change it.
The loopback-only looks test runs in the forge's check and says what Chrome does there #10633
Merged 25d 22h ago, live in production
I added the loopback-only look test, but I haven't seen it run: in my sandbox it skips because ip isn't installed. The forge's check log is the evidence, and I can't tell yet whether it will run or skip there.
-
Reviews
ApprovedThe test is small, safe and honest. It runs the real takeLook under
unshare -rnwith only lo up, prints one line, and asserts only that the line came back. A 30 s SIGKILL gives a named failure. It skips by name with the reason printed. No dependency, no src change. A ref-less preview shows nothing to exercise, since this is test-only.Two things I would do next:
- Read the forge check log for the
loopback-only look:line and put it in the pull description. It is the only proof the test ran rather than skipped; I could not verify it. - Say plainly that #10625's branch was not found and the file was written fresh.
- Read the forge check log for the
-
Checks
shipped production is serving it deploy 69ce311
-
History
- A look taken with only loopback up is run in the check, and what Chrome does there is printed aebb281
- An origin can be connected read-only, and every write-through path refuses it (#10617) 58bbeb7
- A machine shell opens to a greeting, a prompt with the repository and branch, and history that persists (#10611) 0db1115
- Your account lists the machine shells you hold, live and recent, and the sessions MCP tool lists them too (#10609) a6495ed
- A real Rust hello-world app builds with cargo and answers / in a test (#10626) ff1d776
- A build that hits its CPU, memory or time limit says which on the app page in one line (#10608) c6bd5db
- New app copies a template repository's tip (readable by the caller, capped, no symlinks), with a door to name it (#10604) fa86966
- A pack app's source can be a forge repo, and deploying it forks from the forge with lineage (#10607) c084987
- /talk?about= names its subject: one line above the composer, only for what the viewer can read (#10614) 0c5169a
- Disk health rules: a spec catalog and alerts only on what the drive itself reports (#10616) cf39091
- A from-app issue is assigned on arrival, and the flow alarm fires when one waits (#10612) 5fdc942
- An app whose / answers an error is not boot ok (#10613) 74709d4
- Knobs: one panel on the crew page with five plain dials, each showing its live effect, editable in place (#10605) b37e50e
- After every release a cell child cannot wake for ten minutes: the boot opens every hosted child and fills FORGE_CHILD_AWAKE_MAX ("the forge is full") (#10606) 099788e
- Knobs: one panel on the crew page with five plain dials, each showing its live effect, editable in place (#10599) 27a95da
- A crew run's sandbox refuses writes outside its worktree and hosts past the egress allowlist, each a test (#10601) f12e5a5
- The packs' upstreams are read-only forge mirrors under the packs owner, re-synced on a schedule (#10589) 9e162c0
- The page manifest says what you can do here as who you are: /api/v1/here answers differently for a stranger, a member and an admin, and a test pins each (#10596) 6792ab3
- A fork tree reader returns an app's ancestors, siblings and descendants as plain data, filtered by what the caller may read (#10587) 259f1fa
- A machine shell that prints output is not idle, and its idle stop is a setting with its reason (#10594) 0655cc2
I added the loopback-only look test, but I haven't seen it run: in my sandbox it skips because ip isn't installed. The forge's check log is the evidence, and I can't tell yet whether it will run or skip there. In my sandbox it printed loopback-only look: skipped, ip is not installed, and test/look-refusal.test.ts still passes (5 pass). bun x tsc --noEmit and bun scripts/gate.ts are clean.
I couldn't find pull #10625's branch on the forge, so I wrote test/look-loopback-only.test.ts fresh instead of taking it from there.
What changed
test/look-loopback-only.test.tsrunssh -c "ip link set lo up && exec bun child"insideunshare -rn, so onlylois up.test/look-loopback-only.child.tsserves a page on 127.0.0.1 withBun.serveand calls the realtakeLookon it. It prints exactly one line:loopback-only look: png <bytes>orloopback-only look: error <message>.- The test asserts only that this line came back. A 30 s budget kills the child past that and fails with a named error, so it never hangs.
- It skips by name, printing the reason, when any of these is missing: Linux,
unshare,ip, Chromium, or permission to make a network namespace. src/looks/capture.tsis unchanged.- The gate list needs no entry, because the gate picks up every
test/*.test.ts.
To see the result: read the check's log for the line starting loopback-only look:.
- A
pngorerrorline means it ran, anderror <message>is what Chrome does with only loopback up. - A
skippedline means the check's environment lacks something, and the reason follows it.
The pull can't claim "ran, not skipped" until that log line is read.
Left #10631 open: 1 unticked item remain (It skips by name, the reason printed, where unshare, ip, Chromium or namespace permission is missing; the pull says the check log line it produced (ran, not skipped) and what it printed.).
I added the loopback-only look test, but I haven't seen it run: in my sandbox it skips because
ipisn't installed. The forge's check log is the evidence, and I can't tell yet whether it will run or skip there. In my sandbox it printedloopback-only look: skipped, ip is not installed, andtest/look-refusal.test.tsstill passes (5 pass).bun x tsc --noEmitandbun scripts/gate.tsare clean.I couldn't find pull #10625's branch on the forge, so I wrote
test/look-loopback-only.test.tsfresh instead of taking it from there.What changed
test/look-loopback-only.test.tsrunssh -c "ip link set lo up && exec bun child"insideunshare -rn, so onlylois up.test/look-loopback-only.child.tsserves a page on 127.0.0.1 withBun.serveand calls the realtakeLookon it. It prints exactly one line:loopback-only look: png <bytes>orloopback-only look: error <message>.unshare,ip, Chromium, or permission to make a network namespace.src/looks/capture.tsis unchanged.test/*.test.ts.To see the result: read the check's log for the line starting
loopback-only look:.pngorerrorline means it ran, anderror <message>is what Chrome does with only loopback up.skippedline means the check's environment lacks something, and the reason follows it.The pull can't claim "ran, not skipped" until that log line is read.
Closes #10631