From 33efd040f27b5ae4217c558d65df536cd8c80726 Mon Sep 17 00:00:00 2001 From: "Thing-han, Lim" <15379156+potsrevennil@users.noreply.github.com> Date: Mon, 18 Nov 2024 16:10:26 +0800 Subject: [PATCH] Add benchmark regression alert Not sure what's the appropriate value for the alert threshold, set it to 3% for now. Signed-off-by: Thing-han, Lim <15379156+potsrevennil@users.noreply.github.com> --- .github/actions/bench/action.yml | 3 +++ .github/workflows/bench.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/actions/bench/action.yml b/.github/actions/bench/action.yml index c7f38eb9b..2dc74aeb7 100644 --- a/.github/actions/bench/action.yml +++ b/.github/actions/bench/action.yml @@ -92,3 +92,6 @@ runs: output-file-path: output.json github-token: ${{ inputs.gh_token }} auto-push: true + comment-on-alert: true + summary-always: true + alert-threshold: 103% diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 407bb4afd..014effa23 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -3,6 +3,7 @@ name: Bench permissions: contents: read + pull-requests: write on: workflow_dispatch: push: