Repository navigation
Description
verify (linux) reports every sandbox test as failed on hosts whose bubblewrap cannot mount /proc
What happens
On the self-hosted Linux runners arcships-runner-1 and arcships-runner-2, verify (linux) completes Build and lint the Rust workspace, starts Run compiled workspace tests, and then fails every test that executes a confined process with bwrap: Can't mount proc on /newroot/proc: Operation not permitted.
The failure covers unrelated areas at once: the ten a_confined_helper_* tests and the_isolation_switch_does_not_change_a_confined_helper in host_platform_flow, execution_settings_decide_the_next_process_boundary in transport_flow, four OCR plugin tasks in modality_flow, and file_storage_flow, which reports the same cause as Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }.
When the xtask target also runs the evaluation harness on such a host, 30 scenario_eval::tests::* tests fail as well with harness failure: preflight: home: echo $HOME was refused, so one job can report 46 failed tests for a change that touches none of them.
Evidence
- #1917 run 44773432396 on
arcships-runner-1, 2026-11-20T16:26Z: ten confined-helper tests failed. - #1911 run 44785593033 on
arcships-runner-2, 17:40Z: the same ten plus the sandbox-dependent OCR and storage tests. - #1917 run 44812096039 on
arcships-runner-2, 20:31Z: the same set again. - #1933 run 44845425794 on
arcships-runner-2, 2026-11-21T00:40Z: 46 failed tests, the largest report so far. - The same test family passed in every job that reached it on
linux-runner-004andlinux-runner-005during the same window, for example #1951 run 44734869593, and failed in all four jobs that reached it onarcships-runner-1/2, including two different heads of the same pull request.
Why the job does not fail earlier
The Report Linux host support step runs bwrap --ro-bind / / true, which succeeds on these hosts because it mounts nothing.
The product does not use that shape: crates/dim-agent-capabilities/src/host_platform/isolation.rs prepares bwrap --unshare-user --unshare-pid --unshare-ipc --unshare-uts --die-with-parent --cap-drop ALL [--unshare-net] <binds> --proc /proc --dev /dev --remount-ro / --chdir <cwd> -- <exe>, and mounting proc inside the new user namespace is the operation the hosts refuse.
So the gate reports a sandbox-capable host, the job spends its build time, and the tests fail as if the change were wrong.
Reproduction
On any host, run the gate and then the operation the tests need:
bwrap --ro-bind / / true
bwrap --unshare-user --unshare-pid --proc /proc --dev /dev --ro-bind / / true
The first command exits 0 on the affected hosts; the second prints bwrap: Can't mount proc on /newroot/proc: Operation not permitted.
Proposed fix
- Make the host gate run the same flags the tests need (
--unshare-user --unshare-pid --proc /proc --dev /dev) andexit 1before the build, printing the runner name, so a broken host costs seconds instead of a full verification. A pull request will make the gate run these flags and fail before the build. - Allow unprivileged user namespaces to mount proc on the two hosts, or run their runners outside the container that restricts
/proc; Ubuntu 24.04'skernel.apparmor_restrict_unprivileged_usernsis one known cause and should be confirmed withbwrapandos-releaseoutput from the host. - Until the hosts are fixed, keep the
dim-verifylabel off them so pull requests are not routed there.
Activity
yyhhyyyyyy commentedon Nov 21, 2026
The CI-side gate is being fixed in #1953: the
Report Linux host supportstep is changed to runbwrap --unshare-user --unshare-pid --proc /proc --dev /dev --ro-bind / / true, so a host that cannot mount proc fails before the build rather than after the tests.The runner-host side still needs handling:
arcships-runner-1andarcships-runner-2must allow mounting proc in an unprivileged user namespace, or the two runners must be replaced.