ci: shard linux gnu nextest tests into 2 partitions

This commit is contained in:
Michael Bolin
2026-02-21 00:34:31 -08:00
parent 1af2a37ada
commit fbf85d76b2
2 changed files with 42 additions and 16 deletions

10
.github/scripts/enable-unprivileged-userns.sh vendored Executable file
View 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