8000 ci: fix run_tests and test runner image on ubuntu 26.04 by Slach · Pull Request #2142 · Altinity/clickhouse-operator · GitHub
[go: up one dir, main page]

Skip to content

ci: fix run_tests and test runner image on ubuntu 26.04 - #2142

Merged
alex-zaitsev merged 3 commits into
0.28.0from
ci/ubuntu-26.04-apt-key
Nov 6, 2026
Merged

alex-zaitsev merged 3 commits into
0.28.0from
ci/ubuntu-26.04-apt-key

Conversation

@Slach
@Slach Slach commented Nov 6, 2026 •
Copy link
Copy Markdown
Collaborator

`ubuntu-latest` moved to ubuntu-26.04 and `run_tests` fails at Setup required Ubuntu packages:

sudo: 'apt-key': command not found

(e.g. https://github.com/Altinity/clickhouse-operator/actions/runs/42167108242/job/127726026383)

`.github/workflows/run_tests.yaml`

  • ClickHouse apt repo is added via a `signed-by` keyring instead of `apt-key`; `apt-get` → `apt`.
  • Runs on python 3.13 via `actions/setup-python`. 26.04 ships python 3.14, and testflows (even the latest 2.4.23) imports the `_compression` module, which 3.14 removed. With the apt step fixed, the e2e step failed with `ModuleNotFoundError: No module named '_compression'`.
  • The venv cache key includes `ImageOS` and the python version, so a venv from another image or interpreter is never restored.

`tests/image` (test runner image)

  • `ubuntu:22.04` → `ubuntu:26.04`
  • Dropped `cgroupfs-mount` (no longer packaged); `liblua5.1-dev` → `liblua5.1-0-dev`.
  • yq: `apt-key` + PPA replaced with the pinned mikefarah/yq binary `v4.54.2`.
  • Docker repo uses the `stable` channel and `VERSION_CODENAME` from `/etc/os-release`.
  • Removed the dead `apt.kubernetes.io` repo; it was never used, since kubectl is downloaded directly from `dl.k8s.io`.
  • python: system pip is blocked by PEP 668 and 3.14 doesn't work with testflows, so requirements go into a `uv`-managed python 3.13 venv at `/opt/venv`, which is on `PATH`.
  • k9s: pinned `v0.51.0` and updated to the new release asset names (`k9s_Linux_amd64.tar.gz`, `checksums.sha256`).
  • k8s `1.36.5`, minikube `1.39.0`, kicbase `v0.0.51` (digest in the cache symlink matches the minikube 1.39.0 source). `K8S_VERSION` is now an `ARG` passed from `build_docker.sh`. Before this, the Dockerfile hardcoded 1.25.3 while `build_docker.sh` downloaded 1.28.5, so the preload `COPY` could not succeed.

Checked locally: the image builds (`linux/amd64`, with stub `cache/` files). Inside it: Ubuntu 26.04.1, Python 3.13 with `testflows`/`tfs` importable, yq v4.54.2, k9s v0.51.0, kubectl v1.36.5, minikube v1.39.0, docker 29.9.3, iptables-legacy selected. The entrypoint starts dockerd in a privileged container.

🤖 Generated with Claude Code

Slach and others added 3 commits November 6, 2026 09:52
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…om ubuntu-26.04

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…kube 1.39.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Slach Slach changed the title ci: fix run_tests on ubuntu-26.04 runners (apt-key removed) ci: fix run_tests and test runner image on ubuntu 26.04 Nov 6, 2026
@alex-zaitsev
alex-zaitsev merged commit d9bbb23 into 0.28.0 Nov 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0