Skip to content

Commit 1acf051

Browse files
[stable2506] Use stable2506 branch instead of master to check benches (#9478)
This PR adjusts `cargo-check-benches` job so that it uses `stable` branch as reference instead of `master` for the benches comparison
1 parent ab7c86b commit 1acf051

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/tests-misc.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: tests misc
33
on:
44
push:
55
branches:
6-
- master
6+
- stable2506
77
pull_request:
88
types: [opened, synchronize, reopened, ready_for_review]
99
merge_group:
@@ -127,17 +127,17 @@ jobs:
127127
timeout-minutes: 60
128128
strategy:
129129
matrix:
130-
branch: [master, current]
130+
branch: [stable2506, current]
131131
runs-on: ${{ needs.preflight.outputs.RUNNER }}
132132
container:
133133
image: ${{ needs.preflight.outputs.IMAGE }}
134134
steps:
135135
- name: Checkout
136136
uses: actions/checkout@v4
137137
with:
138-
# if branch is master, use the branch, otherwise set empty string, so it uses the current context
138+
# if branch is stable2506, use the branch, otherwise set empty string, so it uses the current context
139139
# either PR (including forks) or merge group (main repo)
140-
ref: ${{ matrix.branch == 'master' && matrix.branch || '' }}
140+
ref: ${{ matrix.branch == 'stable2506' && matrix.branch || '' }}
141141

142142
- name: script
143143
run: |
@@ -166,12 +166,12 @@ jobs:
166166
- name: Checkout
167167
uses: actions/checkout@v4
168168

169-
- name: Download artifact (master run)
169+
- name: Download artifact (stable2506 run)
170170
uses: actions/[email protected]
171171
continue-on-error: true
172172
with:
173-
name: cargo-check-benches-master-${{ github.sha }}
174-
path: ./artifacts/master
173+
name: cargo-check-benches-stable2506-${{ github.sha }}
174+
path: ./artifacts/stable2506
175175

176176
- name: Download artifact (current run)
177177
uses: actions/[email protected]
@@ -183,22 +183,22 @@ jobs:
183183
- name: script
184184
id: compare
185185
run: |
186-
if [ "${{ github.ref_name }}" = "master" ]; then
187-
echo -e "Exiting on master branch"
186+
if [ "${{ github.ref_name }}" = "stable2506" ]; then
187+
echo -e "Exiting on stabel branch"
188188
exit 0
189189
fi
190190
191191
# fail if no artifacts
192-
if [ ! -d ./artifacts/master ] || [ ! -d ./artifacts/current ]; then
192+
if [ ! -d ./artifacts/stable2506 ] || [ ! -d ./artifacts/current ]; then
193193
echo "No artifacts found"
194194
exit 1
195195
fi
196196
197197
docker run --rm \
198-
-v $PWD/artifacts/master:/artifacts/master \
198+
-v $PWD/artifacts/stable2506:/artifacts/stable2506 \
199199
-v $PWD/artifacts/current:/artifacts/current \
200200
paritytech/node-bench-regression-guard:latest \
201-
node-bench-regression-guard --reference /artifacts/master --compare-with /artifacts/current
201+
node-bench-regression-guard --reference /artifacts/stable2506 --compare-with /artifacts/current
202202
203203
if [ $? -ne 0 ]; then
204204
FAILED_MSG='### node-bench-regression-guard failed ❌, check the regression in *cargo-check-benches* job'

0 commit comments

Comments
 (0)