|
38 | 38 | RUNNER_PROVIDER: github
|
39 | 39 |
|
40 | 40 | 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 }} |
85 | 92 |
|
86 | 93 | load:
|
87 | 94 | runs-on: ubuntu-latest
|
@@ -167,7 +174,7 @@ jobs:
|
167 | 174 | echo "DROP WAREHOUSE IF EXISTS 'benchmark-${{ inputs.run_id }}';" | bendsql -o table
|
168 | 175 |
|
169 | 176 | comment:
|
170 |
| - needs: [cloud] |
| 177 | + needs: [cloud, local] |
171 | 178 | if: inputs.source == 'pr'
|
172 | 179 | runs-on: ubuntu-latest
|
173 | 180 | steps:
|
@@ -215,7 +222,7 @@ jobs:
|
215 | 222 | number: ${{ inputs.source_id }}
|
216 | 223 |
|
217 | 224 | archive:
|
218 |
| - needs: [cloud] |
| 225 | + needs: [cloud, local] |
219 | 226 | if: inputs.source == 'release'
|
220 | 227 | runs-on: ubuntu-latest
|
221 | 228 | strategy:
|
|
0 commit comments