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

chore: remove old sqllogictest #9303

Merged
merged 4 commits into from
Dec 21, 2022
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 4 additions & 14 deletions .github/actions/fuse_compat/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,15 @@ runs:
sha: ${{ github.sha }}
target: ${{ inputs.target }}
path: ./bins/current

- name: Setup Build Tool
uses: ./.github/actions/setup_build_tool
with:
bypass_env_vars: RUSTFLAGS,RUSTDOCFLAGS,RUST_TEST_THREADS,RUST_LOG,RUST_BACKTRACE
- name: Test compatibility
shell: bash
run: |
docker run --rm --tty --net=host \
--user $(id -u):$(id -g) \
--env BUILD_PROFILE \
--volume "${PWD}:/workspace" \
--workdir "/workspace" \
datafuselabs/build-tool:sqllogic \
bash ./tests/fuse-compat/test-fuse-compat.sh 0.7.150
docker run --rm --tty --net=host \
--user $(id -u):$(id -g) \
--env BUILD_PROFILE \
--volume "${PWD}:/workspace" \
--workdir "/workspace" \
datafuselabs/build-tool:sqllogic \
bash ./tests/fuse-compat/test-fuse-compat.sh 0.7.151

- name: Upload failure
if: failure()
uses: ./.github/actions/artifact_failure
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/databend-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
version=${{ needs.create_release.outputs.version }}
tar -C ./tests/logictest -czvf testsuites-${version}.tar.gz suites
tar -C ./tests/sqllogictests -czvf testsuites-${version}.tar.gz suites
gh release upload ${version} testsuites-${version}.tar.gz --clobber

release_docker_combined:
Expand Down
4 changes: 1 addition & 3 deletions tests/compat/test-compat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,8 @@ run_test() {
echo " === Run metasrv related test: 05_ddl"

if [ "$query_ver" = "current" ]; then
cd "$SCRIPT_PATH/../../tests/logictest" || exit
# Only run test on mysql handler
python3 main.py "_ddl_" --handlers mysql
cd -
cargo run -p sqllogictests -- --handlers mysql --run_dir 05_ddl
else
(
# download suites into ./old_suite
Expand Down
4 changes: 1 addition & 3 deletions tests/fuse-compat/test-fuse-compat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@ git_partial_clone() {

# Run specified tests found in logic test suite dir
run_logictest() {
local pattern="$1"
(
cd "tests/logictest"
# Only run test on mysql handler
python3 main.py "$pattern" --handlers mysql --suites "$SCRIPT_PATH/compat-logictest"
cargo run -p sqllogictests -- --handlers mysql --suites "$logictest_path"
)

}
Expand Down
16 changes: 0 additions & 16 deletions tests/logictest/Dockerfile

This file was deleted.

213 changes: 0 additions & 213 deletions tests/logictest/README.md

This file was deleted.

51 changes: 0 additions & 51 deletions tests/logictest/cleanup.py

This file was deleted.

Loading