Skip to content

verify (linux) reports every sandbox test as failed on hosts whose bubblewrap cannot mount /proc #1964

Closed

Description

@yyhhyyyyyy

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-004 and linux-runner-005 during the same window, for example #1951 run 44734869593, and failed in all four jobs that reached it on arcships-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

  1. Make the host gate run the same flags the tests need (--unshare-user --unshare-pid --proc /proc --dev /dev) and exit 1 before 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.
  2. Allow unprivileged user namespaces to mount proc on the two hosts, or run their runners outside the container that restricts /proc; Ubuntu 24.04's kernel.apparmor_restrict_unprivileged_userns is one known cause and should be confirmed with bwrap and os-release output from the host.
  3. Until the hosts are fixed, keep the dim-verify label off them so pull requests are not routed there.

Activity

  1. self-assigned this
    on Nov 21, 2026
  2. yyhhyyyyyy commented on Nov 21, 2026

    @yyhhyyyyyy
    CollaboratorAuthor

    The CI-side gate is being fixed in #1953: the Report Linux host support step is changed to run bwrap --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-1 and arcships-runner-2 must allow mounting proc in an unprivileged user namespace, or the two runners must be replaced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions