Skip to content

Commit 835c351

Browse files
authored
Merge pull request #10519 from everpcpc/fix-benchmark
chore(ci): fix download artifact for benchmark
2 parents 6df81ff + 823f86c commit 835c351

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.github/actions/benchmark_cloud/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ inputs:
3838
runs:
3939
using: "composite"
4040
steps:
41-
- uses: ./.github/actions/setup_bendsql
42-
4341
- name: Install script dependencies
4442
shell: bash
4543
run: |

.github/actions/benchmark_local/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ inputs:
1919
runs:
2020
using: "composite"
2121
steps:
22-
- uses: ./.github/actions/setup_bendsql
23-
2422
- name: Install script dependencies
2523
shell: bash
2624
run: |

.github/actions/setup_bendsql/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
version:
55
description: "bendsql version"
66
required: false
7-
default: v0.3.5
7+
default: v0.3.7
88
runs:
99
using: "composite"
1010
steps:

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616

1717
permissions:
1818
id-token: write
19+
pull-requests: write
1920
contents: write
2021

2122
jobs:

.github/workflows/trusted-benchmark.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ on:
1414

1515
permissions:
1616
id-token: write
17+
pull-requests: write
1718
contents: read
1819

1920
env:
2021
BENCHMARK_S3_PREFIX: s3://repo.databend.rs/benchmark/clickbench
2122

2223
jobs:
2324
metadata:
24-
if: github.event.workflow_run.conclusion == 'success'
25+
if: github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_call'
2526
runs-on: [self-hosted, X64, Linux, dev]
2627
outputs:
2728
sha: ${{ steps.metadata.outputs.sha }}
@@ -67,6 +68,7 @@ jobs:
6768
- tpch
6869
steps:
6970
- uses: actions/checkout@v3
71+
- uses: ./.github/actions/setup_bendsql
7072
- name: Download artifact
7173
run: |
7274
mkdir -p ./target/release
@@ -78,7 +80,7 @@ jobs:
7880
release)
7981
version=${{ needs.metadata.outputs.source_id }}
8082
target=x86_64-unknown-linux-gnu
81-
wget -P distro -qc https://repo.databend.rs/databend/${version}/databend-${version}-${target}.tar.gz
83+
aws s3 cp s3://repo.databend.rs/databend/${version}/databend-${version}-${target}.tar.gz distro/
8284
tar x -C ./target/release -f ./distro/databend-${version}-${target}.tar.gz --strip-components 1 bin/
8385
;;
8486
*)
@@ -159,6 +161,7 @@ jobs:
159161
runs-on: [self-hosted, X64, Linux, dev]
160162
steps:
161163
- uses: actions/checkout@v3
164+
- uses: ./.github/actions/setup_bendsql
162165
- uses: ./.github/actions/benchmark_cloud
163166
with:
164167
sha: ${{ needs.metadata.outputs.sha }}

benchmark/clickbench/benchmark_cloud.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bendsql cloud warehouse create "${CLOUD_WAREHOUSE}" --size "${BENCHMARK_SIZE}" -
4343
bendsql cloud warehouse ls
4444
bendsql cloud warehouse resume "${CLOUD_WAREHOUSE}" --wait
4545

46-
bendsql cloud use "${CLOUD_WAREHOUSE}"
46+
bendsql cloud warehouse use "${CLOUD_WAREHOUSE}"
4747

4848
# Data loaded before the benchmark starts
4949
# bendsql query <"${BENCHMARK_DATASET}/create.sql"

0 commit comments

Comments
 (0)