mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
* test/s3: result checker for rclone fstests * test/s3: run rclone fstests against SeaweedFS with expected failures * ci: add rclone fstests workflow * test/s3: catch parent-only failures and panics in rclone fstests check * test/s3: check parent assertions and skips in rclone fstests, widen paths * test/s3: drop issue numbers from the rclone expected-failures notes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Konstantin Lebedev <whitefox@mayflower.work> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
70 lines
1.9 KiB
YAML
70 lines
1.9 KiB
YAML
name: "S3 rclone fstests"
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'weed/s3api/**'
|
|
- 'weed/filer/**'
|
|
- 'weed/server/**'
|
|
- 'weed/command/mini.go'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- 'test/s3/rclone_fstests/**'
|
|
- '.github/workflows/s3-rclone-tests.yml'
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'weed/s3api/**'
|
|
- 'weed/filer/**'
|
|
- 'weed/server/**'
|
|
- 'weed/command/mini.go'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- 'test/s3/rclone_fstests/**'
|
|
- '.github/workflows/s3-rclone-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:
|
|
s3-rclone-fstests:
|
|
name: rclone fstests (S3 backend)
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 40
|
|
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' }}
|
|
|
|
- name: Test the result checker
|
|
working-directory: test/s3/rclone_fstests
|
|
run: python3 -m unittest -v test_check_results
|
|
|
|
- name: Run rclone fstests
|
|
working-directory: test/s3/rclone_fstests
|
|
run: make test
|
|
|
|
- name: Show server log on failure
|
|
if: failure()
|
|
working-directory: test/s3/rclone_fstests
|
|
run: tail -200 weed-test.log || true
|
|
|
|
- name: Upload results
|
|
if: always()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: s3-rclone-fstests-results
|
|
path: test/s3/rclone_fstests/results.jsonl
|
|
if-no-files-found: ignore
|
|
retention-days: 7
|