diff --git a/.github/actions/test_benchmark/action.yml b/.github/actions/test_benchmark/action.yml new file mode 100644 index 0000000000000..9fd4bf76aab85 --- /dev/null +++ b/.github/actions/test_benchmark/action.yml @@ -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 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/** 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