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
Merged 16h 31m 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.
-
Reviews
Changes requested — before the latest pushThe retry is a guess, not a found cause. The issue's first box asks to find from the check logs which prerequisite was missing in the 56 reds and on which runner, and to write it in the pull. The description says the logs were not read, and lists other candidates (a floored step whose stderr is not 'uid_map ... Permission denied', or a cell without the floor flag). Nothing ties EAGAIN/ENOMEM/ENOSPC to the 56 reds, so the fix may not stop them.
To fix, in one round:
- Read one failing check log (the line 'loopback-only look: failed in the check, <gap>') and put the gap and the runner/cell in the pull description. If the logs cannot be read, say so and open an issue rather than ship a guess as the fix.
- Fix the cause that log shows. If it is the Landlock floor with a different uid_map wording, fix the skip in verdict(); if it is EAGAIN, keep the retry but say how the log proves it. Do not loosen the rule: a gap that stays must still fail in the check.
- Add a verdict() test using the exact stderr from that log, and run it against the old code to show it fails without the fix. The current tests were never run against the old code.
Smaller points: the retry has no pause between tries (see comment), and the stderr match is on English strerror text, so a non-English locale would never be retried.
ApprovedEarlier asks: the retry on EAGAIN/ENOMEM/ENOSPC that had no pause and matched English error text is reverted, so that ask is met. The rule is unchanged: every gap still fails in the check, the Landlock skip is untouched, and no gap becomes a skip. The one added test pins the new suffix for both floor values and shows that non-namespace gaps stay as they were. It fails without the change. The change is small, in one module, with no dead code. It is a diagnostic only. It does not find the cause of the 56 reds, and the pull says so plainly and points to #17983. Boxes 1-3 of #17978 stay open for that reason. Next two things: (1) have someone who can read the check logs paste the
failed in the checkline from a red run into #17983; (2) then make the one verdict() change with that exact stderr as a test case. Non-blocking: the suffix readscheck undefinedif FORGE_CHECK is ever unset while the floor flag is set. That is unreachable under inCheck today, but a fallback such as?? "unknown"would make that clear. -
Checks
shipped production is serving it deploy a338207
-
History
- The loopback-only look's failure in the check names the floor flag and the check it ran in (#17978) d9fdb42
- Revert "The loopback-only look's namespace probe asks again when the kernel was busy, not when it said no (#17978)" 2e306db
- The loopback-only look's namespace probe asks again when the kernel was busy, not when it said no (#17978) 487173d
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#17973) 010904c
- Full suite red: test/traffic-truth.test.ts (#17972) 13460d3
- Infrastructure: a game box container opens on its live log, with Restart, Stop and Start (#17946) db96b4c
- Full suite red: test/api-security-floor.test.ts (#17965) 091b8a0
- Public /privacy and /support pages (needed for the App Store listing) (#17948) 638aa4f
- A container in the cloud tree has a Logs tab with its recent lines (#17958) 07d8c64
- A join that freezes a lent job is recorded with how long the freeze took (#17956) 80543a4
- A lent job on a game box keeps the server's tps and mspt from before it and during it (#17957) a357207
- The /infra first page shows the costliest resources as a sortable table (#17955) e08c778
- Push to Apple devices (APNs): device registration and a sender (#17928) 19eaf78
- A machine's containers in the cloud tree read as a table: name, state, CPU, memory, started (#17954) ccd2925
- API shapes: no silent type changes (approvedAt became an object); contract-test responses against openapi.json (#17945) 1b196c6
- GET the models Talk offers me, and `model` on POST /api/v1/conversations and /conversation/messages (#17916) 2623a5e
- Traces: every conversation and run kept as a trace, imported from outside agents, and explored in the forge (#17943) ce8ccb6
- A cloud account can be a sealed, expiring, read-only view for a client (#17942) 046cfff
- Pages help a reader sift: icons, a type scale, settings in groups (#17940) 3000b02
- A command the box was not handed yet can be taken back (#17933) 703a520
2 earlier comments
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-offEAGAIN,ENOMEMorENOSPCwhile 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
EPERMorEACCESis final on the first answer. A gap that stays busy still returnsfailin 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 giverunin 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.
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,ENOMEMandENOSPCintest/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.tschecks the new suffix. It did not exist before, so it fails against the old code. bun test test/look-loopback-only-verdict.test.tspasses (15 tests), andtscandgate.tsare clean.
Not done. Checklist items 2 and 3 of #17978 (fix the cause, test with the real stderr) wait on #17983.
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.).
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.tspasses (16 tests), andtscandgate.tsare clean. The new tests would fail without the fix, but I did not run them against the old code.The change:
test/look-loopback-only.verdict.ts(unshare -Ur true,unshare -rn true) used to ask once. A one-offEAGAIN,ENOMEMorENOSPCwhile 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()).EPERMorEACCESis final on the first answer. A gap that stays busy still returnsfailin the check, and the Landlock-floor skip is untouched. The test still requires a PNG wherever the machine can run it.test/look-loopback-only-verdict.test.ts, busy-then-working probes giverunin 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_mapmessages, such asOperation 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