Run TSan with a narrowly scoped test-container seccomp profile

This commit is contained in:
dingo
2026-09-19 09:23:06 -04:00
parent 9e412736d9
commit 660a5674ee
6 changed files with 93 additions and 2 deletions
+12 -1
View File
@@ -31,9 +31,20 @@ jobs:
run: |
set -eu
docker version
ci_image="aevolution-ci:${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}-$CHECK_SUITE"
docker build --progress=plain --file deploy/docker/Dockerfile \
--build-arg "UBUNTU_IMAGE=$UBUNTU_IMAGE" \
--target "ci-$CHECK_SUITE" .
--target "ci-$CHECK_SUITE" --tag "$ci_image" .
if [ "$CHECK_SUITE" = tsan ]; then
profile="$RUNNER_TEMP/aevolution-tsan-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}.json"
node tools/ci/tsan-profile.mjs "$profile"
docker run --rm --network none --read-only --user 10001:10001 \
--cap-drop ALL --security-opt no-new-privileges \
--security-opt "seccomp=$profile" \
--tmpfs /source/build/tsan/Testing:rw,noexec,nosuid,size=16m \
--tmpfs /source/build/tsan/cli-integration:rw,noexec,nosuid,size=16m \
--tmpfs /tmp:rw,noexec,nosuid,size=16m "$ci_image"
fi
image:
needs: [checks]