Skip to content

Commit

Permalink
Merge branch 'main' into use-f64-max
Browse files Browse the repository at this point in the history
  • Loading branch information
flaneur2020 authored Oct 28, 2024
2 parents e5a5576 + 6f7ede7 commit 19ebf6b
Show file tree
Hide file tree
Showing 557 changed files with 24,773 additions and 12,572 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/20_bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ body:
value: |
Thank you very much for submitting feedback to Databend to help Databend develop better.
If it is an idea or help wanted, please go to: [Discussion](https://github.com/datafuselabs/databend/discussions)
If it is an idea or help wanted, please go to: [Discussion](https://github.com/databendlabs/databend/discussions)
- type: checkboxes
attributes:
label: Search before asking
description: >
Please make sure to search in the [issues](https://github.com/datafuselabs/databend/issues) first to see
Please make sure to search in the [issues](https://github.com/databendlabs/databend/issues) first to see
whether the same issue was reported already.
options:
- label: >
I had searched in the [issues](https://github.com/datafuselabs/databend/issues) and found no similar
I had searched in the [issues](https://github.com/databendlabs/databend/issues) and found no similar
issues.
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Question
url: https://github.com/datafuselabs/databend/discussions/categories/q-a
url: https://github.com/databendlabs/databend/discussions/categories/q-a
about: Please ask and answer questions on the discussions Q&A category.
4 changes: 3 additions & 1 deletion .github/actions/build_linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ runs:
flags=""
;;
esac
echo "RUSTFLAGS=${flags} -C link-arg=-Wl,--compress-debug-sections=zlib" >> $GITHUB_ENV
if [[ ! -z "${flags}" ]]; then
echo "RUSTFLAGS=${flags}" >> $GITHUB_ENV
fi
target=${{ inputs.target }}
echo "BUILD_ARCH=${target/-unknown-linux-*}" >> $GITHUB_ENV
Expand Down
4 changes: 3 additions & 1 deletion .github/actions/build_linux_sanitizer/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ runs:
flags=""
;;
esac
echo "RUSTFLAGS=${flags} -C link-arg=-Wl,--compress-debug-sections=zlib" >> $GITHUB_ENV
if [[ ! -z "${flags}" ]]; then
echo "RUSTFLAGS=${flags}" >> $GITHUB_ENV
fi
target=${{ inputs.target }}
echo "BUILD_ARCH=${target/-unknown-linux-*}" >> $GITHUB_ENV
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/publish_binary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ runs:
if: inputs.category == 'default'
run: |
aws s3 cp ${{ steps.name.outputs.name }}.tar.gz s3://repo/databend/${{ inputs.version }}/${{ steps.name.outputs.name }}.tar.gz --no-progress
gh api /repos/datafuselabs/databend/tags > tags.json
gh api /repos/databendlabs/databend/tags > tags.json
aws s3 cp ./tags.json s3://repo/databend/tags.json
gh api /repos/datafuselabs/databend/releases > releases.json
gh api /repos/databendlabs/databend/releases > releases.json
aws s3 cp ./releases.json s3://repo/databend/releases.json
10 changes: 5 additions & 5 deletions .github/actions/publish_deb/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ runs:
version=${{ inputs.version }}
deb_version=${version/-/.}
deb_version=${deb_version/v/}
wget -q https://github.com/datafuselabs/databend/releases/download/${version}/databend_${deb_version}_amd64.deb
wget -q https://github.com/datafuselabs/databend/releases/download/${version}/databend_${deb_version}_arm64.deb
wget -q https://github.com/databendlabs/databend/releases/download/${version}/databend_${deb_version}_amd64.deb
wget -q https://github.com/databendlabs/databend/releases/download/${version}/databend_${deb_version}_arm64.deb
reprepro includedeb stable databend_${deb_version}_amd64.deb
reprepro includedeb stable databend_${deb_version}_arm64.deb
- name: Add BendSQL
shell: bash
working-directory: scripts/distribution/deb
run: |
version=$(gh release view --repo datafuselabs/bendsql --json name | jq -r '.name')
version=$(gh release view --repo databendlabs/bendsql --json name | jq -r '.name')
deb_version=${version/v/}
wget -q https://github.com/datafuselabs/bendsql/releases/download/${version}/bendsql_${deb_version}_amd64.deb
wget -q https://github.com/datafuselabs/bendsql/releases/download/${version}/bendsql_${deb_version}_arm64.deb
wget -q https://github.com/databendlabs/bendsql/releases/download/${version}/bendsql_${deb_version}_amd64.deb
wget -q https://github.com/databendlabs/bendsql/releases/download/${version}/bendsql_${deb_version}_arm64.deb
reprepro includedeb stable bendsql_${deb_version}_amd64.deb
reprepro includedeb stable bendsql_${deb_version}_arm64.deb
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/setup_bendsql/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
if bendsql --version; then
exit 0
fi
curl --retry 5 -Lo /tmp/bendsql.tar.gz https://github.com/datafuselabs/bendsql/releases/download/v0.18.3/bendsql-x86_64-unknown-linux-gnu.tar.gz
curl --retry 5 -Lo /tmp/bendsql.tar.gz https://github.com/databendlabs/bendsql/releases/download/v0.18.3/bendsql-x86_64-unknown-linux-gnu.tar.gz
tar -xzf /tmp/bendsql.tar.gz -C /tmp
mv /tmp/bendsql /usr/local/bin/bendsql
bendsql --version
Expand All @@ -21,7 +21,7 @@ runs:
if bendsql --version; then
exit 0
fi
curl --retry 5 -Lo /tmp/bendsql.tar.gz https://github.com/datafuselabs/bendsql/releases/download/v0.18.3/bendsql-x86_64-apple-darwin.tar.gz
curl --retry 5 -Lo /tmp/bendsql.tar.gz https://github.com/databendlabs/bendsql/releases/download/v0.18.3/bendsql-x86_64-apple-darwin.tar.gz
tar -xzf /tmp/bendsql.tar.gz -C /tmp
mv /tmp/bendsql /usr/local/bin/bendsql
bendsql --version
46 changes: 46 additions & 0 deletions .github/actions/test_sqllogic_iceberg_tpch/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "Test sqllogic iceberg tpch"
description: "Running sqllogic tests in standalone mode"
inputs:
target:
description: ""
required: true
default: "x86_64-unknown-linux-gnu"
dirs:
description: "logic test suites dirs"
required: true
default: ""
handlers:
description: "logic test handlers, choices: mysql,http,clickhouse"
required: true
default: ""
runs:
using: "composite"
steps:
- uses: ./.github/actions/setup_bendsql
- name: Download artifact
uses: ./.github/actions/artifact_download
with:
sha: ${{ github.sha }}
target: ${{ inputs.target }}
artifacts: sqllogictests,meta,query
- name: Iceberg Setup for (ubuntu-latest only)
shell: bash
run: |
docker compose -f tests/sqllogictests/scripts/docker-compose-iceberg-tpch.yml up -d
# Prepare Iceberg TPCH data
data_dir="tests/sqllogictests/data"
mkdir -p $data_dir
if [ ! -d ${data_dir}/tpch.tar.gz ]; then
curl -s -o ${data_dir}/tpch.tar.gz https://ci.databend.com/dataset/stateful/tpch.tar.gz
fi
tar -zxf ${data_dir}/tpch.tar.gz -C $data_dir
pip install pyspark
python3 tests/sqllogictests/scripts/prepare_iceberg_tpch_data.py
- name: Run sqllogic Tests with Standalone lib
shell: bash
env:
TEST_HANDLERS: ${{ inputs.handlers }}
run: bash ./scripts/ci/ci-run-sqllogic-tests-without-sandbox.sh ${{ inputs.dirs }}
2 changes: 1 addition & 1 deletion .github/actions/test_unit/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
RUST_TEST_THREADS: "8"
RUST_LOG: ERROR
RUST_MIN_STACK: 104857600
# RUST_BACKTRACE: full
# RUST_BACKTRACE: 1

- name: Upload failure
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/notify_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = async ({ context, core }) => {
{
tag: "a",
text: "Release Notes",
href: `https://github.com/datafuselabs/databend/releases/tag/${VERSION}`,
href: `https://github.com/databendlabs/databend/releases/tag/${VERSION}`,
},
],
],
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Checkout Docs
uses: actions/checkout@v4
with:
repository: datafuselabs/databend-docs
repository: databendlabs/databend-docs
ref: main
- name: Get date
shell: bash
Expand All @@ -83,10 +83,10 @@ jobs:
mkdir -p docs/release-stable
df="docs/release-stable/${{ env.DATE }}_${{ needs.create_release.outputs.version }}.md"
echo "---" > $df
gh release view --repo datafuselabs/databend ${{ needs.create_release.outputs.version }} >> $df
gh release view --repo databendlabs/databend ${{ needs.create_release.outputs.version }} >> $df
sed -i -E 's/^--$/---/g' $df
sed -i -E '/^asset:/d' $df
sed -i -E 's_https://github.com/datafuselabs/databend/pull/([0-9]+)_[#\1](https://github.com/datafuselabs/databend/pull/\1)_g' $df
sed -i -E 's_https://github.com/databendlabs/databend/pull/([0-9]+)_[#\1](https://github.com/databendlabs/databend/pull/\1)_g' $df
git add docs/release-stable
git status
- uses: peter-evans/create-pull-request@v4
Expand Down Expand Up @@ -649,7 +649,7 @@ jobs:
# - name: checkout share endpoint
# uses: actions/checkout@v4
# with:
# repository: datafuselabs/share-endpoint
# repository: databendlabs/share-endpoint
# token: ${{ secrets.DATABEND_BOT_TOKEN }}
# path: share-endpoint
# - name: Download artifacts
Expand Down
37 changes: 28 additions & 9 deletions .github/workflows/reuse.sqllogic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:

jobs:
management_mode:
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/test_sqllogic_management_mode_linux
Expand All @@ -30,7 +30,7 @@ jobs:
handlers: mysql,http

standalone:
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
name: test-sqllogic-standalone-${{ matrix.dirs }}-${{ matrix.handler }}

standalone_udf_server:
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
steps:
- uses: actions/checkout@v4
- name: Start UDF Server
Expand All @@ -82,7 +82,7 @@ jobs:
name: test-sqllogic-standalone-udf-server

standalone_cloud:
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
steps:
- uses: actions/checkout@v4
- name: Start Cloud Control Server
Expand All @@ -103,7 +103,7 @@ jobs:
name: test-sqllogic-standalone-cloud

standalone_minio:
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
strategy:
fail-fast: false
matrix:
Expand All @@ -129,8 +129,27 @@ jobs:
with:
name: test-sqllogic-standalone-minio-${{ matrix.dirs }}-${{ matrix.handler }}-${{ matrix.format }}

standalone_iceberg_tpch:
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: ./.github/actions/test_sqllogic_iceberg_tpch
timeout-minutes: 15
with:
dirs: tpch_iceberg
handlers: mysql,http
- name: Upload failure
if: failure()
uses: ./.github/actions/artifact_failure
with:
name: test-sqllogic-standalone-iceberg-tpch

cluster:
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -163,7 +182,7 @@ jobs:
name: test-sqllogic-cluster-${{ matrix.dirs }}-${{ matrix.handler }}

stage:
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
strategy:
fail-fast: false
matrix:
Expand All @@ -185,7 +204,7 @@ jobs:
name: test-sqllogic-stage-${{ matrix.storage }}

standalone_no_table_meta_cache:
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
strategy:
fail-fast: false
matrix:
Expand All @@ -209,7 +228,7 @@ jobs:
name: test-sqllogic-standalone-no-table-meta-cache-${{ matrix.dirs }}-${{ matrix.handler }}

ee:
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
runs-on: [ self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}" ]
strategy:
fail-fast: false
matrix:
Expand Down
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"ser" = "ser"
"Ser" = "Ser"
"flate" = "flate"
"Tke" = "Tke"

[files]
extend-exclude = [
Expand Down
Loading

0 comments on commit 19ebf6b

Please sign in to comment.