Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/actions/benchmark_cloud/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ inputs:
runs:
using: "composite"
steps:
- uses: ./.github/actions/setup_bendsql

- name: Install script dependencies
shell: bash
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/actions/benchmark_local/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ inputs:
runs:
using: "composite"
steps:
- uses: ./.github/actions/setup_bendsql

- name: Install script dependencies
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup_bendsql/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
version:
description: "bendsql version"
required: false
default: v0.3.5
default: v0.3.7
runs:
using: "composite"
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:

permissions:
id-token: write
pull-requests: write
contents: write

jobs:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/trusted-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ on:

permissions:
id-token: write
pull-requests: write
contents: read

env:
BENCHMARK_S3_PREFIX: s3://repo.databend.rs/benchmark/clickbench

jobs:
metadata:
if: github.event.workflow_run.conclusion == 'success'
if: github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_call'
runs-on: [self-hosted, X64, Linux, dev]
outputs:
sha: ${{ steps.metadata.outputs.sha }}
Expand Down Expand Up @@ -67,6 +68,7 @@ jobs:
- tpch
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup_bendsql
- name: Download artifact
run: |
mkdir -p ./target/release
Expand All @@ -78,7 +80,7 @@ jobs:
release)
version=${{ needs.metadata.outputs.source_id }}
target=x86_64-unknown-linux-gnu
wget -P distro -qc https://repo.databend.rs/databend/${version}/databend-${version}-${target}.tar.gz
aws s3 cp s3://repo.databend.rs/databend/${version}/databend-${version}-${target}.tar.gz distro/
tar x -C ./target/release -f ./distro/databend-${version}-${target}.tar.gz --strip-components 1 bin/
;;
*)
Expand Down Expand Up @@ -159,6 +161,7 @@ jobs:
runs-on: [self-hosted, X64, Linux, dev]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup_bendsql
- uses: ./.github/actions/benchmark_cloud
with:
sha: ${{ needs.metadata.outputs.sha }}
Expand Down
2 changes: 1 addition & 1 deletion benchmark/clickbench/benchmark_cloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ bendsql cloud warehouse create "${CLOUD_WAREHOUSE}" --size "${BENCHMARK_SIZE}" -
bendsql cloud warehouse ls
bendsql cloud warehouse resume "${CLOUD_WAREHOUSE}" --wait

bendsql cloud use "${CLOUD_WAREHOUSE}"
bendsql cloud warehouse use "${CLOUD_WAREHOUSE}"

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