mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
The minimum old release used in integration compatibility tests was 23.3. We only support upgrading between releases at most one year apart, so raise the floor to 25.3. Every test pinning an older release was reviewed: - Tests that only need some old release now use the constant (parallel-replicas protocol/serialization, const-node optimization, short strings aggregation, replicating constants, mixed-version backup/restore, s3Cluster/deltaLakeCluster mixed clusters). Each was checked to confirm the behavior it guards still ships after 25.3, so 25.3 remains a valid old node. - Tests whose setup requires a now-unsupported release, reproducing a pre-25.3 format or behavior that 25.3 can no longer produce, were removed: the 24.1 TTL-move regression, the pre-24.10 query-settings-in-.sql tests, and the S3Queue pre-buckets metadata migration from 23.12/24.5. Where a fixture was shared, only the old-version test and its exclusive instance were dropped. Converted backward-compat tests pass against current master with 25.3 as the old node. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
34 lines
778 B
Python
34 lines
778 B
Python
import pytest
|
|
|
|
from helpers.cluster import CLICKHOUSE_CI_MIN_TESTED_VERSION, ClickHouseCluster
|
|
|
|
cluster = ClickHouseCluster(__file__)
|
|
|
|
node1 = cluster.add_instance("node1", with_zookeeper=True)
|
|
node2 = cluster.add_instance(
|
|
"node2",
|
|
with_zookeeper=True,
|
|
image="clickhouse/clickhouse-server",
|
|
tag=CLICKHOUSE_CI_MIN_TESTED_VERSION,
|
|
with_installed_binary=True,
|
|
)
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def start_cluster():
|
|
try:
|
|
cluster.start()
|
|
|
|
yield cluster
|
|
finally:
|
|
cluster.shutdown()
|
|
|
|
|
|
def test_different_versions(start_cluster):
|
|
assert (
|
|
node1.query(
|
|
"SELECT uniqExact(x) FROM (SELECT version() as x from remote('node{1,2}', system.one)) settings serialize_query_plan = 0"
|
|
)
|
|
== "2\n"
|
|
)
|