Skip to content

Commit 8e35854

Browse files
committed
Merge remote-tracking branch 'origin/main' into dev-telp
2 parents bc931eb + b6c97a4 commit 8e35854

File tree

155 files changed

+4557
-2270
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+4557
-2270
lines changed

.github/actions/test_compat_fuse/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ runs:
1313
run: |
1414
bash ./tests/compat_fuse/test_compat_fuse.sh --writer-version 1.2.46 --reader-version current --meta-versions 1.2.527 1.2.677 --logictest-path base
1515
bash ./tests/compat_fuse/test_compat_fuse.sh --writer-version 1.2.241 --reader-version current --meta-versions 1.2.527 1.2.677 --logictest-path revoke
16-
bash ./tests/compat_fuse/test_compat_fuse.sh --writer-version 1.2.306 --reader-version current --meta-versions 1.2.527 1.2.677 --logictest-path rbac
17-
bash ./tests/compat_fuse/test_compat_fuse.sh --writer-version 1.2.307 --reader-version current --meta-versions 1.2.527 1.2.677 --logictest-path rbac
16+
bash ./tests/compat_fuse/test_compat_fuse.sh --writer-version 1.2.311 --reader-version current --meta-versions 1.2.527 1.2.677 --logictest-path rbac
1817
bash ./tests/compat_fuse/test_compat_fuse.sh --writer-version 1.2.318 --reader-version current --meta-versions 1.2.527 1.2.677 --logictest-path rbac
1918
bash ./tests/compat_fuse/test_compat_fuse.sh --writer-version 1.2.680 --reader-version current --meta-versions 1.2.527 1.2.680 --logictest-path udf
2019
21-
bash ./tests/compat_fuse/test_compat_fuse.sh --writer-version current --reader-version 1.2.307 --meta-versions 1.2.677 --logictest-path rbac
20+
bash ./tests/compat_fuse/test_compat_fuse.sh --writer-version current --reader-version 1.2.311 --meta-versions 1.2.677 --logictest-path rbac
2221
bash ./tests/compat_fuse/test_compat_fuse.sh --writer-version current --reader-version 1.2.318 --meta-versions 1.2.677 --logictest-path rbac
2322
bash ./tests/compat_fuse/test_compat_fuse.sh --writer-version current --reader-version 1.2.680 --meta-versions 1.2.680 --logictest-path udf
2423
- name: Upload failure

.github/workflows/cloud.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@ jobs:
153153
154154
> note: this image tag is only available for internal use.
155155
156+
explain:
157+
needs: [info, build, docker]
158+
uses: ./.github/workflows/reuse.explain.yml
159+
secrets: inherit
160+
with:
161+
run_id: ${{ github.run_id }}
162+
version: ${{ needs.docker.outputs.tag }}
163+
156164
benchmark:
157165
if: needs.info.outputs.target
158166
needs: [ info, build, docker ]

.github/workflows/reuse.explain.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Explain
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
run_id:
7+
description: The run id for explain
8+
required: true
9+
type: string
10+
version:
11+
description: The version of databend to explain
12+
required: true
13+
type: string
14+
15+
permissions:
16+
id-token: write
17+
pull-requests: write
18+
contents: read
19+
20+
jobs:
21+
cloud:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- uses: ./.github/actions/setup_bendsql
27+
28+
- name: Get Latest Release
29+
id: latest
30+
env:
31+
GH_TOKEN: ${{ github.token }}
32+
run: |
33+
version_latest=$(gh api /repos/databendlabs/databend/releases/latest | jq -r '.tag_name')
34+
echo "version=${version_latest}" >> $GITHUB_OUTPUT
35+
echo "Compare explain: ${{ inputs.version }} vs ${version_latest}" >> $GITHUB_STEP_SUMMARY
36+
37+
- name: Create Warehouse Base
38+
id: warehouse-base
39+
env:
40+
CLOUD_USER: ${{ secrets.BENCHMARK_CLOUD_USER }}
41+
CLOUD_PASSWORD: ${{ secrets.BENCHMARK_CLOUD_PASSWORD }}
42+
CLOUD_GATEWAY: ${{ secrets.BENCHMARK_CLOUD_GATEWAY }}
43+
WAREHOUSE_SIZE: XSmall
44+
WAREHOUSE_VERSION: ${{ steps.latest.outputs.version }}
45+
WAREHOUSE_NAME: explain-${{ inputs.run_id }}-base
46+
run: |
47+
./scripts/ci/cloud/create_warehouse.sh
48+
echo "name=${WAREHOUSE_NAME}" >> $GITHUB_OUTPUT
49+
echo "dsn=databend://${CLOUD_USER}:${CLOUD_PASSWORD}@${CLOUD_GATEWAY}:443/explain?warehouse=${WAREHOUSE_NAME}" >> $GITHUB_OUTPUT
50+
51+
- name: Create Warehouse Compare
52+
id: warehouse-compare
53+
env:
54+
CLOUD_USER: ${{ secrets.BENCHMARK_CLOUD_USER }}
55+
CLOUD_PASSWORD: ${{ secrets.BENCHMARK_CLOUD_PASSWORD }}
56+
CLOUD_GATEWAY: ${{ secrets.BENCHMARK_CLOUD_GATEWAY }}
57+
WAREHOUSE_SIZE: XSmall
58+
WAREHOUSE_VERSION: ${{ inputs.version }}
59+
WAREHOUSE_NAME: explain-${{ inputs.run_id }}-compare
60+
run: |
61+
./scripts/ci/cloud/create_warehouse.sh
62+
echo "name=${WAREHOUSE_NAME}" >> $GITHUB_OUTPUT
63+
echo "dsn=databend://${CLOUD_USER}:${CLOUD_PASSWORD}@${CLOUD_GATEWAY}:443/explain?warehouse=${WAREHOUSE_NAME}" >> $GITHUB_OUTPUT
64+
65+
- name: Run ExplainB Analysis
66+
uses: BohuTANG/[email protected]
67+
with:
68+
bendsql-dsn1: ${{ steps.warehouse-base.outputs.dsn }}
69+
bendsql-dsn2: ${{ steps.warehouse-compare.outputs.dsn }}
70+
runbend: 'true'
71+
verbose: 'true'
72+
73+
- name: Upload Report
74+
uses: actions/upload-artifact@v4
75+
with:
76+
name: explainb-report
77+
path: report.html
78+
79+
- name: clean
80+
if: always()
81+
continue-on-error: true
82+
env:
83+
BENDSQL_DSN: "databend://${{ secrets.BENCHMARK_CLOUD_USER }}:${{ secrets.BENCHMARK_CLOUD_PASSWORD }}@${{ secrets.BENCHMARK_CLOUD_GATEWAY }}:443/?warehouse=default"
84+
run: |
85+
echo "DROP WAREHOUSE IF EXISTS '${{ steps.warehouse-base.outputs.name }}';" | bendsql -o table
86+
echo "DROP WAREHOUSE IF EXISTS '${{ steps.warehouse-compare.outputs.name }}';" | bendsql -o table

0 commit comments

Comments
 (0)