From 7051029318dd1233e1b9e88043061632d7747ffe Mon Sep 17 00:00:00 2001 From: xiaomage Date: Sun, 30 Aug 2026 08:10:39 +0800 Subject: [PATCH] fix(ci): isolate s3 compat temp file paths --- .github/workflows/rustfs-s3-compat-test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/rustfs-s3-compat-test.yml b/.github/workflows/rustfs-s3-compat-test.yml index 2efe2986b..da1a12f6d 100644 --- a/.github/workflows/rustfs-s3-compat-test.yml +++ b/.github/workflows/rustfs-s3-compat-test.yml @@ -49,6 +49,18 @@ jobs: persist-credentials: false token: ${{ secrets.PF_TESTING_GH_TOKEN }} + - name: Patch auto-testing temp file paths + run: | + set -euo pipefail + # Use per-run TEST_TMP files instead of shared /tmp/s3c-* paths. + # This prevents permission collisions from stale files created by + # previous jobs/users on shared self-hosted runners. + perl -0pi -e 's#/tmp/(s3c-[A-Za-z0-9._-]+)#\$\{TEST_TMP\}/$1#g' auto-testing/rustfs-s3-compat-test.sh + if grep -nE '/tmp/s3c-[A-Za-z0-9._-]+' auto-testing/rustfs-s3-compat-test.sh; then + echo "unexpected hardcoded /tmp/s3c-* path(s) remain" + exit 1 + fi + - name: Show environment run: | uname -a