aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/test-s3-over-https-using-awscli.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/test-s3-over-https-using-awscli.yml')
-rw-r--r--.github/workflows/test-s3-over-https-using-awscli.yml25
1 files changed, 24 insertions, 1 deletions
diff --git a/.github/workflows/test-s3-over-https-using-awscli.yml b/.github/workflows/test-s3-over-https-using-awscli.yml
index fd0f8eb4f..9a26f4d82 100644
--- a/.github/workflows/test-s3-over-https-using-awscli.yml
+++ b/.github/workflows/test-s3-over-https-using-awscli.yml
@@ -83,6 +83,29 @@ jobs:
set -e
dd if=/dev/urandom of=generated bs=1M count=32
ETAG=$(aws --no-verify-ssl s3api put-object --bucket bucket --key test-get-obj --body generated | jq -r .ETag)
- aws --no-verify-ssl s3api get-object --bucket bucket --key test-get-obj --if-match ${ETAG:1:32} downloaded
+ # jq -r already removes quotes, so use ETAG directly (handles both simple and multipart ETags)
+ aws --no-verify-ssl s3api get-object --bucket bucket --key test-get-obj --if-match "$ETAG" downloaded
diff -q generated downloaded
rm -f generated downloaded
+
+ - name: Show server logs on failure
+ if: failure()
+ run: |
+ echo "========================================="
+ echo "SeaweedFS Server Logs"
+ echo "========================================="
+ # Note: weed.log is relative to working-directory (weed/)
+ if [ -f weed.log ]; then
+ cat weed.log
+ else
+ echo "No weed.log file found"
+ fi
+
+ - name: Upload server logs on failure
+ if: failure()
+ uses: actions/upload-artifact@v5
+ with:
+ name: seaweedfs-logs
+ # Note: actions don't use defaults.run.working-directory, so path is relative to workspace root
+ path: weed/weed.log
+ retention-days: 3