mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-24 06:50:40 +02:00
* ci: skip setup-go cache on self-hosted runners The module cache is already local on a persistent self-hosted runner; archiving ~/go/pkg/mod into cache.tzst at every job's end is pure cost and can stall (a ~4-minute zstdmt hang was observed on awscli-tests). runner.environment gates the cache to GitHub-hosted runners only. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> * ci: gate the remaining setup-go caches too The first pass only covered go-version-file steps; go-version steps in nine workflows (including awscli-tests' own file) kept uploading the cache archive on self-hosted runners. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
77 lines
2.4 KiB
YAML
77 lines
2.4 KiB
YAML
name: "FUSE P2P Peer Chunk Sharing Integration Tests"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'weed/command/mount*.go'
|
|
- 'weed/mount/**'
|
|
- 'weed/filer/mount_peer_registry*.go'
|
|
- 'weed/server/filer_grpc_server_mount_peer.go'
|
|
- 'weed/pb/mount_peer.proto'
|
|
- 'weed/pb/filer.proto'
|
|
- 'test/fuse_p2p/**'
|
|
- '.github/workflows/fuse-p2p-integration.yml'
|
|
- '.github/actions/fix-fusermount-setuid/**'
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- 'weed/command/mount*.go'
|
|
- 'weed/mount/**'
|
|
- 'weed/filer/mount_peer_registry*.go'
|
|
- 'weed/server/filer_grpc_server_mount_peer.go'
|
|
- 'weed/pb/mount_peer.proto'
|
|
- 'weed/pb/filer.proto'
|
|
- 'test/fuse_p2p/**'
|
|
- '.github/actions/fix-fusermount-setuid/**'
|
|
|
|
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:
|
|
fuse-p2p-integration:
|
|
name: FUSE P2P Peer Chunk Sharing
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 20
|
|
|
|
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: Configure FUSE
|
|
run: |
|
|
# Nothing to install: fuse3 ships fusermount3 and is pre-installed,
|
|
# and go-fuse is pure Go, so the libfuse headers were never linked
|
|
# against.
|
|
echo 'user_allow_other' | sudo tee -a /etc/fuse.conf
|
|
sudo chmod 644 /etc/fuse.conf
|
|
|
|
- name: Repair the fusermount3 setuid bit
|
|
uses: ./.github/actions/fix-fusermount-setuid
|
|
|
|
- name: Build SeaweedFS
|
|
run: go build -o weed/weed -buildvcs=false ./weed
|
|
|
|
- name: Run P2P integration tests
|
|
timeout-minutes: 15
|
|
env:
|
|
WEED_BINARY: ${{ github.workspace }}/weed/weed
|
|
run: go test -v -count=1 -timeout=12m ./test/fuse_p2p/...
|
|
|
|
- name: Upload logs on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: fuse-p2p-test-logs
|
|
path: /tmp/seaweedfs-fuse-p2p-logs/
|
|
retention-days: 3
|