From d583475230f2643a98e907a463e02ab0483bed94 Mon Sep 17 00:00:00 2001 From: everpcpc Date: Mon, 27 Jan 2025 12:28:23 +0800 Subject: [PATCH 1/4] z --- .github/actions/test_benchmark/action.yml | 29 +++++++++++++++++++++++ .github/workflows/reuse.linux.yml | 9 +++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/actions/test_benchmark/action.yml diff --git a/.github/actions/test_benchmark/action.yml b/.github/actions/test_benchmark/action.yml new file mode 100644 index 0000000000000..c81dc55bbf426 --- /dev/null +++ b/.github/actions/test_benchmark/action.yml @@ -0,0 +1,29 @@ +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: local + shell: bash + run: | + ./benchmark_local.sh + - name: Check Result + shell: bash + run: | + cat result.json diff --git a/.github/workflows/reuse.linux.yml b/.github/workflows/reuse.linux.yml index 30bcd3d662fb9..4bf31a907776b 100644 --- a/.github/workflows/reuse.linux.yml +++ b/.github/workflows/reuse.linux.yml @@ -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 From 38d789c063b280170c8d6cea02b85c0067955926 Mon Sep 17 00:00:00 2001 From: everpcpc Date: Mon, 27 Jan 2025 12:30:32 +0800 Subject: [PATCH 2/4] z --- .github/workflows/dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 59a627287ffe5..4e70178de67bf 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -27,8 +27,8 @@ jobs: uses: tj-actions/changed-files@v45 id: src with: + # .github/** files_ignore: | - .github/** **.md benchmark/** docker/** From 7251992413cec209c40f66d39ef56a9d595082b9 Mon Sep 17 00:00:00 2001 From: everpcpc Date: Mon, 27 Jan 2025 12:51:25 +0800 Subject: [PATCH 3/4] z --- .github/actions/test_benchmark/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/test_benchmark/action.yml b/.github/actions/test_benchmark/action.yml index c81dc55bbf426..8e587efa2e21a 100644 --- a/.github/actions/test_benchmark/action.yml +++ b/.github/actions/test_benchmark/action.yml @@ -19,7 +19,7 @@ runs: working-directory: benchmark/clickbench env: BENCHMARK_ID: ${{ inputs.run_id }} - BENCHMARK_DATASET: local + BENCHMARK_DATASET: internal shell: bash run: | ./benchmark_local.sh From 0307015c40c588e1b198c6b0fd3e3c0a55183ac0 Mon Sep 17 00:00:00 2001 From: everpcpc Date: Thu, 6 Feb 2025 15:31:19 +0800 Subject: [PATCH 4/4] z --- .github/actions/test_benchmark/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/test_benchmark/action.yml b/.github/actions/test_benchmark/action.yml index 8e587efa2e21a..9fd4bf76aab85 100644 --- a/.github/actions/test_benchmark/action.yml +++ b/.github/actions/test_benchmark/action.yml @@ -24,6 +24,7 @@ runs: run: | ./benchmark_local.sh - name: Check Result + working-directory: benchmark/clickbench shell: bash run: | cat result.json