2323 description : The version of databend to run
2424 required : true
2525 type : string
26- runner_provider :
27- description : " Self-hosted runner provider, aws or gcp"
28- type : string
29- required : true
30- runner_capacity :
31- description : " Self-hosted runner capacity, spot or on-demand"
32- type : string
33- required : true
34- default : " spot"
3526 target :
3627 description : " The target of benchmark, local or cloud or all"
3728 type : string
@@ -44,59 +35,53 @@ permissions:
4435
4536env :
4637 BUILD_PROFILE : release
47- RUNNER_PROVIDER : ${{ inputs.runner_provider }}
38+ RUNNER_PROVIDER : github
4839
4940jobs :
50- local :
51- timeout-minutes : 60
52- runs-on :
53- - self-hosted
54- - X64
55- - Linux
56- - 8c32g
57- - ${{ inputs.runner_provider }}
58- - ${{ inputs.runner_capacity }}
59- strategy :
60- matrix :
61- dataset :
62- - internal
63- # - hits
64- fail-fast : true
65- max-parallel : 1
66- steps :
67- - uses : actions/checkout@v4
68- if : inputs.source == 'release'
69- with :
70- ref : ${{ inputs.sha }}
71- - uses : actions/checkout@v4
72- if : inputs.source == 'pr'
73- with :
74- ref : " refs/pull/${{ inputs.source_id }}/merge"
75- # - uses: ./.github/actions/setup_bendsql
76- # - uses: ./.github/actions/setup_test
77- # - name: Download artifact
78- # uses: ./.github/actions/artifact_download
79- # with:
80- # sha: ${{ inputs.sha }}
81- # target: x86_64-unknown-linux-gnu
82- # category: full
83- # artifacts: meta,query
84- # - name: Setup Databend Binary
85- # shell: bash
86- # run: |
87- # sudo cp ./target/release/databend-* /usr/local/bin/
88- # databend-query --version
89- # databend-meta --version
90- # - uses: ./.github/actions/benchmark_local
91- # if: inputs.target == 'local' || inputs.target == 'all'
92- # timeout-minutes: 30
93- # id: benchmark
94- # with:
95- # sha: ${{ inputs.sha }}
96- # run_id: ${{ inputs.run_id }}
97- # dataset: ${{ matrix.dataset }}
98- # source: ${{ inputs.source }}
99- # source_id: ${{ inputs.source_id }}
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 }}
10085
10186 load :
10287 runs-on : ubuntu-latest
@@ -182,7 +167,7 @@ jobs:
182167 echo "DROP WAREHOUSE IF EXISTS 'benchmark-${{ inputs.run_id }}';" | bendsql -o table
183168
184169 comment :
185- needs : [local, cloud]
170+ needs : [cloud]
186171 if : inputs.source == 'pr'
187172 runs-on : ubuntu-latest
188173 steps :
@@ -230,7 +215,7 @@ jobs:
230215 number : ${{ inputs.source_id }}
231216
232217 archive :
233- needs : [local, cloud]
218+ needs : [cloud]
234219 if : inputs.source == 'release'
235220 runs-on : ubuntu-latest
236221 strategy :
0 commit comments