Skip to content

Commit 61cf28d

Browse files
authored
[CI][Benchmarks] Fix pushing results to new branch (#20544)
There is a bug that results in Nightly Benchmarks to fail pushing new results to the new results branch on `intel/llvm`: ``` [sycl d0defc8] [GHA] Upload compute-benchmarks results from https://github.com/intel/llvm/actions/runs/19053464326 2 files changed, 15321 insertions(+) create mode 100644 data.json create mode 100644 results/Baseline_BMG_L0v2_20251104_003023.json remote: error: GH006: Protected branch update failed for refs/heads/sycl. remote: remote: - Changes must be made through a pull request. remote: remote: - You're not authorized to push to this branch. Visit https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches for more information. ``` This patch fixes the benchmarking workflow to properly push to the correct [sycl-benchmark-ci-results](https://github.com/intel/llvm/tree/sycl-benchmark-ci-results) branch.
1 parent fce4f12 commit 61cf28d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

devops/actions/run-tests/benchmark/action.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ inputs:
3737
type: string
3838
required: False
3939

40-
env:
41-
BENCHMARK_RESULTS_BRANCH: "sycl-benchmark-ci-results"
42-
4340
runs:
4441
# composite actions don't make use of 'name', so copy-paste names as a comment in the first line of each step
4542
using: "composite"
@@ -164,6 +161,14 @@ runs:
164161
sudo cmake --install build
165162
166163
cd -
164+
- name: Set env var for results branch
165+
shell: bash
166+
run: |
167+
# Set env var for results branch
168+
# Set BENCHMARK_RESULTS_BRANCH globally for all subsequent steps.
169+
# This has to be done this way because of limits of composite actions.
170+
BENCHMARK_RESULTS_BRANCH="sycl-benchmark-ci-results"
171+
echo "BENCHMARK_RESULTS_BRANCH=$BENCHMARK_RESULTS_BRANCH" >> $GITHUB_ENV
167172
- name: Checkout results repo
168173
uses: actions/checkout@v5
169174
with:

0 commit comments

Comments
 (0)