Skip to content

Commit 27c2ed1

Browse files
committed
Try and keep benchmark run in UI
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
1 parent c8eae59 commit 27c2ed1

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/bench-pr.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ name: PR Benchmarks
44

55
concurrency:
66
# The group causes runs to queue instead of running in parallel.
7-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7+
# Use a unique group for non-benchmark label events so they don't interfere with in-progress benchmark runs.
8+
group: >-
9+
${{ github.workflow }}-${{
10+
github.event.label.name == 'action/benchmark'
11+
&& github.head_ref
12+
|| github.run_id
13+
}}
814
# Don't cancel benchmarks that are already running, instead just queue them up.
915
cancel-in-progress: false
1016

.github/workflows/sql-pr.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
name: PR SQL Benchmarks
44

55
concurrency:
6-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
6+
# Use a unique group for non-benchmark label events so they don't interfere with in-progress benchmark runs.
7+
group: >-
8+
${{ github.workflow }}-${{
9+
github.event.label.name == 'action/benchmark-sql'
10+
&& github.head_ref
11+
|| github.run_id
12+
}}
713
cancel-in-progress: true
814

915
on:

0 commit comments

Comments
 (0)