Skip to content

Commit e8adc66

Browse files
[CI][Bench] Add extra input to allow triggering nightly (#20923)
1 parent 4e18b57 commit e8adc66

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

.github/workflows/sycl-ur-perf-benchmarking.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,9 @@ on:
5656
description: Save and upload results (to https://intel.github.io/llvm/benchmarks)
5757
type: choice
5858
options:
59-
- false
60-
- true
61-
default: true
62-
exit_on_failure:
63-
description: Fail benchmark script on any error. Limit number of iterations to just test correctness.
64-
type: choice
65-
options:
66-
- false
67-
- true
68-
default: false
59+
- 'false'
60+
- 'true'
61+
default: 'true'
6962
runner:
7063
description: Self-hosted runner to use for the benchmarks
7164
type: choice
@@ -78,6 +71,21 @@ on:
7871
options:
7972
- 'level_zero:gpu'
8073
- 'level_zero_v2:gpu'
74+
exit_on_failure:
75+
description: Fail benchmark script on any error. If true, limit number of iterations to just test correctness.
76+
type: choice
77+
options:
78+
- 'false'
79+
- 'true'
80+
default: 'false'
81+
# Special input to trigger nightly benchmarking; rest of inputs are ignored in that case.
82+
trigger_nightly:
83+
description: Trigger nightly benchmarking (run and save Baseline)
84+
type: choice
85+
options:
86+
- 'false'
87+
- 'true'
88+
default: 'false'
8189

8290
concurrency:
8391
# Cancel a currently running workflow for:
@@ -96,7 +104,7 @@ jobs:
96104
# Manual trigger (dispatch) path:
97105
sanitize_inputs_dispatch:
98106
name: '[Dispatch] Sanitize inputs'
99-
if: github.event_name == 'workflow_dispatch'
107+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.trigger_nightly == 'false' }}
100108
runs-on: ubuntu-latest
101109
env:
102110
COMMIT_HASH: ${{ inputs.commit_hash }}
@@ -194,7 +202,7 @@ jobs:
194202
# Nightly benchmarking path:
195203
build_nightly:
196204
name: '[Nightly] Build SYCL'
197-
if: github.repository == 'intel/llvm' && github.event_name == 'schedule'
205+
if: ${{ github.repository == 'intel/llvm' && (github.event_name == 'schedule' || inputs.trigger_nightly == 'true') }}
198206
uses: ./.github/workflows/sycl-linux-build.yml
199207
secrets: inherit
200208
with:

0 commit comments

Comments
 (0)