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

takeLook's loopback-only test stops failing checks for a missing prerequisite (56 reds last week) #17979

opened this

Merged 13h 38m ago, live in production

The loopback-only look's namespace probe now retries when the kernel was momentarily busy. I could not confirm that this is what caused the 56 reds. The check logs from those runs are not readable from my sandbox, so I never saw which prerequisite was reported missing or which runner it ran on.

Notes

opened this

The loopback-only look's namespace probe now retries when the kernel was momentarily busy. I could not confirm that this is what caused the 56 reds. The check logs from those runs are not readable from my sandbox, so I never saw which prerequisite was reported missing or which runner it ran on. Please read one failing log: its line loopback-only look: failed in the check, <gap> names the gap.

bun test test/look-loopback-only-verdict.test.ts passes (16 tests), and tsc and gate.ts are clean. The new tests would fail without the fix, but I did not run them against the old code.

The change:

  • Probe fix: the namespace probes in test/look-loopback-only.verdict.ts (unshare -Ur true, unshare -rn true) used to ask once. A one-off EAGAIN, ENOMEM or ENOSPC while many shards each make a namespace therefore counted as a missing prerequisite, and the check failed. settled() now asks up to four times and retries only those transient refusals (transientRefusal()).
  • Rule unchanged: a permission refusal such as EPERM or EACCES is final on the first answer. A gap that stays busy still returns fail in the check, and the Landlock-floor skip is untouched. The test still requires a PNG wherever the machine can run it.
  • Tests: in test/look-loopback-only-verdict.test.ts, busy-then-working probes give run in the check. A permission refusal is not retried, and a gap that stays busy still fails.

Not done: I did not widen the Landlock skip to other uid_map messages, such as Operation not permitted, because I have no log showing that wording.

Candidates if the retry is not the cause: a floored step whose stderr is not uid_map … Permission denied, or a cell without the floor flag.

To try it, run bun test test/look-loopback-only-verdict.test.ts.

Closes #17978

2 earlier comments
commented

The loopback-only look's namespace probe now retries when the kernel was momentarily busy. I could not confirm that this is what caused the 56 reds. The check logs from those runs are not readable from my sandbox, so I never saw which prerequisite was reported missing or which runner it ran on. Please read one failing log: its line loopback-only look: failed in the check, <gap> names the gap.

bun test test/look-loopback-only-verdict.test.ts passes (16 tests), and tsc and gate.ts are clean. The new tests would fail without the fix, but I did not run them against the old code.

The change:

  • Probe fix: the namespace probes in test/look-loopback-only.verdict.ts (unshare -Ur true, unshare -rn true) used to ask once. A one-off EAGAIN, ENOMEM or ENOSPC while many shards each make a namespace therefore counted as a missing prerequisite, and the check failed. settled() now asks up to four times and retries only those transient refusals (transientRefusal()).
  • Rule unchanged: a permission refusal such as EPERM or EACCES is final on the first answer. A gap that stays busy still returns fail in the check, and the Landlock-floor skip is untouched. The test still requires a PNG wherever the machine can run it.
  • Tests: in test/look-loopback-only-verdict.test.ts, busy-then-working probes give run in the check. A permission refusal is not retried, and a gap that stays busy still fails.

Not done: I did not widen the Landlock skip to other uid_map messages, such as Operation not permitted, because I have no log showing that wording.

Candidates if the retry is not the cause: a floored step whose stderr is not uid_map … Permission denied, or a cell without the floor flag.

To try it, run bun test test/look-loopback-only-verdict.test.ts.

commented

The cause of the 56 reds is still unknown, because I can't read the check logs. This pull no longer claims to fix it. It only makes the next failure in the check name its floor flag and its check.

Why no cause. The sandbox can't read check logs. The check records the API returns carry a summary but no log. I looked at several runs, and none of them showed the loopback-only look: failed in the check, <gap> line, so I have no gap, runner or cell to report. I opened #17983 asking someone who can read the logs to paste that line and the node of a few failing runs. The fix is then one verdict() change, tested with that exact stderr.

What changed.

  • I reverted the retry on EAGAIN, ENOMEM and ENOSPC in test/look-loopback-only.verdict.ts. Nothing ties it to these reds, and it had the problems you raised: no pause between tries and a match on English error text.
  • A namespace gap that fails in the check now ends its line with [FORGE_CHECK_FLOOR=<value|unset>, check <id>]. For example:
    loopback-only look: failed in the check, cannot make a network namespace: <stderr> [FORGE_CHECK_FLOOR=unset, check 01abc]

    That tells us whether the failing step carried the Landlock flag.

  • The rule is unchanged. Every gap that failed in the check still fails, the floor skip is untouched, and no gap is turned into a skip.
  • One test in test/look-loopback-only-verdict.test.ts checks the new suffix. It did not exist before, so it fails against the old code.
  • bun test test/look-loopback-only-verdict.test.ts passes (15 tests), and tsc and gate.ts are clean.

Not done. Checklist items 2 and 3 of #17978 (fix the cause, test with the real stderr) wait on #17983.

commented

Left #17978 open: 3 unticked items remain (Find from the check logs which prerequisite is missing in those 56 runs (unshare, Chromium, the user namespace, the Landlock floor) and which runner or cell they ran on; write it in the pull description.; Fix the cause where it lives (provision it in the check cell, or fix the probe that wrongly says missing). Do not loosen the rule: inside the forge's check the gap must still fail, and the test must still require a PNG where the machine can run it.; Test: verdict() cases cover the cause found (the probe says present when it is present). Fails without the fix.).

Sign in to join this conversation.

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

Keyboard shortcuts

Docs