From a41d4bb35834a747cb2cfe66060df8d81cd2a895 Mon Sep 17 00:00:00 2001 From: odubajDT Date: Sat, 25 Mar 2023 12:07:52 +0100 Subject: [PATCH] fix: benchmark cronjob Signed-off-by: odubajDT --- .github/workflows/publish-benchmark.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/publish-benchmark.yaml b/.github/workflows/publish-benchmark.yaml index 19d93bdc2..b30027262 100644 --- a/.github/workflows/publish-benchmark.yaml +++ b/.github/workflows/publish-benchmark.yaml @@ -21,6 +21,9 @@ jobs: with: go-version: ${{ env.GO_VERSION }} + - name: Workspace init + run: make workspace-init + - name: Run benchmark run: set -o pipefail; go test -bench=Bench -short -benchtime=5s -benchmem ./core/... | tee output.txt @@ -32,3 +35,7 @@ jobs: output-file-path: output.txt github-token: ${{ secrets.GITHUB_TOKEN }} auto-push: true + # Show alert with commit comment on detecting possible performance regression + alert-threshold: "130%" + comment-on-alert: true + fail-on-alert: false