Merge pull request #68654 from ClickHouse/ci_fix_sqllogic

CI: Disable SQLLogic job
This commit is contained in:
Max K. 2024-08-23 09:29:02 +00:00 committed by GitHub
commit 894bbbf021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 18 additions and 22 deletions

View File

@ -40,6 +40,3 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ARG sqllogic_test_repo="https://github.com/gregrahn/sqllogictest.git" ARG sqllogic_test_repo="https://github.com/gregrahn/sqllogictest.git"
RUN git clone --recursive ${sqllogic_test_repo} RUN git clone --recursive ${sqllogic_test_repo}
COPY run.sh /
CMD ["/bin/bash", "/run.sh"]

View File

@ -501,9 +501,10 @@ class CI:
JobNames.SQLANCER_DEBUG: CommonJobConfigs.SQLLANCER_TEST.with_properties( JobNames.SQLANCER_DEBUG: CommonJobConfigs.SQLLANCER_TEST.with_properties(
required_builds=[BuildNames.PACKAGE_DEBUG], required_builds=[BuildNames.PACKAGE_DEBUG],
), ),
JobNames.SQL_LOGIC_TEST: CommonJobConfigs.SQLLOGIC_TEST.with_properties( # TODO: job does not work at all, uncomment and fix
required_builds=[BuildNames.PACKAGE_RELEASE], # JobNames.SQL_LOGIC_TEST: CommonJobConfigs.SQLLOGIC_TEST.with_properties(
), # required_builds=[BuildNames.PACKAGE_RELEASE],
# ),
JobNames.SQLTEST: CommonJobConfigs.SQL_TEST.with_properties( JobNames.SQLTEST: CommonJobConfigs.SQL_TEST.with_properties(
required_builds=[BuildNames.PACKAGE_RELEASE], required_builds=[BuildNames.PACKAGE_RELEASE],
), ),

View File

@ -204,7 +204,7 @@ class JobNames(metaclass=WithIter):
PERFORMANCE_TEST_AMD64 = "Performance Comparison (release)" PERFORMANCE_TEST_AMD64 = "Performance Comparison (release)"
PERFORMANCE_TEST_ARM64 = "Performance Comparison (aarch64)" PERFORMANCE_TEST_ARM64 = "Performance Comparison (aarch64)"
SQL_LOGIC_TEST = "Sqllogic test (release)" # SQL_LOGIC_TEST = "Sqllogic test (release)"
SQLANCER = "SQLancer (release)" SQLANCER = "SQLancer (release)"
SQLANCER_DEBUG = "SQLancer (debug)" SQLANCER_DEBUG = "SQLancer (debug)"

View File

@ -31,7 +31,7 @@ IMAGE_NAME = "clickhouse/sqllogic-test"
def get_run_command( def get_run_command(
builds_path: Path, builds_path: Path,
repo_tests_path: Path, repo_path: Path,
result_path: Path, result_path: Path,
server_log_path: Path, server_log_path: Path,
image: DockerImage, image: DockerImage,
@ -39,11 +39,11 @@ def get_run_command(
return ( return (
f"docker run " f"docker run "
f"--volume={builds_path}:/package_folder " f"--volume={builds_path}:/package_folder "
f"--volume={repo_tests_path}:/clickhouse-tests " f"--volume={repo_path}:/repo "
f"--volume={result_path}:/test_output " f"--volume={result_path}:/test_output "
f"--volume={server_log_path}:/var/log/clickhouse-server " f"--volume={server_log_path}:/var/log/clickhouse-server "
"--security-opt seccomp=unconfined " # required to issue io_uring sys-calls "--security-opt seccomp=unconfined " # required to issue io_uring sys-calls
f"--cap-add=SYS_PTRACE {image}" f"--cap-add=SYS_PTRACE {image} /repo/tests/docker_scripts/sqllogic_runner.sh"
) )
@ -94,8 +94,6 @@ def main():
docker_image = pull_image(get_docker_image(IMAGE_NAME)) docker_image = pull_image(get_docker_image(IMAGE_NAME))
repo_tests_path = repo_path / "tests"
packages_path = temp_path / "packages" packages_path = temp_path / "packages"
packages_path.mkdir(parents=True, exist_ok=True) packages_path.mkdir(parents=True, exist_ok=True)
@ -111,7 +109,7 @@ def main():
run_command = get_run_command( # run script inside docker run_command = get_run_command( # run script inside docker
packages_path, packages_path,
repo_tests_path, repo_path,
result_path, result_path,
server_log_path, server_log_path,
docker_image, docker_image,

View File

@ -15,10 +15,10 @@ echo "Files in current directory"
ls -la ./ ls -la ./
echo "Files in root directory" echo "Files in root directory"
ls -la / ls -la /
echo "Files in /clickhouse-tests directory" echo "Files in /repo/tests directory"
ls -la /clickhouse-tests ls -la /repo/tests
echo "Files in /clickhouse-tests/sqllogic directory" echo "Files in /repo/tests/sqllogic directory"
ls -la /clickhouse-tests/sqllogic ls -la /repo/tests/sqllogic
echo "Files in /package_folder directory" echo "Files in /package_folder directory"
ls -la /package_folder ls -la /package_folder
echo "Files in /test_output" echo "Files in /test_output"
@ -45,13 +45,13 @@ function run_tests()
cd /test_output cd /test_output
/clickhouse-tests/sqllogic/runner.py --help 2>&1 \ /repo/tests/sqllogic/runner.py --help 2>&1 \
| ts '%Y-%m-%d %H:%M:%S' | ts '%Y-%m-%d %H:%M:%S'
mkdir -p /test_output/self-test mkdir -p /test_output/self-test
/clickhouse-tests/sqllogic/runner.py --log-file /test_output/runner-self-test.log \ /repo/tests/sqllogic/runner.py --log-file /test_output/runner-self-test.log \
self-test \ self-test \
--self-test-dir /clickhouse-tests/sqllogic/self-test \ --self-test-dir /repo/tests/sqllogic/self-test \
--out-dir /test_output/self-test \ --out-dir /test_output/self-test \
2>&1 \ 2>&1 \
| ts '%Y-%m-%d %H:%M:%S' | ts '%Y-%m-%d %H:%M:%S'
@ -63,7 +63,7 @@ function run_tests()
if [ -d /sqllogictest ] if [ -d /sqllogictest ]
then then
mkdir -p /test_output/statements-test mkdir -p /test_output/statements-test
/clickhouse-tests/sqllogic/runner.py \ /repo/tests/sqllogic/runner.py \
--log-file /test_output/runner-statements-test.log \ --log-file /test_output/runner-statements-test.log \
--log-level info \ --log-level info \
statements-test \ statements-test \
@ -77,7 +77,7 @@ function run_tests()
tar -zcvf statements-check.tar.gz statements-test 1>/dev/null tar -zcvf statements-check.tar.gz statements-test 1>/dev/null
mkdir -p /test_output/complete-test mkdir -p /test_output/complete-test
/clickhouse-tests/sqllogic/runner.py \ /repo/tests/sqllogic/runner.py \
--log-file /test_output/runner-complete-test.log \ --log-file /test_output/runner-complete-test.log \
--log-level info \ --log-level info \
complete-test \ complete-test \