Skip to content

Commit 4396ba1

Browse files
authored
ci: add local benchmark back (#18306)
1 parent 4498359 commit 4396ba1

File tree

2 files changed

+53
-54
lines changed

2 files changed

+53
-54
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ jobs:
121121
- Linux
122122
- 16c64g
123123
- aws
124-
- on-demand
125124
needs: create_release
126125
strategy:
127126
fail-fast: false
@@ -161,7 +160,6 @@ jobs:
161160
- Linux
162161
- 16c64g
163162
- aws
164-
- on-demand
165163
needs: create_release
166164
strategy:
167165
fail-fast: false
@@ -195,7 +193,6 @@ jobs:
195193
- Linux
196194
- 2c8g
197195
- aws
198-
- on-demand
199196
needs: [create_release, build_default]
200197
strategy:
201198
fail-fast: false
@@ -237,7 +234,6 @@ jobs:
237234
- Linux
238235
- 2c8g
239236
- aws
240-
- on-demand
241237
needs: [create_release, build_default]
242238
strategy:
243239
fail-fast: false
@@ -287,7 +283,6 @@ jobs:
287283
- Linux
288284
- 2c8g
289285
- aws
290-
- on-demand
291286
needs: [create_release, build_default]
292287
steps:
293288
- name: Checkout
@@ -367,7 +362,6 @@ jobs:
367362
- Linux
368363
- 2c8g
369364
- aws
370-
- on-demand
371365
needs: [create_release, build_docker]
372366
strategy:
373367
fail-fast: false
@@ -443,7 +437,6 @@ jobs:
443437
- Linux
444438
- 2c8g
445439
- aws
446-
- on-demand
447440
needs: [create_release, build_default]
448441
strategy:
449442
matrix:
@@ -534,7 +527,6 @@ jobs:
534527
- Linux
535528
- 2c8g
536529
- aws
537-
- on-demand
538530
needs: [create_release, notify]
539531
steps:
540532
- uses: actions/checkout@v4

.github/workflows/reuse.benchmark.yml

Lines changed: 53 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -38,50 +38,57 @@ env:
3838
RUNNER_PROVIDER: github
3939

4040
jobs:
41-
# local:
42-
# timeout-minutes: 60
43-
# runs-on: ubuntu-latest
44-
# strategy:
45-
# matrix:
46-
# dataset:
47-
# - internal
48-
# # - hits
49-
# fail-fast: true
50-
# max-parallel: 1
51-
# steps:
52-
# - uses: actions/checkout@v4
53-
# if: inputs.source == 'release'
54-
# with:
55-
# ref: ${{ inputs.sha }}
56-
# - uses: actions/checkout@v4
57-
# if: inputs.source == 'pr'
58-
# with:
59-
# ref: "refs/pull/${{ inputs.source_id }}/merge"
60-
# - uses: ./.github/actions/setup_bendsql
61-
# - uses: ./.github/actions/setup_test
62-
# - name: Download artifact
63-
# uses: ./.github/actions/artifact_download
64-
# with:
65-
# sha: ${{ inputs.sha }}
66-
# target: x86_64-unknown-linux-gnu
67-
# category: full
68-
# artifacts: meta,query
69-
# - name: Setup Databend Binary
70-
# shell: bash
71-
# run: |
72-
# sudo cp ./target/release/databend-* /usr/local/bin/
73-
# databend-query --version
74-
# databend-meta --version
75-
# - uses: ./.github/actions/benchmark_local
76-
# if: inputs.target == 'local' || inputs.target == 'all'
77-
# timeout-minutes: 30
78-
# id: benchmark
79-
# with:
80-
# sha: ${{ inputs.sha }}
81-
# run_id: ${{ inputs.run_id }}
82-
# dataset: ${{ matrix.dataset }}
83-
# source: ${{ inputs.source }}
84-
# source_id: ${{ inputs.source_id }}
41+
local:
42+
timeout-minutes: 60
43+
runs-on:
44+
- self-hosted
45+
- X64
46+
- Linux
47+
- 8c32g
48+
- aws
49+
strategy:
50+
matrix:
51+
dataset:
52+
- internal
53+
# - hits
54+
fail-fast: true
55+
max-parallel: 1
56+
env:
57+
RUNNER_PROVIDER: aws
58+
steps:
59+
- uses: actions/checkout@v4
60+
if: inputs.source == 'release'
61+
with:
62+
ref: ${{ inputs.sha }}
63+
- uses: actions/checkout@v4
64+
if: inputs.source == 'pr'
65+
with:
66+
ref: "refs/pull/${{ inputs.source_id }}/merge"
67+
- uses: ./.github/actions/setup_bendsql
68+
- uses: ./.github/actions/setup_test
69+
- name: Download artifact
70+
uses: ./.github/actions/artifact_download
71+
with:
72+
sha: ${{ inputs.sha }}
73+
target: x86_64-unknown-linux-gnu
74+
category: full
75+
artifacts: meta,query
76+
- name: Setup Databend Binary
77+
shell: bash
78+
run: |
79+
sudo cp ./target/release/databend-* /usr/local/bin/
80+
databend-query --version
81+
databend-meta --version
82+
- uses: ./.github/actions/benchmark_local
83+
if: inputs.target == 'local' || inputs.target == 'all'
84+
timeout-minutes: 30
85+
id: benchmark
86+
with:
87+
sha: ${{ inputs.sha }}
88+
run_id: ${{ inputs.run_id }}
89+
dataset: ${{ matrix.dataset }}
90+
source: ${{ inputs.source }}
91+
source_id: ${{ inputs.source_id }}
8592

8693
load:
8794
runs-on: ubuntu-latest
@@ -167,7 +174,7 @@ jobs:
167174
echo "DROP WAREHOUSE IF EXISTS 'benchmark-${{ inputs.run_id }}';" | bendsql -o table
168175
169176
comment:
170-
needs: [cloud]
177+
needs: [cloud, local]
171178
if: inputs.source == 'pr'
172179
runs-on: ubuntu-latest
173180
steps:
@@ -215,7 +222,7 @@ jobs:
215222
number: ${{ inputs.source_id }}
216223

217224
archive:
218-
needs: [cloud]
225+
needs: [cloud, local]
219226
if: inputs.source == 'release'
220227
runs-on: ubuntu-latest
221228
strategy:

0 commit comments

Comments
 (0)