Lightweight coding agent that runs in your terminal
Rust
Enable user namespaces in shared CI setup (#39606)
Adam Perry @ OpenAI6869d17cc24f
diff --git a/.github/actions/setup-ci/action.yml b/.github/actions/setup-ci/action.ymlindex 8e95f29fa5..8abd2dbd5f 100644--- a/.github/actions/setup-ci/action.yml+++ b/.github/actions/setup-ci/action.yml@@ -24,6 +24,15 @@ runs:shell: bashrun: echo "CI_BUILD_ROOT=$HOME/.cache/codex-ci" >> "$GITHUB_ENV"+ - name: Enable unprivileged user namespaces (Linux)+ if: runner.os == 'Linux'+ shell: bash+ run: |+ sudo sysctl -w kernel.unprivileged_userns_clone=1+ if sudo sysctl -a 2>/dev/null | grep -q '^kernel.apparmor_restrict_unprivileged_userns'; then+ sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0+ fi+- name: Configure CI build pathsid: configure_ci_build_pathsshell: bashdiff --git a/.github/workflows/rust-ci-full-nextest-platform.yml b/.github/workflows/rust-ci-full-nextest-platform.ymlindex 09082506e4..e86bc0bb99 100644--- a/.github/workflows/rust-ci-full-nextest-platform.yml+++ b/.github/workflows/rust-ci-full-nextest-platform.yml@@ -163,14 +163,6 @@ jobs:tool: nextestversion: 0.9.103- - name: Enable unprivileged user namespaces (Linux)- if: runner.os == 'Linux'- run: |- sudo sysctl -w kernel.unprivileged_userns_clone=1- if sudo sysctl -a 2>/dev/null | grep -q '^kernel.apparmor_restrict_unprivileged_userns'; then- sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0- fi-- name: Build nextest archiveshell: bashrun: |@@ -312,14 +304,6 @@ jobs:tool: nextestversion: 0.9.103- - name: Enable unprivileged user namespaces (Linux)- if: runner.os == 'Linux'- run: |- sudo sysctl -w kernel.unprivileged_userns_clone=1- if sudo sysctl -a 2>/dev/null | grep -q '^kernel.apparmor_restrict_unprivileged_userns'; then- sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0- fi-- name: Set up remote test env (Docker)if: ${{ runner.os == 'Linux' && inputs.remote_env }}shell: bash