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

The loopback-only look test stops failing checks: the missing prerequisite is named and provided, or the check skips by name #18362

opened this

Merged 6h 19m ago, live in production

In a check step with no floor flag, the loopback-only look test now skips by name when the kernel refuses user namespaces. I could not read the failing logs, so I'm inferring the cause rather than confirming it. The gap I found.

Notes

opened this

In a check step with no floor flag, the loopback-only look test now skips by name when the kernel refuses user namespaces. I could not read the failing logs, so I'm inferring the cause rather than confirming it.

The gap I found. I reproduced the failure myself in this sandbox with FORGE_CHECK=x bun test test/look-loopback-only.test.ts. The message is cannot make a network namespace: unshare: unshare failed: Operation not permitted [FORGE_CHECK_FLOOR=unset, …]. The Landlock skip (#17522) only covers the uid_map "Permission denied" refusal, so this EPERM refusal still failed the check. I can't say which check step hit it last week.

What changed

  • test/look-loopback-only.verdict.ts: a new userNamespaceRefused probe. In a check, with FORGE_CHECK_FLOOR unset and the refusal being unshare failed: Operation not permitted, verdict returns a skip. The printed line names the runner's kernel refusing user namespaces, the missing floor flag and the check id.
  • Every other gap still fails and names itself. That covers no Chromium, no unshare, not Linux, any other unshare error, and the same EPERM under FORGE_CHECK_FLOOR=landlock.
  • test/look-loopback-only-verdict.test.ts: the existing "user namespaces not permitted at all" matrix row now expects a skip in the check. A new test covers the exact skip line and the cases that still fail. Both fail without the change.
  • docs/features/landlock-floor.md: one sentence added.

Checks run. The verdict tests pass (16 of 16), tsc is clean, and gate --fix made no changes. I did not run the full suite. The commit says "No door", since a test verdict has no page, action, route or tool.

What I chose not to do

  • No retry or cap.
  • I did not change forge.json or provide unshare or a user namespace on the runner. That would need the runner's kernel policy changed, which I can't do from here.

Residual risk. A green check on a runner that refuses user namespaces no longer proves a picture was taken. The skip line says so, and docs/features/landlock-floor.md documents it.

To try. bun test test/look-loopback-only-verdict.test.ts. Run the loopback-only test with FORGE_CHECK=x set and it should print the new skip line here.

🤖 Generated with Claude Code

Closes #18352

commented

In a check step with no floor flag, the loopback-only look test now skips by name when the kernel refuses user namespaces. I could not read the failing logs, so I'm inferring the cause rather than confirming it.

The gap I found. I reproduced the failure myself in this sandbox with FORGE_CHECK=x bun test test/look-loopback-only.test.ts. The message is cannot make a network namespace: unshare: unshare failed: Operation not permitted [FORGE_CHECK_FLOOR=unset, …]. The Landlock skip (#17522) only covers the uid_map "Permission denied" refusal, so this EPERM refusal still failed the check. I can't say which check step hit it last week.

What changed

  • test/look-loopback-only.verdict.ts: a new userNamespaceRefused probe. In a check, with FORGE_CHECK_FLOOR unset and the refusal being unshare failed: Operation not permitted, verdict returns a skip. The printed line names the runner's kernel refusing user namespaces, the missing floor flag and the check id.
  • Every other gap still fails and names itself. That covers no Chromium, no unshare, not Linux, any other unshare error, and the same EPERM under FORGE_CHECK_FLOOR=landlock.
  • test/look-loopback-only-verdict.test.ts: the existing "user namespaces not permitted at all" matrix row now expects a skip in the check. A new test covers the exact skip line and the cases that still fail. Both fail without the change.
  • docs/features/landlock-floor.md: one sentence added.

Checks run. The verdict tests pass (16 of 16), tsc is clean, and gate --fix made no changes. I did not run the full suite. The commit says "No door", since a test verdict has no page, action, route or tool.

What I chose not to do

  • No retry or cap.
  • I did not change forge.json or provide unshare or a user namespace on the runner. That would need the runner's kernel policy changed, which I can't do from here.

Residual risk. A green check on a runner that refuses user namespaces no longer proves a picture was taken. The skip line says so, and docs/features/landlock-floor.md documents it.

To try. bun test test/look-loopback-only-verdict.test.ts. Run the loopback-only test with FORGE_CHECK=x set and it should print the new skip line here.

🤖 Generated with Claude Code

commented

Left #18352 open: 1 unticked item remain (read the last failing logs of that test and name which prerequisite is missing (Chromium, unshare, or the user/network namespace, with its FORGE_CHECK_FLOOR value) and on which step).

Sign in to join this conversation.

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

Keyboard shortcuts

Docs