Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce rust native sqllogictest framework #9150

Merged
merged 37 commits into from
Dec 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
3e8e60b
finish mysql client
xudong963 Dec 8, 2022
cebfe4e
finish http client
xudong963 Dec 8, 2022
8e8332b
finish clickhouse http client
xudong963 Dec 8, 2022
4363174
minor change
xudong963 Dec 8, 2022
9297157
cargo fix
xudong963 Dec 8, 2022
68874d3
finish walk dir
xudong963 Dec 8, 2022
6215dd3
taplo fmt
xudong963 Dec 8, 2022
02c2f77
format test files
xudong963 Dec 8, 2022
5f8b3b0
add args to run specific dir or test file
xudong963 Dec 9, 2022
ee8e204
support onlyif skipif and add log
xudong963 Dec 10, 2022
48a2c4a
try to process regex
xudong963 Dec 10, 2022
9e2754c
remove last semicolon in sql
xudong963 Dec 11, 2022
8c3fded
fix some tests
xudong963 Dec 12, 2022
3a4da91
mysql client finishes base suit
xudong963 Dec 13, 2022
5c39391
mysql clien: crdb ok
xudong963 Dec 13, 2022
b91f6b5
mysql: duckdb ok
xudong963 Dec 13, 2022
548fa26
mode mysql ok
xudong963 Dec 13, 2022
46d763f
mysql: ydb ok
xudong963 Dec 13, 2022
d30071a
mysql: query ok
xudong963 Dec 14, 2022
9634616
support skip dir
xudong963 Dec 14, 2022
14f2a5a
support specific handler in args and change logic test ci scripts
xudong963 Dec 14, 2022
dfeab36
try to enable ci
xudong963 Dec 14, 2022
d3a0c42
update tests
xudong963 Dec 14, 2022
e8c70ad
http: ok
xudong963 Dec 15, 2022
90c9fe0
ck: ok
xudong963 Dec 16, 2022
225c099
refactor code
xudong963 Dec 16, 2022
5b7896a
taplo fmt
xudong963 Dec 16, 2022
6357fc4
udpate ci
xudong963 Dec 16, 2022
fdba313
remove build-sqllogic
xudong963 Dec 16, 2022
4df6699
fix ci and tests
xudong963 Dec 16, 2022
c527ed4
fix some tests
xudong963 Dec 16, 2022
8238995
use thiserror
xudong963 Dec 16, 2022
0e5833d
onlyif todo
xudong963 Dec 16, 2022
9939e6b
fix walk dir
xudong963 Dec 16, 2022
e0ba386
update ci
xudong963 Dec 17, 2022
bc7febb
change args, handler to handlers
xudong963 Dec 17, 2022
a06d81e
fix ci
xudong963 Dec 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 5 additions & 13 deletions .github/actions/test_sqllogic_cluster_linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,12 @@ runs:
profile: ${{ inputs.profile }}
sha: ${{ github.sha }}
target: ${{ inputs.target }}

- name: Setup Build Tool
uses: ./.github/actions/setup_build_tool
with:
bypass_env_vars: RUSTFLAGS,RUSTDOCFLAGS,RUST_TEST_THREADS,RUST_LOG,RUST_BACKTRACE
- name: Run sqllogic Tests with Cluster mode
shell: bash
env:
TEST_HANDLERS: ${{ inputs.handlers }}
run: |
docker run --rm --tty --net=host \
--user $(id -u):$(id -g) \
--env BUILD_PROFILE \
--env TEST_HANDLERS \
--ulimit nofile=65535:65535 \
--ulimit stack=16777216:16777216 \
--volume "${PWD}:/workspace" \
--workdir "/workspace" \
datafuselabs/build-tool:sqllogic \
bash ./scripts/ci/ci-run-sqllogic-tests-cluster.sh \
${{ inputs.dirs }}
run: bash ./scripts/ci/ci-run-sqllogic-tests-cluster.sh ${{ inputs.dirs }}
18 changes: 5 additions & 13 deletions .github/actions/test_sqllogic_standalone_linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,12 @@ runs:
profile: ${{ inputs.profile }}
sha: ${{ github.sha }}
target: ${{ inputs.target }}

- name: Setup Build Tool
uses: ./.github/actions/setup_build_tool
with:
bypass_env_vars: RUSTFLAGS,RUSTDOCFLAGS,RUST_TEST_THREADS,RUST_LOG,RUST_BACKTRACE
- name: Run sqllogic Tests with Standalone mode
shell: bash
env:
TEST_HANDLERS: ${{ inputs.handlers }}
run: |
docker run --rm --tty --net=host \
--user $(id -u):$(id -g) \
--env BUILD_PROFILE \
--env TEST_HANDLERS \
--ulimit nofile=65535:65535 \
--ulimit stack=16777216:16777216 \
--volume "${PWD}:/workspace" \
--workdir "/workspace" \
datafuselabs/build-tool:sqllogic \
bash ./scripts/ci/ci-run-sqllogic-tests.sh \
${{ inputs.dirs }}
run: bash ./scripts/ci/ci-run-sqllogic-tests.sh ${{ inputs.dirs }}
2 changes: 0 additions & 2 deletions .github/actions/test_sqllogic_standalone_macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ runs:
profile: ${{ inputs.profile }}
sha: ${{ github.sha }}
target: ${{ inputs.target }}

- name: Test setup
shell: bash
run: |
bash ./scripts/setup/dev_setup.sh -yd

- name: Run sqllogic Tests with Standalone mode with embedded meta-store
shell: bash
env:
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/build-sqllogic.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/dev-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ jobs:
- "base"
- "query"
- "ydb"
- "standalone"
handlers:
- "mysql"
- "http"
Expand Down Expand Up @@ -169,6 +170,7 @@ jobs:
dirs:
- "base"
- "query"
- "cluster"
handlers:
- "mysql"
- "http"
Expand Down
Loading