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
8 changes: 8 additions & 0 deletions .github/actions/benchmark_cloud/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ runs:
CLOUD_PASSWORD: ${{ inputs.cloud_password }}
CLOUD_ORG: ${{ inputs.cloud_org }}
CLOUD_ENDPOINT: ${{ inputs.cloud_endpoint }}
CLOUD_WAREHOUSE: benchmark-${{ inputs.run_id }}
shell: bash
run: |
./benchmark_cloud.sh
Expand Down Expand Up @@ -102,3 +103,10 @@ runs:
with:
name: benchmark-${{ inputs.dataset }}-cloud-${{ inputs.size }}
path: benchmark/clickbench/result-${{ inputs.dataset }}-cloud-${{ inputs.size }}.json

- name: Remove warehouse
if: always()
shell: bash
continue-on-error: true
run: |
bendsql cloud warehouse delete benchmark-${{ inputs.run_id }}
4 changes: 2 additions & 2 deletions .github/actions/publish_binary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ runs:
shell: bash
if: inputs.mode == 'normal'
run: |
aws s3 cp databend-${{ inputs.version }}-${{ inputs.target }}.tar.gz s3://repo.databend.rs/databend/${{ inputs.version }}/databend-${{ inputs.version }}-${{ inputs.target }}.tar.gz
aws s3 cp databend-${{ inputs.version }}-${{ inputs.target }}.tar.gz s3://repo.databend.rs/databend/${{ inputs.version }}/databend-${{ inputs.version }}-${{ inputs.target }}.tar.gz --no-progress
curl --retry 3 -fsSLo tags.json \
--header 'content-type: application/json' \
--header 'authorization: Bearer ${{ inputs.github_token }}' \
Expand All @@ -65,7 +65,7 @@ runs:
shell: bash
if: inputs.mode == 'hive'
run: |
aws s3 cp databend-hive-${{ inputs.version }}-${{ inputs.target }}.tar.gz s3://repo.databend.rs/databend/${{ inputs.version }}/databend-hive-${{ inputs.version }}-${{ inputs.target }}.tar.gz
aws s3 cp databend-hive-${{ inputs.version }}-${{ inputs.target }}.tar.gz s3://repo.databend.rs/databend/${{ inputs.version }}/databend-hive-${{ inputs.version }}-${{ inputs.target }}.tar.gz --no-progress
curl --retry 3 -fsSLo tags.json \
--header 'content-type: application/json' \
--header 'authorization: Bearer ${{ inputs.github_token }}' \
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/setup_docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
using: "composite"
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Configure AWS Credentials
if: inputs.ecr_role_arn
Expand All @@ -43,7 +43,7 @@ runs:

- name: Login to DockerHub
if: inputs.dockerhub_token
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ inputs.dockerhub_user }}
password: ${{ inputs.dockerhub_token }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
permissions:
id-token: write
pull-requests: write
statuses: write
contents: write

jobs:
Expand Down
61 changes: 47 additions & 14 deletions .github/workflows/trusted-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
permissions:
id-token: write
pull-requests: write
statuses: write
contents: read

env:
Expand Down Expand Up @@ -80,7 +81,7 @@ jobs:
release)
version=${{ needs.metadata.outputs.source_id }}
target=x86_64-unknown-linux-gnu
aws s3 cp s3://repo.databend.rs/databend/${version}/databend-${version}-${target}.tar.gz distro/
aws s3 cp s3://repo.databend.rs/databend/${version}/databend-${version}-${target}.tar.gz distro/ --no-progress
tar x -C ./target/release -f ./distro/databend-${version}-${target}.tar.gz --strip-components 1 bin/
;;
*)
Expand All @@ -95,13 +96,32 @@ jobs:
sudo cp ./target/release/databend-* /usr/local/bin/
databend-query --version
databend-meta --version
- name: Set github check status to pending
uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: 'Benchmark Local / ${{ matrix.dataset }}'
description: 'Running'
state: 'pending'
sha: ${{ needs.metadata.outputs.sha }}
target_url: https://github.com/datafuselabs/databend/actions/runs/${{ github.run_id }}/jobs/${{ github.job_id }}
- uses: ./.github/actions/benchmark_local
with:
sha: ${{ needs.metadata.outputs.sha }}
run_id: ${{ needs.metadata.outputs.run_id }}
dataset: ${{ matrix.dataset }}
source: ${{ needs.metadata.outputs.source }}
source_id: ${{ needs.metadata.outputs.source_id }}
- name: Set github check status to completed
if: always()
uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: 'Benchmark Local / ${{ matrix.dataset }}'
description: 'Completed'
state: ${{ job.status }}
sha: ${{ needs.metadata.outputs.sha }}
target_url: https://github.com/datafuselabs/databend/actions/runs/${{ github.run_id }}/jobs/${{ github.job_id }}

docker:
needs: metadata
Expand Down Expand Up @@ -166,12 +186,23 @@ jobs:
- tpch
size:
- Medium
- Large
fail-fast: true
max-parallel: 1
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup_bendsql
- name: Set github check status to pending
uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: 'Benchmark Cloud / ${{ matrix.dataset }}(${{ matrix.size }})'
description: 'Running'
state: 'pending'
sha: ${{ needs.metadata.outputs.sha }}
target_url: https://github.com/datafuselabs/databend/actions/runs/${{ github.run_id }}/jobs/${{ github.job_id }}
- uses: ./.github/actions/benchmark_cloud
id: benchmark
with:
sha: ${{ needs.metadata.outputs.sha }}
run_id: ${{ needs.metadata.outputs.run_id }}
Expand All @@ -184,6 +215,16 @@ jobs:
cloud_password: ${{ secrets.BENCHMARK_CLOUD_PASSWORD }}
cloud_org: ${{ secrets.BENCHMARK_CLOUD_ORG }}
cloud_endpoint: ${{ secrets.BENCHMARK_CLOUD_ENDPOINT }}
- name: Set github check status to completed
if: always()
uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: 'Benchmark Cloud / ${{ matrix.dataset }}(${{ matrix.size }})'
description: 'Completed'
state: ${{ job.status }}
sha: ${{ needs.metadata.outputs.sha }}
target_url: https://github.com/datafuselabs/databend/actions/runs/${{ github.run_id }}/jobs/${{ github.job_id }}

comment_on_pr:
runs-on: [self-hosted, X64, Linux, dev]
Expand All @@ -207,7 +248,7 @@ jobs:
path: benchmark/clickbench/results/hits
- uses: actions/download-artifact@v3
with:
name: benchmark-hits-local
name: benchmark-tpch-local
path: benchmark/clickbench/results/tpch
- uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -270,20 +311,12 @@ jobs:
aws-region: us-east-2
- uses: actions/download-artifact@v3
with:
name: benchmark-hits-local
path: benchmark/clickbench/results/hits
name: benchmark-${{ matrix.dataset }}-local
path: benchmark/clickbench/results/${{ matrix.dataset }}
- uses: actions/download-artifact@v3
with:
name: benchmark-hits-cloud-Medium
path: benchmark/clickbench/results/hits
- uses: actions/download-artifact@v3
with:
name: benchmark-hits-local
path: benchmark/clickbench/results/tpch
- uses: actions/download-artifact@v3
with:
name: benchmark-tpch-cloud-Medium
path: benchmark/clickbench/results/tpch
name: benchmark-${{ matrix.dataset }}-cloud-Medium
path: benchmark/clickbench/results/${{ matrix.dataset }}
- name: Upload nightly results to repo.databend.rs
working-directory: benchmark/clickbench
run: |
Expand Down