diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-12-13 19:04:12 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-13 19:04:12 -0800 |
| commit | 51c2ab0107ce8bc38d6d4f1d3ef3190d4be94161 (patch) | |
| tree | d73924e53bdccecd650ad6090a91214c87e60eb1 /.github/workflows | |
| parent | f70cd054043bb6327b6b0f3b9e54a1f6d502d2a2 (diff) | |
| download | seaweedfs-51c2ab0107ce8bc38d6d4f1d3ef3190d4be94161.tar.xz seaweedfs-51c2ab0107ce8bc38d6d4f1d3ef3190d4be94161.zip | |
fix: admin UI bucket deletion with filer group configured (#7735)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/s3-filer-group-tests.yml | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/.github/workflows/s3-filer-group-tests.yml b/.github/workflows/s3-filer-group-tests.yml new file mode 100644 index 000000000..a4711005f --- /dev/null +++ b/.github/workflows/s3-filer-group-tests.yml @@ -0,0 +1,85 @@ +name: "S3 Filer Group Tests" + +on: + pull_request: + +concurrency: + group: ${{ github.head_ref }}/s3-filer-group-tests + cancel-in-progress: true + +permissions: + contents: read + +defaults: + run: + working-directory: weed + +jobs: + s3-filer-group-tests: + name: S3 Filer Group Integration Tests + runs-on: ubuntu-22.04 + timeout-minutes: 20 + + steps: + - name: Check out code + uses: actions/checkout@v6 + + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version-file: 'go.mod' + id: go + + - name: Install SeaweedFS + run: | + go install -buildvcs=false + + - name: Run S3 Filer Group Tests + timeout-minutes: 15 + working-directory: test/s3/filer_group + run: | + set -x + echo "=== System Information ===" + uname -a + free -h + df -h + echo "=== Starting Filer Group Tests ===" + + # Run tests with automatic server management + # The test-with-server target handles server startup/shutdown automatically + # Server is started with -filer.group=testgroup + make test-with-server || { + echo "❌ Filer group tests failed, checking logs..." + if [ -f weed-test.log ]; then + echo "=== Server logs ===" + tail -100 weed-test.log + fi + echo "=== Process information ===" + ps aux | grep -E "(weed|test)" || true + exit 1 + } + + - name: Show server logs on failure + if: failure() + working-directory: test/s3/filer_group + run: | + echo "=== Server Logs ===" + if [ -f weed-test.log ]; then + echo "Last 100 lines of server logs:" + tail -100 weed-test.log + else + echo "No server log file found" + fi + + echo "=== Test Environment ===" + ps aux | grep -E "(weed|test)" || true + netstat -tlnp | grep -E "(8333|9333|8080)" || true + + - name: Upload test logs on failure + if: failure() + uses: actions/upload-artifact@v5 + with: + name: s3-filer-group-test-logs + path: test/s3/filer_group/weed-test*.log + retention-days: 3 + |
