mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-30 00:40:44 +01:00
* ci: cancel superseded workflow runs on PR pushes
PR-triggered workflows without a concurrency group keep running (and
holding runner slots) after a force-push or quick follow-up commit
supersedes them. Add the same group/cancel-in-progress block the go
workflow already uses, keyed on head_ref, to the remaining PR workflows.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* ci: key concurrency groups on PR number or ref, not head_ref
github.head_ref is empty on tag pushes and manual runs (every run then
shares one group and cancels the last) and collides across forks when
two PRs share a branch name. pull_request.number is unique per PR;
github.ref covers push/tag/dispatch. Applied to all workflows using the
pattern, including pre-existing ones.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* ci: restrict cancel-in-progress to PR and branch-push runs
* ci: serialize container_latest manual runs by destination tag
Two workflow_dispatch runs sharing an image_tag could otherwise build
concurrently: their per-arch images publish to the same platform tags,
so one run's create-manifest job can combine platforms from different
source refs. Group dispatch runs by the destination tag (with
cancel-in-progress already disabled for non-PR/non-branch events) so
same-tag publishes queue instead of interleaving.
* ci: serialize manual publish runs by destination tag in remaining container workflows
* ci: group foundationdb release dispatch runs by release tag
A manual run now shares the tag-push concurrency group for the same
release, so a re-publish of a tag queues behind (or ahead of) the push
run instead of racing it on the same image tag.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* ci: serialize foundationdb_version dispatch runs by destination tag
Two manual runs resolving to the same docker tag now share a concurrency
group (explicit image_tag, else the computed
foundationdb_<fdb>_seaweedfs_<ref> default), so they queue instead of
racing pushes to the same tag.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* ci: drop unsupported toLower() from foundationdb_version concurrency group
* ci: key rocksdb_version dispatch group on its published tag
* ci: queue publish runs via turnstyle instead of cancel-free shared groups
* Revert "ci: queue publish runs via turnstyle instead of cancel-free shared groups"
This reverts commit 039148f8d5.
* ci: queue same-tag publish runs instead of replacing the pending one
Dispatch/tag-only workflows can never cancel in progress, so opt their
concurrency groups into queue: max — up to 100 same-tag publishes wait
in line rather than each new dispatch cancelling the pending one.
---------
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
169 lines
4.4 KiB
YAML
169 lines
4.4 KiB
YAML
name: "S3 PyArrow Parquet Tests"
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- 'weed/s3api/**'
|
|
- 'weed/filer/**'
|
|
- 'test/s3/parquet/**'
|
|
- '.github/workflows/s3-parquet-tests.yml'
|
|
pull_request:
|
|
branches: [master]
|
|
paths:
|
|
- 'weed/s3api/**'
|
|
- 'weed/filer/**'
|
|
- 'test/s3/parquet/**'
|
|
- '.github/workflows/s3-parquet-tests.yml'
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
S3_ACCESS_KEY: some_access_key1
|
|
S3_SECRET_KEY: some_secret_key1
|
|
S3_ENDPOINT_URL: http://localhost:8333
|
|
BUCKET_NAME: test-parquet-bucket
|
|
|
|
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/')) }}
|
|
|
|
jobs:
|
|
parquet-integration-tests:
|
|
name: PyArrow Parquet Tests (Python ${{ matrix.python-version }})
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ['3.9', '3.11', '3.12']
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v7
|
|
with:
|
|
go-version: ^1.26
|
|
cache: true
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v7
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: 'pip'
|
|
cache-dependency-path: 'test/s3/parquet/requirements.txt'
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y lsof netcat-openbsd
|
|
|
|
- name: Build SeaweedFS
|
|
run: |
|
|
cd weed
|
|
go build -v
|
|
sudo cp weed /usr/local/bin/
|
|
weed version
|
|
|
|
- name: Run PyArrow Parquet integration tests
|
|
run: |
|
|
cd test/s3/parquet
|
|
make test-with-server
|
|
env:
|
|
SEAWEEDFS_BINARY: weed
|
|
S3_PORT: 8333
|
|
FILER_PORT: 8888
|
|
VOLUME_PORT: 8080
|
|
MASTER_PORT: 9333
|
|
VOLUME_MAX_SIZE_MB: 50
|
|
|
|
- name: Run implicit directory fix tests
|
|
run: |
|
|
cd test/s3/parquet
|
|
make test-implicit-dir-with-server
|
|
env:
|
|
SEAWEEDFS_BINARY: weed
|
|
S3_PORT: 8333
|
|
FILER_PORT: 8888
|
|
VOLUME_PORT: 8080
|
|
MASTER_PORT: 9333
|
|
|
|
- name: Run PyArrow native S3 filesystem tests
|
|
run: |
|
|
cd test/s3/parquet
|
|
make test-native-s3-with-server
|
|
env:
|
|
SEAWEEDFS_BINARY: weed
|
|
S3_PORT: 8333
|
|
FILER_PORT: 8888
|
|
VOLUME_PORT: 8080
|
|
MASTER_PORT: 9333
|
|
|
|
- name: Run cross-filesystem compatibility tests
|
|
run: |
|
|
cd test/s3/parquet
|
|
TEST_QUICK=1 make test-cross-fs-with-server
|
|
env:
|
|
SEAWEEDFS_BINARY: weed
|
|
S3_PORT: 8333
|
|
FILER_PORT: 8888
|
|
VOLUME_PORT: 8080
|
|
MASTER_PORT: 9333
|
|
|
|
- name: Run SSE-S3 encryption compatibility tests
|
|
run: |
|
|
cd test/s3/parquet
|
|
make test-sse-s3-compat
|
|
env:
|
|
SEAWEEDFS_BINARY: weed
|
|
S3_PORT: 8333
|
|
FILER_PORT: 8888
|
|
VOLUME_PORT: 8080
|
|
MASTER_PORT: 9333
|
|
|
|
- name: Upload test logs on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: test-logs-python-${{ matrix.python-version }}
|
|
path: |
|
|
/tmp/seaweedfs-parquet-*.log
|
|
test/s3/parquet/*.log
|
|
retention-days: 7
|
|
|
|
- name: Cleanup
|
|
if: always()
|
|
run: |
|
|
cd test/s3/parquet
|
|
make stop-seaweedfs-safe || true
|
|
make clean || true
|
|
|
|
unit-tests:
|
|
name: Go Unit Tests (Implicit Directory)
|
|
runs-on: ubuntu-latest
|
|
# Leave time for setup and the focused run before the nine-minute suite.
|
|
timeout-minutes: 20
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v7
|
|
with:
|
|
go-version: ^1.26
|
|
cache: true
|
|
|
|
- name: Run Go unit tests
|
|
run: |
|
|
cd weed/s3api
|
|
go test -v -run TestImplicitDirectory
|
|
|
|
- name: Run all S3 API tests
|
|
run: |
|
|
cd weed/s3api
|
|
go test -v -timeout 9m
|
|
|