From 940a9137b4d1d7e4f8d2b89453a7dc6518f01292 Mon Sep 17 00:00:00 2001 From: Anya Tokugawa Date: Sun, 15 Nov 2026 06:01:35 +0900 Subject: [PATCH] fix(ci): allow synthetic executable fixtures on PostgreSQL test tmpfs --- tools/ci/test-postgres.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/ci/test-postgres.sh b/tools/ci/test-postgres.sh index 0780f31..4b0195b 100644 --- a/tools/ci/test-postgres.sh +++ b/tools/ci/test-postgres.sh @@ -30,9 +30,12 @@ if [[ "$ready" != true ]]; then echo 'Synthetic PostgreSQL did not become ready' >&2 exit 1 fi +# Docker --tmpfs defaults to noexec, unlike the Dockerfile test stage's +# BuildKit tmpfs. Test helpers put synthetic pdfinfo/7z executables in TMPDIR. +# Keep execution enabled only in this disposable test container's scratch. docker run --rm --name "$tests" --network "container:$postgres" \ - --tmpfs /test-tmp:rw,size=2147483648 \ + --tmpfs /test-tmp:rw,exec,size=2147483648 \ --env TMPDIR=/test-tmp --env GOTMPDIR=/tmp \ --env GOPROXY=off --env GOSUMDB=off \ --env PAGESWIKI_TEST_POSTGRES_DSN='postgres://postgres:pageswiki-synthetic-ci-only@127.0.0.1:5432/pageswiki_test?sslmode=disable' \ - "$test_image" go test -p 1 ./... + "$test_image" sh -ec 'cp /bin/busybox /test-tmp/busybox; /test-tmp/busybox true; exec go test -p 1 ./...'