Public: anyone can read this; the crew can change it.

The check cell has what takeLook with only loopback needs, or the test says so once and stays out of the verdict #17534

opened this

Merged 13h 7m ago, live in production

The loopback-only look test now decides every gap through verdict() (#17522). A uidmap refusal skips only in a check the Landlock floor holds; in any other check it fails and says what is missing. What the check logs show.

Notes

opened this

The loopback-only look test now decides every gap through verdict() (#17522). A uid_map refusal skips only in a check the Landlock floor holds; in any other check it fails and says what is missing.

What the check logs show. All 50 failures from last week happened on 2026-12-01 between 02:00 and 09:35 UTC. The missing prerequisite was the user namespace, every time with unshare: cannot open /proc/self/uid_map: Permission denied. Chromium (/usr/bin/chromium, looks lane) and unshare were present each time. 45 of the checks ran on the forge itself and 5 on a runner, all behind the Landlock floor from #16888 just after it landed. 41 were verify-bisect runs on old main commits and 9 were pull heads. Every commit that could be traced predates #16954, the first fix. Nothing has failed this way since. The cell can't be given what's missing: the floor refuses the uid_map write on purpose. So the fix is in the verdict, not the cell.

What was still wrong on main. test/look-loopback-only.test.ts called probeUidMap() before verdict() and skipped on any uid_map refusal. That meant a check without the floor skipped too, and no test of verdict() covered that case.

What changed (test/look-loopback-only.verdict.ts):

  • The probes now return plain data (Prerequisites), and missingFrom() names the first gap, in the same words as before. unshare -Ur true is probed next to unshare -rn true, so both namespace probes give the same gap.
  • verdict() skips in the check only when all three hold: FORGE_CHECK_FLOOR=landlock, the gap is the namespace, and the error is the uid_map EACCES (it reuses uidMapDenied). Every other gap in a check fails and names itself, including an EPERM from unshare under the floor. Outside the check, any gap skips.
  • probeUidMap() is gone. The test file asks only verdict(). A skip prints its line once; a failure is thrown once instead of being logged and then thrown.

Tests. test/look-loopback-only-verdict.test.ts gains a table with each gap: not Linux, no unshare, no Chromium, uid_map refused for either probe, user namespaces not permitted, and nothing missing. Each runs outside the check, in a check, and in a floored check, and every skip or failure must contain what is missing. The table fails on main: missingFrom doesn't exist there, and the old verdict skipped the EPERM case under the floor. The existing tests are unchanged and pass. bun x tsc --noEmit is clean, the gate reports 0 failures, and the 144 files scripts/fast.ts named pass (2191 pass, 3 skip, 0 fail).

Not done:

  • No change to how cells are set up: the floor refuses uid_map by design.
  • Failing verify-bisect runs on commits from before #16954 will still fail if a bisect revisits them. That code is fixed in history and can't be changed.
  • The plan wasn't kept with keep_plan, because that tool wasn't available in this session.

To try it: bun test test/look-loopback-only-verdict.test.ts test/look-loopback-only.test.ts. Outside a check the look test prints one loopback-only look: skipped, … line when this machine lacks a namespace. Under FORGE_CHECK=x without FORGE_CHECK_FLOOR it fails with that gap named.

🤖 Generated with Claude Code

Closes #17522

commented

The loopback-only look test now decides every gap through verdict() (#17522). A uid_map refusal skips only in a check the Landlock floor holds; in any other check it fails and says what is missing.

What the check logs show. All 50 failures from last week happened on 2026-12-01 between 02:00 and 09:35 UTC. The missing prerequisite was the user namespace, every time with unshare: cannot open /proc/self/uid_map: Permission denied. Chromium (/usr/bin/chromium, looks lane) and unshare were present each time. 45 of the checks ran on the forge itself and 5 on a runner, all behind the Landlock floor from #16888 just after it landed. 41 were verify-bisect runs on old main commits and 9 were pull heads. Every commit that could be traced predates #16954, the first fix. Nothing has failed this way since. The cell can't be given what's missing: the floor refuses the uid_map write on purpose. So the fix is in the verdict, not the cell.

What was still wrong on main. test/look-loopback-only.test.ts called probeUidMap() before verdict() and skipped on any uid_map refusal. That meant a check without the floor skipped too, and no test of verdict() covered that case.

What changed (test/look-loopback-only.verdict.ts):

  • The probes now return plain data (Prerequisites), and missingFrom() names the first gap, in the same words as before. unshare -Ur true is probed next to unshare -rn true, so both namespace probes give the same gap.
  • verdict() skips in the check only when all three hold: FORGE_CHECK_FLOOR=landlock, the gap is the namespace, and the error is the uid_map EACCES (it reuses uidMapDenied). Every other gap in a check fails and names itself, including an EPERM from unshare under the floor. Outside the check, any gap skips.
  • probeUidMap() is gone. The test file asks only verdict(). A skip prints its line once; a failure is thrown once instead of being logged and then thrown.

Tests. test/look-loopback-only-verdict.test.ts gains a table with each gap: not Linux, no unshare, no Chromium, uid_map refused for either probe, user namespaces not permitted, and nothing missing. Each runs outside the check, in a check, and in a floored check, and every skip or failure must contain what is missing. The table fails on main: missingFrom doesn't exist there, and the old verdict skipped the EPERM case under the floor. The existing tests are unchanged and pass. bun x tsc --noEmit is clean, the gate reports 0 failures, and the 144 files scripts/fast.ts named pass (2191 pass, 3 skip, 0 fail).

Not done:

  • No change to how cells are set up: the floor refuses uid_map by design.
  • Failing verify-bisect runs on commits from before #16954 will still fail if a bisect revisits them. That code is fixed in history and can't be changed.
  • The plan wasn't kept with keep_plan, because that tool wasn't available in this session.

To try it: bun test test/look-loopback-only-verdict.test.ts test/look-loopback-only.test.ts. Outside a check the look test prints one loopback-only look: skipped, … line when this machine lacks a namespace. Under FORGE_CHECK=x without FORGE_CHECK_FLOOR it fails with that gap named.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs