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

24.3 Fix integration tests #493

Merged
merged 7 commits into from
Oct 8, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/integration/helpers/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
# Minimum version we use in integration tests to check compatibility with old releases
# Keep in mind that we only support upgrading between releases that are at most 1 year different.
# This means that this minimum need to be, at least, 1 year older than the current release
CLICKHOUSE_CI_MIN_TESTED_VERSION = "v23.3.19.33.altinitystable"
# NOTE(vnemkov): this is a docker tag, make sure it doesn't include initial 'v'
CLICKHOUSE_CI_MIN_TESTED_VERSION = "23.3.19.33.altinitystable"


# to create docker-compose env file
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<clickhouse>
<users>
<new_user>
<password></password>
<networks>
<ip>::/0</ip>
</networks>
<profile>default</profile>
<quota>default</quota>
</new_user>
</users>
</clickhouse>
11 changes: 8 additions & 3 deletions tests/integration/test_distributed_inter_server_secret/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@
cluster = ClickHouseCluster(__file__)


def make_instance(name, cfg, *args, **kwargs):
def make_instance(name, *args, **kwargs):
main_configs = kwargs.pop("main_configs", [])
main_configs.append("configs/remote_servers.xml")
user_configs = kwargs.pop("user_configs", [])
user_configs.append("configs/users.xml")

return cluster.add_instance(
name,
with_zookeeper=True,
main_configs=["configs/remote_servers.xml", cfg],
user_configs=["configs/users.xml"],
main_configs=main_configs,
user_configs=user_configs,
*args,
**kwargs,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_prometheus_endpoint/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def parse_response_line(line):

if line.startswith("#"):
return {}
match = re.match("^([a-zA-Z_:][a-zA-Z0-9_:]+)(\{.*\})? -?(\d)", line)
match = re.match(r"^([a-zA-Z_:][a-zA-Z0-9_:]+)(\{.*\})? -?(\d)", line)
assert match, line
name, _, val = match.groups()
return {name: int(val)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<default>
<allow_experimental_analyzer>1</allow_experimental_analyzer>
<allow_experimental_parallel_reading_from_replicas>1</allow_experimental_parallel_reading_from_replicas>
<allow_experimental_database_replicated>1</allow_experimental_database_replicated>
<cluster_for_parallel_replicas>default</cluster_for_parallel_replicas>
<max_parallel_replicas>100</max_parallel_replicas>
<use_hedged_requests>0</use_hedged_requests>
Expand Down
11 changes: 11 additions & 0 deletions tests/integration/test_storage_s3_queue/configs/users_old.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<clickhouse>
<profiles>
<default>
<stream_like_engine_allow_direct_select>1</stream_like_engine_allow_direct_select>
<s3queue_enable_logging_to_s3queue_log>1</s3queue_enable_logging_to_s3queue_log>
<!-- Used for pre-24.3 version, where this particular option is not available -->
<!-- <s3queue_allow_experimental_sharded_mode>1</s3queue_allow_experimental_sharded_mode> -->
<allow_experimental_s3queue>1</allow_experimental_s3queue>
</default>
</profiles>
</clickhouse>
6 changes: 4 additions & 2 deletions tests/integration/test_storage_s3_queue/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ def started_cluster():
)
cluster.add_instance(
"old_instance",
user_configs=["configs/users_old.xml"],
with_zookeeper=True,
image="altinity/clickhouse-server",
tag="23.8.11.29.altinitystable", #TODO: (mtkachenko) verify this substitution is ok. Originally 23.12
# NOTE (vnemkov) Can't use altinity/clickhouse here since 23.8 doesn't hve S3Queue (and associated settings yet)
image="clickhouse/clickhouse-server",
tag="23.12",
stay_alive=True,
with_installed_binary=True,
use_old_analyzer=True,
Expand Down
Loading