Skip to content

Commit 1bbe4fe

Browse files
authored
Merge branch 'main' into explain-oom
2 parents 0cf39d3 + 97b0692 commit 1bbe4fe

File tree

1,057 files changed

+50690
-29083
lines changed

Some content is hidden

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

1,057 files changed

+50690
-29083
lines changed

.github/actions/pack_binaries/action.yml

Lines changed: 14 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
description: "Release target"
66
required: true
77
category:
8-
description: "Release default/hdfs/udf/testsuite"
8+
description: "Release default/hdfs/udf/testsuite/dbg"
99
required: false
1010
default: default
1111
version:
@@ -15,14 +15,24 @@ inputs:
1515
runs:
1616
using: "composite"
1717
steps:
18-
- name: Download artifact
18+
- name: Download artifact for dbg
19+
if: inputs.category == 'dbg'
1920
uses: ./.github/actions/artifact_download
2021
with:
2122
sha: ${{ github.sha }}
2223
target: ${{ inputs.target }}
23-
category: ${{ inputs.category }}
24+
category: default
2425
path: distro/bin
2526
artifacts: metactl,meta,query,query.debug
27+
- name: Download artifact for others
28+
if: inputs.category != 'dbg'
29+
uses: ./.github/actions/artifact_download
30+
with:
31+
sha: ${{ github.sha }}
32+
target: ${{ inputs.target }}
33+
category: ${{ inputs.category }}
34+
path: distro/bin
35+
artifacts: metactl,meta,query
2636
- name: Get Latest BendSQL
2737
id: bendsql
2838
uses: pozetroninc/github-action-get-latest-release@master
@@ -53,7 +63,7 @@ runs:
5363
cp ./scripts/distribution/configs/databend-* distro/configs/
5464
cp ./scripts/distribution/release-readme.txt distro/readme.txt
5565
cp -r ./scripts/distribution/package-scripts/* distro/scripts/
56-
tar -C ./distro --exclude='*.debug' -czvf ${pkg_name}.tar.gz bin configs systemd scripts readme.txt
66+
tar -C ./distro -czvf ${pkg_name}.tar.gz bin configs systemd scripts readme.txt
5767
sha256sum ${pkg_name}.tar.gz >> sha256-${pkg_name}.txt
5868
echo "pkg_name=$pkg_name" >> $GITHUB_OUTPUT
5969
- name: post sha256
@@ -68,37 +78,3 @@ runs:
6878
name: ${{ steps.pack_binaries.outputs.pkg_name }}.tar.gz
6979
path: ${{ steps.pack_binaries.outputs.pkg_name }}.tar.gz
7080
retention-days: 1
71-
- name: Pack DBG Binaries
72-
id: pack_dbg_binaries
73-
shell: bash
74-
run: |
75-
target=${{ inputs.target }}
76-
version=${{ inputs.version }}
77-
case ${{ inputs.category }} in
78-
default)
79-
pkg_name="databend-dbg-${version}-${target}"
80-
;;
81-
*)
82-
pkg_name="databend-dbg-${{ inputs.category }}-${version}-${target}"
83-
;;
84-
esac
85-
mkdir -p distro/{bin,configs,systemd,scripts}
86-
cp ./scripts/distribution/systemd/databend-* distro/systemd/
87-
cp ./scripts/distribution/configs/databend-* distro/configs/
88-
cp ./scripts/distribution/release-readme.txt distro/readme.txt
89-
cp -r ./scripts/distribution/package-scripts/* distro/scripts/
90-
tar -C ./distro -czvf ${pkg_name}.tar.gz bin configs systemd scripts readme.txt
91-
sha256sum ${pkg_name}.tar.gz >> sha256-${pkg_name}.txt
92-
echo "pkg_name=$pkg_name" >> $GITHUB_OUTPUT
93-
- name: post dbg sha256
94-
uses: actions/upload-artifact@v4
95-
with:
96-
name: sha256sums-${{ inputs.category }}-${{ inputs.target }}-gdb
97-
path: sha256-${{ steps.pack_dbg_binaries.outputs.pkg_name }}.txt
98-
retention-days: 1
99-
- name: post dbg binaries
100-
uses: actions/upload-artifact@v4
101-
with:
102-
name: ${{ steps.pack_dbg_binaries.outputs.pkg_name }}.tar.gz
103-
path: ${{ steps.pack_dbg_binaries.outputs.pkg_name }}.tar.gz
104-
retention-days: 1

.github/actions/pack_deb/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ runs:
6464
export deb_version="${{ steps.info.outputs.deb_version }}"
6565
export deb_arch="${{ steps.info.outputs.deb_arch }}"
6666
pkg_name="databend-query_${deb_version}_${deb_arch}.deb"
67-
nfpm pkg --packager deb -t "$pkg_name" -f <(envsubst '${version} ${path} ${arch}' < scripts/distribution/nfpm-query.yaml)
67+
nfpm pkg --packager deb -t "${path}/${pkg_name}" -f <(envsubst '${version} ${path} ${arch}' < scripts/distribution/nfpm-query.yaml)
6868
6969
- name: Build Databend Meta Package
7070
shell: bash
@@ -74,7 +74,7 @@ runs:
7474
export deb_version="${{ steps.info.outputs.deb_version }}"
7575
export deb_arch="${{ steps.info.outputs.deb_arch }}"
7676
pkg_name="databend-meta_${deb_version}_${deb_arch}.deb"
77-
nfpm pkg --packager deb -t "$pkg_name" -f <(envsubst '${version} ${path} ${arch}' < scripts/distribution/nfpm-meta.yaml)
77+
nfpm pkg --packager deb -t "${path}/${pkg_name}" -f <(envsubst '${version} ${path} ${arch}' < scripts/distribution/nfpm-meta.yaml)
7878
7979
- name: Build Databend Debug Package
8080
shell: bash
@@ -84,7 +84,7 @@ runs:
8484
export deb_version="${{ steps.info.outputs.deb_version }}"
8585
export deb_arch="${{ steps.info.outputs.deb_arch }}"
8686
pkg_name="databend-query-dbg_${deb_version}_${deb_arch}.deb"
87-
nfpm pkg --packager deb -t "$pkg_name" -f <(envsubst '${version} ${path} ${arch}' < scripts/distribution/nfpm-query-dbg.yaml)
87+
nfpm pkg --packager deb -t "${path}/${pkg_name}" -f <(envsubst '${version} ${path} ${arch}' < scripts/distribution/nfpm-query-dbg.yaml)
8888
8989
- name: Update release to github
9090
shell: bash

.github/actions/publish_binary/action.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
default)
2424
publish_name="databend-${{ inputs.version }}-${{ inputs.target }}"
2525
;;
26-
hdfs|udf|testsuite)
26+
hdfs|udf|testsuite|dbg)
2727
publish_name="databend-${{ inputs.category }}-${{ inputs.version }}-${{ inputs.target }}"
2828
;;
2929
*)
@@ -38,18 +38,12 @@ runs:
3838
# Reference: https://cli.github.com/manual/gh_release_upload
3939
run: |
4040
gh release upload ${{ inputs.version }} ${{ steps.name.outputs.name }}.tar.gz --clobber
41-
if [ -f ${{ steps.name.outputs.name }}-dbg.tar.gz ]; then
42-
gh release upload ${{ inputs.version }} ${{ steps.name.outputs.name }}-dbg.tar.gz --clobber
43-
fi
4441
4542
- name: Sync normal release to R2
4643
shell: bash
4744
if: inputs.category == 'default'
4845
run: |
4946
aws s3 cp ${{ steps.name.outputs.name }}.tar.gz s3://repo/databend/${{ inputs.version }}/${{ steps.name.outputs.name }}.tar.gz --no-progress --checksum-algorithm=CRC32
50-
if [ -f ${{ steps.name.outputs.name }}-dbg.tar.gz ]; then
51-
aws s3 cp ${{ steps.name.outputs.name }}-dbg.tar.gz s3://repo/databend/${{ inputs.version }}/${{ steps.name.outputs.name }}-dbg.tar.gz --no-progress --checksum-algorithm=CRC32
52-
fi
5347
gh api /repos/databendlabs/databend/tags > tags.json
5448
aws s3 cp ./tags.json s3://repo/databend/tags.json --no-progress --checksum-algorithm=CRC32
5549
gh api /repos/databendlabs/databend/releases > releases.json

.github/actions/test_sqllogic_cluster_linux/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ inputs:
99
description: "logic test handlers, mysql,http,clickhouse"
1010
required: false
1111
default: ""
12+
parallel:
13+
description: "logic test parallel"
14+
required: false
15+
default: ""
16+
1217
runs:
1318
using: "composite"
1419
steps:
@@ -20,4 +25,6 @@ runs:
2025
shell: bash
2126
env:
2227
TEST_HANDLERS: ${{ inputs.handlers }}
28+
TEST_PARALLEL: ${{ inputs.parallel }}
29+
TEST_EXT_ARGS: '--skip_file tpcds_spill_1.test,tpcds_spill_2.test,tpcds_spill_3.test'
2330
run: bash ./scripts/ci/ci-run-sqllogic-tests-cluster.sh ${{ inputs.dirs }}

.github/actions/test_sqllogic_iceberg_tpch/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ runs:
3232
pip install pyspark
3333
python3 tests/sqllogictests/scripts/prepare_iceberg_tpch_data.py
3434
35+
3536
- name: Run sqllogic Tests with Standalone lib
3637
shell: bash
3738
env:

.github/actions/test_sqllogic_stage/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ inputs:
1313
description: "storage backend for stage, choices: s3,fs"
1414
required: true
1515
default: ""
16-
deducp:
16+
dedup:
1717
description: "path type for dedup when copy, choices: full_path,sub_path"
1818
required: true
1919
default: ""

.github/actions/test_sqllogic_standalone_linux/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,20 @@ runs:
2929
with:
3030
artifacts: sqllogictests,meta,query
3131

32+
- uses: actions/github-script@v7
33+
id: ext-args
34+
env:
35+
DIRS: ${{ inputs.dirs }}
36+
with:
37+
script: require('.github/actions/test_sqllogic_standalone_linux/script.js')(core)
38+
3239
- name: Run sqllogic Tests with Standalone mode
3340
if: inputs.storage-format == 'all' || inputs.storage-format == 'parquet'
3441
shell: bash
3542
env:
3643
TEST_HANDLERS: ${{ inputs.handlers }}
3744
TEST_PARALLEL: ${{ inputs.parallel }}
45+
TEST_EXT_ARGS: ${{ steps.ext-args.outputs.parquet }}
3846
CACHE_ENABLE_TABLE_META_CACHE: ${{ inputs.enable_table_meta_cache}}
3947
run: bash ./scripts/ci/ci-run-sqllogic-tests.sh ${{ inputs.dirs }}
4048

@@ -44,5 +52,6 @@ runs:
4452
env:
4553
TEST_HANDLERS: ${{ inputs.handlers }}
4654
TEST_PARALLEL: ${{ inputs.parallel }}
55+
TEST_EXT_ARGS: '--skip_file tpcds_spill_1.test,tpcds_spill_2.test,tpcds_spill_3.test'
4756
CACHE_ENABLE_TABLE_META_CACHE: ${{ inputs.enable_table_meta_cache}}
4857
run: bash ./scripts/ci/ci-run-sqllogic-tests-native.sh ${{ inputs.dirs }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = (core) => {
2+
switch (process.env.DIRS) {
3+
case 'tpcds':
4+
const parquet = [
5+
'--skip_file tpcds_spill_2.test,tpcds_spill_3.test',
6+
'--skip_file tpcds_spill_1.test,tpcds_spill_3.test',
7+
'--skip_file tpcds_spill_1.test,tpcds_spill_2.test',
8+
][Date.now() % 3];
9+
core.setOutput('parquet', parquet)
10+
return
11+
}
12+
}

.github/workflows/dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
fetch-depth: 0
2626
- name: Check Source File Changes
27-
uses: tj-actions/changed-files@v45
27+
uses: tj-actions/changed-files@v46
2828
id: src
2929
with:
3030
files_ignore: |

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
- name: Check Source File Changes
19-
uses: tj-actions/changed-files@v45
19+
uses: tj-actions/changed-files@v46
2020
id: src
2121
with:
2222
files_ignore: |

.github/workflows/merge_group.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
fetch-depth: 0
2929
- name: Check Source File Changes
30-
uses: tj-actions/changed-files@v45
30+
uses: tj-actions/changed-files@v46
3131
id: src
3232
with:
3333
files_ignore: |

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,12 @@ jobs:
178178
strategy:
179179
fail-fast: false
180180
matrix:
181-
include:
182-
- category: default
183-
target: x86_64-unknown-linux-gnu
184-
- category: default
185-
target: aarch64-unknown-linux-gnu
181+
category:
182+
- default
183+
- dbg
184+
target:
185+
- x86_64-unknown-linux-gnu
186+
- aarch64-unknown-linux-gnu
186187
steps:
187188
- name: Checkout
188189
uses: actions/checkout@v4

.github/workflows/reuse.benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ jobs:
206206
for p in results/*; do
207207
dataset=$(basename $p)
208208
aws s3 sync results/$dataset/ ${REPORT_S3_PREFIX}/ --include "*.json" --no-progress --checksum-algorithm=CRC32
209-
aws s3 sync "s3://benchmark/clickbench/release/${dataset}/latest/" ./results/${dataset}/ --exclude "*" --include "*.json" --no-progress --checksum-algorithm=CRC32
209+
aws s3 sync "s3://benchmark/clickbench/release/${dataset}/latest/" ./results/${dataset}/ --exclude "*" --include "*.json"
210210
./update_results.py --dataset $dataset --pr ${{ inputs.source_id }}
211211
aws s3 cp ./results/${dataset}.html ${REPORT_S3_PREFIX}/${dataset}.html --no-progress --checksum-algorithm=CRC32
212212
echo "* **${dataset}**: https://benchmark.databend.com/clickbench/pr/${{ inputs.source_id }}/${{ inputs.run_id }}/${dataset}.html" >> /tmp/body
@@ -254,8 +254,8 @@ jobs:
254254
mv $result results/${dataset}/$(basename $result)
255255
done
256256
257-
aws s3 sync s3://benchmark/clickbench/release/${{ matrix.dataset }}/$(date --date='-1 month' -u +%Y)/$(date --date='-1 month' -u +%m)/ ./results/${{ matrix.dataset }}/ --no-progress --checksum-algorithm=CRC32
258-
aws s3 sync s3://benchmark/clickbench/release/${{ matrix.dataset }}/$(date -u +%Y)/$(date -u +%m)/ ./results/${{ matrix.dataset }}/ --no-progress --checksum-algorithm=CRC32
257+
aws s3 sync s3://benchmark/clickbench/release/${{ matrix.dataset }}/$(date --date='-1 month' -u +%Y)/$(date --date='-1 month' -u +%m)/ ./results/${{ matrix.dataset }}/
258+
aws s3 sync s3://benchmark/clickbench/release/${{ matrix.dataset }}/$(date -u +%Y)/$(date -u +%m)/ ./results/${{ matrix.dataset }}/
259259
./update_results.py --dataset ${{ matrix.dataset }} --release ${{ inputs.source_id }}
260260
261261
RESULT_PREFIX="s3://benchmark/clickbench/release/${{ matrix.dataset }}/$(date -u +%Y)/$(date -u +%m)/$(date -u +%Y-%m-%d)/${{ inputs.source_id }}"

.github/workflows/reuse.sqllogic.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- { dirs: "crdb", runner: "2c8g" }
5151
- { dirs: "base", runner: "2c8g" }
5252
- { dirs: "ydb", runner: "2c8g" }
53-
- { dirs: "tpcds", runner: "2c8g" }
53+
- { dirs: "tpcds", runner: "4c16g", parallel: "1" }
5454
- { dirs: "tpch", runner: "2c8g" }
5555
- { dirs: "standalone", runner: "2c8g" }
5656
handler:
@@ -59,10 +59,11 @@ jobs:
5959
steps:
6060
- uses: actions/checkout@v4
6161
- uses: ./.github/actions/test_sqllogic_standalone_linux
62-
timeout-minutes: 15
62+
timeout-minutes: 20
6363
with:
6464
dirs: ${{ matrix.tests.dirs }}
6565
handlers: ${{ matrix.handler }}
66+
parallel: ${{ matrix.tests.parallel }}
6667
storage-format: all
6768
- name: Upload failure
6869
if: failure()
@@ -192,6 +193,7 @@ jobs:
192193
with:
193194
dirs: ${{ matrix.tests.dirs }}
194195
handlers: ${{ matrix.handler }}
196+
parallel: ${{ matrix.tests.parallel }}
195197
- name: Upload failure
196198
if: failure()
197199
uses: ./.github/actions/artifact_failure

.typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"Ser" = "Ser"
1414
"flate" = "flate"
1515
"Tke" = "Tke"
16+
"typ" = "typ"
1617

1718
[files]
1819
extend-exclude = [

0 commit comments

Comments
 (0)