ci: pass TEST_RUNTIME explicitly to the runsc critest

The runsc job runs on ubuntu-latest, which is moving to Ubuntu 26.04,
whose sudo (sudo-rs) does not support -E ("preserving the entire
environment is not supported, '-E' is ignored"). critest.sh then fails
on the unset TEST_RUNTIME, the only variable the step did not pass
explicitly.

Pass it on the sudo command line with the others and drop -E.

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko committed 2026-10-26 14:20:05 -07:00
1 parent c0ed7418da
commit 40cfca5747
1 file changed
+2 -1
+2 -1
View File
@@ -765,8 +765,9 @@ jobs:
cfg=$(mktemp /tmp/containerd-config-runsc-XXXXXX.toml)
trap 'rm -f "$cfg"' EXIT
script/runsc/write-containerd-runsc-config.sh "$cfg" "$CGROUP_DRIVER"
sudo -E \
sudo \
CGROUP_DRIVER="$CGROUP_DRIVER" \
TEST_RUNTIME="$TEST_RUNTIME" \
CONTAINERD_CONFIG_FILE="$cfg" \
GOMAXPROCS="$GOMAXPROCS" \
GOMEMLIMIT="$GOMEMLIMIT" \