mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-20 03:13:53 +01:00
* telemetry: refresh the server module to the root module's dependency versions The server module replaces seaweedfs with ../.., so root dependency bumps raised prometheus/common, prometheus/procfs and x/sys past the versions its go.mod listed, and go build refused to run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: run the telemetry integration test on root go.mod changes The telemetry server module builds against the root module through a replace directive, so a root dependency bump can leave its go.mod stale without touching telemetry/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
name: Telemetry Integration Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'telemetry/**'
|
|
- 'weed/telemetry/**'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/telemetry-integration.yml'
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'telemetry/**'
|
|
- 'weed/telemetry/**'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/telemetry-integration.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:
|
|
telemetry-integration-test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
- name: Checkout 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: Build telemetry server
|
|
run: cd telemetry/server && go build -o telemetry-server .
|
|
|
|
- name: Run telemetry integration test
|
|
run: go run telemetry/test/integration.go
|
|
|
|
- name: Upload test logs on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: telemetry-test-logs
|
|
path: telemetry-server-test.log
|
|
retention-days: 7
|