mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-26 15:00:48 +01:00
GitHub is retiring ubuntu-22.04; move all 94 runs-on pins across 40 workflows to ubuntu-24.04. rust_binaries_release: the arm64 cross step was jammy-era — noble keeps apt sources in deb822 ubuntu.sources (the sources.list edit was a silent no-op that left amd64 repos open to arm64 and 404'd) and ports suites must say noble. Pin deb822 stanzas to amd64 and add noble ports entries.
81 lines
2.5 KiB
YAML
81 lines
2.5 KiB
YAML
name: "EC Integration Tests"
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'weed/**'
|
|
- 'test/erasure_coding/**'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/ec-integration-tests.yml'
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'weed/**'
|
|
- 'test/erasure_coding/**'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/ec-integration-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:
|
|
ec-integration-tests:
|
|
name: EC Integration Tests
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v7
|
|
with:
|
|
cache: ${{ runner.environment == 'github-hosted' }}
|
|
go-version: ^1.26
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Build weed binary
|
|
run: |
|
|
cd weed && go build -o weed .
|
|
|
|
- name: Run EC Integration Tests
|
|
working-directory: test/erasure_coding
|
|
run: |
|
|
# The suite now includes the interruption matrix and runs close to Go's
|
|
# default 10m binary timeout on slower runners; bound it by the job's
|
|
# 30m budget instead.
|
|
go test -v -timeout 25m
|
|
|
|
- name: Collect server logs on failure
|
|
if: failure()
|
|
run: |
|
|
echo "Collecting server logs from temp directories..."
|
|
mkdir -p /tmp/ec-test-logs
|
|
# Find all temp directories created by the tests (they persist on failure with t.TempDir())
|
|
find /tmp -maxdepth 1 -type d \( -name "TestEC*" -o -name "TestDisk*" -o -name "TestCross*" -o -name "TestEvacuation*" \) 2>/dev/null | while read dir; do
|
|
if [ -d "$dir" ]; then
|
|
echo "Found test directory: $dir"
|
|
# Copy the entire directory structure to preserve organization
|
|
cp -r "$dir" /tmp/ec-test-logs/ 2>/dev/null || true
|
|
fi
|
|
done
|
|
# List what we collected
|
|
echo "Collected logs:"
|
|
find /tmp/ec-test-logs -type f -name "*.log" 2>/dev/null || echo "No logs found"
|
|
|
|
- name: Archive logs
|
|
if: failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: ec-integration-test-logs
|
|
path: |
|
|
/tmp/ec-test-logs/
|
|
test/erasure_coding/
|
|
if-no-files-found: warn |