fix(ci): isolate s3 compat temp file paths

This commit is contained in:
xiaomage
2026-08-30 08:10:39 +08:00
parent ff3ad30f0c
commit 7051029318
@@ -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