diff --git a/.github/workflows/ci-bdnbenchmark.yml b/.github/workflows/ci-bdnbenchmark.yml index 82274a6f6f..756ab79c7a 100644 --- a/.github/workflows/ci-bdnbenchmark.yml +++ b/.github/workflows/ci-bdnbenchmark.yml @@ -76,29 +76,18 @@ jobs: # Run `github-action-benchmark` action for the Continuous Benchmarking Charts (https://microsoft.github.io/garnet/charts/) - name: Store benchmark result for charts - if: github.ref == 'refs/heads/main' uses: benchmark-action/github-action-benchmark@v1 with: name: ${{matrix.test}} (${{matrix.os}} ${{matrix.framework}} ${{matrix.configuration}}) tool: 'benchmarkdotnet' output-file-path: ./test/BDNPerfTests/BenchmarkDotNet.Artifacts/results/BDN.benchmark.${{ matrix.test }}-report-full-compressed.json github-token: ${{ secrets.GITHUB_TOKEN }} + auto-push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + save-data-file: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} summary-always: true gh-pages-branch: 'continuousbenchmark' benchmark-data-dir-path: 'website/static/charts' - auto-push: true max-items-in-chart: 50 - - # Run `github-action-benchmark` action for the Continuous Benchmarking Summary - - name: Generate summary for benchmark result - if: github.ref != 'refs/heads/main' - uses: benchmark-action/github-action-benchmark@v1 - with: - name: ${{matrix.test}} (${{matrix.os}} ${{matrix.framework}} ${{matrix.configuration}}) - tool: 'benchmarkdotnet' - output-file-path: ./test/BDNPerfTests/BenchmarkDotNet.Artifacts/results/BDN.benchmark.${{ matrix.test }}-report-full-compressed.json - github-token: ${{ secrets.GITHUB_TOKEN }} - summary-always: true - save-data-file: false - gh-pages-branch: 'continuousbenchmark' - benchmark-data-dir-path: 'website/static/charts' + alert-threshold: '10%' + comment-always: true + fail-on-alert: false \ No newline at end of file