mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-06 20:19:14 +00:00
fix(ci): isolate s3 compat temp file paths
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user