Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Restore paired benchmark workflow after merges
pulse-triage[bot]106e115e4411
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.ymlindex 745716e1cc..68d666c0ac 100644--- a/.github/workflows/build-and-test.yml+++ b/.github/workflows/build-and-test.yml@@ -309,13 +309,21 @@ jobs:needs: changesif: needs.changes.outputs.code == 'true'runs-on: ubuntu-24.04- timeout-minutes: 30+ timeout-minutes: 35steps:- name: Checkout repositoryuses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:persist-credentials: false+ - name: Checkout pull request base for paired comparison+ if: github.event_name == 'pull_request'+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1+ with:+ persist-credentials: false+ ref: ${{ github.event.pull_request.base.sha }}+ path: benchmark-base+- name: Set up Gouses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0with:@@ -327,64 +335,48 @@ jobs:mkdir -p internal/api/frontend-modern/dist[ -f internal/api/frontend-modern/dist/index.html ] || \printf '<!doctype html><title>ci embed stub</title>\n' > internal/api/frontend-modern/dist/index.html+ if [ -d benchmark-base ]; then+ mkdir -p benchmark-base/internal/api/frontend-modern/dist+ [ -f benchmark-base/internal/api/frontend-modern/dist/index.html ] || \+ printf '<!doctype html><title>ci embed stub</title>\n' \+ > benchmark-base/internal/api/frontend-modern/dist/index.html+ fi- - name: Go benchmarks- timeout-minutes: 20+ - name: Go benchmarks (non-PR)+ if: github.event_name != 'pull_request'+ timeout-minutes: 15env:- PULSE_DATA_DIR: /tmp/pulse-bench-data- run: |- set -o pipefail- go test -bench=. -benchmem -count=5 -run=^$ -benchtime=100ms -timeout=5m \- ./pkg/metrics/ \- ./pkg/auth/ \- ./internal/api/ \- ./internal/monitoring/ \- ./internal/unifiedresources/ \- ./internal/dockeragent/ \- ./cmd/pulse-agent/ \- ./internal/hostagent/ \- ./internal/hostmetrics/ \- | tee bench-results.txt-- - name: Upload benchmark results- if: always()- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1- with:- name: bench-results- path: bench-results.txt- retention-days: 7+ PULSE_BENCH_SAMPLE_COUNT: "10"+ run: bash scripts/run-ci-benchmarks.sh++ - name: Paired base and candidate benchmarks (pull requests)+ if: github.event_name == 'pull_request'+ timeout-minutes: 25+ env:+ PULSE_BENCH_BASELINE_DIR: ${{ github.workspace }}/benchmark-base+ PULSE_BENCH_SAMPLE_COUNT: "10"+ run: bash scripts/run-ci-benchmarks.sh- name: Install benchstatrun: go install golang.org/x/perf/cmd/[email protected]- - name: Save benchmark baseline (main branch)- if: github.ref == 'refs/heads/main'- run: cp bench-results.txt bench-baseline.txt-- - name: Cache benchmark baseline (main branch)- if: github.ref == 'refs/heads/main'- uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5- with:- path: bench-baseline.txt- key: go-bench-baseline-${{ github.sha }}-- - name: Restore benchmark baseline (PRs)- if: github.event_name == 'pull_request'- uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5- with:- path: bench-baseline.txt- key: go-bench-baseline-- restore-keys: go-bench-baseline--- name: Compare benchmarks against baselineif: github.event_name == 'pull_request'run: |set -eo pipefail- if [ ! -f bench-baseline.txt ]; then- echo "No benchmark baseline found (first PR against main?). Skipping comparison."- exit 0- fiecho "=== Benchmark comparison (baseline vs current) ==="benchstat bench-baseline.txt bench-results.txt | tee bench-comparison.txtecho ""bash scripts/check-bench-regression.sh bench-comparison.txt++ - name: Upload benchmark evidence+ if: always()+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ with:+ name: bench-results+ path: |+ bench-results.txt+ bench-baseline.txt+ bench-comparison.txt+ if-no-files-found: warn+ retention-days: 7