Skip to content
Open
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
5 changes: 2 additions & 3 deletions ci/jobs/e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

Env:
E2E_SHARD "index/total" for the Go harness, e.g. "2/4" (passed to `make`)
K8S_IMAGE Kind node image tag (default v1.34.3)
K8S_IMAGE Kind node image tag (default kind_env.K8S_LATEST)

Reporting: Ginkgo writes report/junit-report.xml; we parse it into a praktika
Result with one sub-result per spec (ci/jobs/junit_result.py) and complete_job()
Expand All @@ -31,14 +31,13 @@
from praktika.result import Result # noqa: E402
from praktika.utils import Utils # noqa: E402

DEFAULT_K8S_IMAGE = "v1.34.3"
REPORT_DIR = "test/e2e/report"


def main():
sw = Utils.Stopwatch()
try:
node_image = os.environ.get("K8S_IMAGE") or DEFAULT_K8S_IMAGE
node_image = os.environ.get("K8S_IMAGE") or kind_env.K8S_LATEST

kind_env.require_docker()
kind_env.install_kind()
Expand Down
4 changes: 3 additions & 1 deletion ci/jobs/kind_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
import subprocess
import sys

KIND_VERSION = "v0.32.0"
KIND_VERSION = "v0.33.0"
# Default node image of KIND_VERSION; bump both together.
K8S_LATEST = "v1.37.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also update KUBECTL_VERSION when moving the test clusters to v1.37.0. It remains v1.31.1 below, so these jobs will run a kubectl client six minor releases behind the API server, outside the supported ±1-minor skew. The compat suites directly use kubectl for apply/create and OLM operations, so failures could come from the stale client rather than the operator under test.

# kubectl is not strictly required by the Go test harness (it uses client-go),
# but several deploy/diagnostic helpers shell out to it.
KUBECTL_VERSION = "v1.31.1"
Expand Down
12 changes: 6 additions & 6 deletions ci/workflows/job_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from pathlib import Path

from praktika import Artifact, Job
from ci.jobs.kind_env import K8S_LATEST
from ci.settings.settings import RunnerLabels


Expand Down Expand Up @@ -62,16 +63,16 @@ def _clickhouse_versions():
_COMPAT_E2E_MATRIX = [
# (name, k8s node image, clickhouse version(s), make target, fetch_tags)
("minimal-k8s-all-deploy-methods", "v1.28.15", _CH_LATEST, "test-compat-e2e", False),
("maximal-k8s-all-deploy-methods", "v1.36.1", _CH_LATEST, "test-compat-e2e", False),
("olm-deploy-method", "v1.28.15", _CH_LATEST, "test-compat-e2e-olm", False),
("maximal-k8s-all-deploy-methods", K8S_LATEST, _CH_LATEST, "test-compat-e2e", False),
("olm-deploy-method", K8S_LATEST, _CH_LATEST, "test-compat-e2e-olm", False),
(
"supported-clickhouse-compatibility",
"v1.30.13",
K8S_LATEST,
f"{_CH_SUPPORTED},{_CH_LATEST}-distroless",
"test-compat-e2e-manifest",
False,
),
("operator-upgrade", "v1.30.13", _CH_LATEST, "test-compat-e2e-upgrade", True),
("operator-upgrade", K8S_LATEST, _CH_LATEST, "test-compat-e2e-upgrade", True),
]


Expand All @@ -88,13 +89,12 @@ def _compat_e2e_command(k8s_image, clickhouse_version, deploy_target, fetch_tags

# Each shard runs the full suite filtered by spec-name hash (test/testutil/sharding.go).
_E2E_SHARD_TOTAL = 4
_E2E_K8S_IMAGE = "v1.34.3"


def _e2e_command(shard_index):
return (
f"E2E_SHARD={shard_index}/{_E2E_SHARD_TOTAL} "
f"K8S_IMAGE={_E2E_K8S_IMAGE} "
f"K8S_IMAGE={K8S_LATEST} "
"python3 ci/jobs/e2e.py"
)

Expand Down
Loading