Skip to content

Commit 305cf0f

Browse files
committed
fix compare result
1 parent ec4ea2f commit 305cf0f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/benchmarks.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,16 @@ jobs:
121121
with:
122122
ref: ${{ env.CHC_BRANCH }}
123123

124+
# The benchmark code runs against the PR's working tree (see the
125+
# PR checkout below), but the comparison tooling lives in this
126+
# workflow's contract on `main`. Stash a copy now so the compare
127+
# step still works even when the PR branch was forked before
128+
# `.github/scripts/compare-jmh.py` existed.
129+
- name: Stash comparison tooling from main
130+
run: |
131+
mkdir -p "$RUNNER_TEMP/jmh-tools"
132+
cp -v .github/scripts/compare-jmh.py "$RUNNER_TEMP/jmh-tools/"
133+
124134
- name: Check out PR
125135
if: steps.pr.outputs.number != ''
126136
run: |
@@ -196,7 +206,7 @@ jobs:
196206
if: steps.pr.outputs.number != '' && steps.baseline.outputs.found == 'true'
197207
continue-on-error: true
198208
run: |
199-
python3 .github/scripts/compare-jmh.py \
209+
python3 "$RUNNER_TEMP/jmh-tools/compare-jmh.py" \
200210
--baseline baseline-results \
201211
--current performance \
202212
--baseline-run-id "${{ steps.baseline.outputs.run_id }}" \

0 commit comments

Comments
 (0)