mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-26 23:10:44 +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.
74 lines
2.1 KiB
YAML
74 lines
2.1 KiB
YAML
name: "TLS Rotation Integration Tests"
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'weed/**'
|
|
- 'test/tls_rotation/**'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/tls-rotation-tests.yml'
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'weed/**'
|
|
- 'test/tls_rotation/**'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/tls-rotation-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:
|
|
tls-rotation-tests:
|
|
name: TLS Rotation Integration Tests
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 10
|
|
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 TLS Rotation Integration Tests
|
|
working-directory: test/tls_rotation
|
|
run: |
|
|
go test -v -count=1 -timeout 5m
|
|
|
|
- name: Collect server logs on failure
|
|
if: failure()
|
|
run: |
|
|
echo "Collecting master logs from temp directories..."
|
|
mkdir -p /tmp/tls-rotation-test-logs
|
|
find /tmp -maxdepth 1 -type d -name "TestMasterHTTPS*" 2>/dev/null | while read dir; do
|
|
if [ -d "$dir" ]; then
|
|
echo "Found test directory: $dir"
|
|
cp -r "$dir" /tmp/tls-rotation-test-logs/ 2>/dev/null || true
|
|
fi
|
|
done
|
|
echo "Collected logs:"
|
|
find /tmp/tls-rotation-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: tls-rotation-test-logs
|
|
path: /tmp/tls-rotation-test-logs/
|
|
retention-days: 14
|