mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-26 15:00:48 +01:00
GitHub is retiring ubuntu-22.04; move all 94 runs-on pins across 40 workflows to ubuntu-24.04. rust_binaries_release: the arm64 cross step was jammy-era — noble keeps apt sources in deb822 ubuntu.sources (the sources.list edit was a silent no-op that left amd64 repos open to arm64 and 404'd) and ports suites must say noble. Pin deb822 stanzas to amd64 and add noble ports entries.
91 lines
2.6 KiB
YAML
91 lines
2.6 KiB
YAML
name: "S3 Authenticated Integration Tests"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'weed/s3api/**'
|
|
- 'weed/iam/**'
|
|
- 'weed/filer/**'
|
|
- 'weed/server/**'
|
|
- 'test/s3/normal/**'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/s3-example-integration-tests.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
tests:
|
|
name: S3 Integration Tests
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 30
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v7
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
cache: ${{ runner.environment == 'github-hosted' }}
|
|
id: go
|
|
|
|
- name: Build SeaweedFS
|
|
run: |
|
|
cd weed
|
|
go build -o weed -buildvcs=false
|
|
|
|
- name: Run S3 Integration Tests
|
|
timeout-minutes: 15
|
|
working-directory: test/s3/normal
|
|
run: |
|
|
set -x
|
|
echo "=== Running S3 Integration Tests ==="
|
|
go test -v -timeout=60s -run TestS3Integration ./...
|
|
|
|
- name: Run S3 DeleteBucketNotEmpty Tests
|
|
timeout-minutes: 15
|
|
working-directory: test/s3/normal
|
|
run: |
|
|
set -x
|
|
echo "=== Running S3 DeleteBucketNotEmpty Tests ==="
|
|
go test -v -timeout=60s -run TestS3DeleteBucketNotEmpty ./...
|
|
|
|
- name: Run S3 Empty Directory Marker Tests
|
|
timeout-minutes: 15
|
|
working-directory: test/s3/normal
|
|
run: |
|
|
set -x
|
|
echo "=== Running S3 Empty Directory Marker Tests ==="
|
|
go test -v -timeout=180s -run TestS3ListObjectsEmptyDirectoryMarkers ./...
|
|
|
|
- name: Run S3 Prefix Object Tests
|
|
timeout-minutes: 15
|
|
working-directory: test/s3/normal
|
|
run: |
|
|
set -x
|
|
echo "=== Running S3 Prefix Object Tests ==="
|
|
go test -v -timeout=180s -run TestS3PrefixObjectKeys ./...
|
|
|
|
- name: Run IAM Integration Tests
|
|
timeout-minutes: 15
|
|
working-directory: test/s3/normal
|
|
run: |
|
|
set -x
|
|
echo "=== Running IAM Integration Tests ==="
|
|
go test -v -timeout=60s -run TestIAMOperations ./...
|
|
|
|
- name: Upload test logs on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: integration-test-logs
|
|
path: test/s3/normal/*.log
|
|
retention-days: 3
|