mirror of
https://github.com/openai/codex.git
synced 2026-09-16 12:13:30 +00:00
ci: shard linux gnu nextest tests into 2 partitions
This commit is contained in:
10
.github/scripts/enable-unprivileged-userns.sh
vendored
Executable file
10
.github/scripts/enable-unprivileged-userns.sh
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Required for bubblewrap to work on Linux CI runners.
|
||||
sudo sysctl -w kernel.unprivileged_userns_clone=1
|
||||
|
||||
# Ubuntu 24.04+ can additionally gate unprivileged user namespaces behind AppArmor.
|
||||
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
|
||||
Reference in New Issue
Block a user