Skip to content

chore(ci): add local benchmark #17377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
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
30 changes: 30 additions & 0 deletions .github/actions/test_benchmark/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Test Benchmark"
description: "Test Benchmark"
runs:
using: "composite"
steps:
- uses: ./.github/actions/setup_test
with:
artifacts: meta,query
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Setup Databend Binary
shell: bash
run: |
sudo cp ./target/${BUILD_PROFILE}/databend-* /usr/local/bin/
databend-query --version
databend-meta --version
- name: Run Benchmark
working-directory: benchmark/clickbench
env:
BENCHMARK_ID: ${{ inputs.run_id }}
BENCHMARK_DATASET: internal
shell: bash
run: |
./benchmark_local.sh
- name: Check Result
working-directory: benchmark/clickbench
shell: bash
run: |
cat result.json
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
uses: tj-actions/changed-files@v45
id: src
with:
# .github/**
files_ignore: |
.github/**
**.md
benchmark/**
docker/**
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/reuse.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,12 @@ jobs:
build_profile: ${{ inputs.build_profile }}
runner_provider: ${{ inputs.runner_provider }}
license_type: ${{ inputs.license_type }}

benchmark:
needs: [build, check]
if: github.event_name == 'pull_request'
runs-on: [self-hosted, X64, Linux, 16c64g, "${{ inputs.runner_provider }}"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/test_benchmark
timeout-minutes: 20