mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-08-21 06:36:54 +00:00
Four workflows ran apt to install libfuse3-dev before every FUSE job. Nothing needs it: go-fuse implements the protocol in pure Go, no cgo in the tree references fuse, and the package does not even provide the fusermount3 the mount actually execs - fuse3 does, and it is already on the runner image, which is why the setuid-repair step finds it. So the step downloaded a dev package to build against headers no compiler ever opened, and it is the step that has been hanging whenever the Ubuntu mirror goes slow. Configuring /etc/fuse.conf is all that is left.
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
name: "FUSE DLM Integration Tests"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'weed/command/mount*.go'
|
|
- 'weed/mount/**'
|
|
- 'weed/cluster/**'
|
|
- 'test/fuse_dlm/**'
|
|
- '.github/workflows/fuse-dlm-integration.yml'
|
|
- '.github/actions/fix-fusermount-setuid/**'
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- 'weed/command/mount*.go'
|
|
- 'weed/mount/**'
|
|
- 'weed/cluster/**'
|
|
- 'test/fuse_dlm/**'
|
|
- '.github/actions/fix-fusermount-setuid/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.head_ref || github.ref }}/fuse-dlm-integration
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
fuse-dlm-integration:
|
|
name: FUSE DLM Integration Tests
|
|
runs-on: ubuntu-22.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'
|
|
|
|
- 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 DLM integration tests
|
|
timeout-minutes: 25
|
|
env:
|
|
WEED_BINARY: ${{ github.workspace }}/weed/weed
|
|
run: go test -v -count=1 -timeout=20m ./test/fuse_dlm/...
|
|
|
|
- name: Upload logs on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: fuse-dlm-test-logs
|
|
path: /tmp/seaweedfs-fuse-dlm-logs/
|
|
retention-days: 3
|