Skip to content

ci: use single source of truth for supported ClickHouse versions, auto update list - #355

Merged
GrigoryPervakov merged 1 commit into
mainfrom
supported-versions
Oct 7, 2026
Merged

GrigoryPervakov merged 1 commit into
mainfrom
supported-versions

Conversation

@GrigoryPervakov

Copy link
Copy Markdown
Member

Why

Tested ClickHouse versions are usually stale.
We had 3 places to update.

What

  • Use a single source of truth for the supported ClickHouse versions
  • Add weekly auto upgrade script

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The updater neither refreshes an existing bot PR nor triggers CI for its token-authored PR.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
What changed in this PR

Centralizes supported ClickHouse versions and automates their weekly refresh.

Changes:

  • Adds an embedded, generated version catalog.
  • Reuses catalog versions across tests and CI matrices.
  • Adds a weekly workflow for update pull requests.
File Description
tools/​update-clickhouse-versions/​main.go Generates supported version pins.
test/​supported/​versions.json Stores pinned versions.
test/​supported/​supported.go Parses and exposes version data.
test/​testutil/​utils.go Sources shared test versions.
test/​testutil/​fixtures.go Uses parsed base versions.
test/​e2e/​e2e_suite_test.go Reuses the shared catalog.
test/​deploy/​deploy_test.go Uses pinned deployment versions.
internal/​upgrade/​fetcher.go Exposes release preprocessing.
internal/​controller/​clickhouse/​commands_test.go Removes a literal image version.
.github/​workflows/​ci.yaml Generates compatibility matrices from the catalog.
.github/​workflows/​update-clickhouse-versions.yaml Adds weekly update automation.
AGENTS.md Documents the version source.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/update-clickhouse-versions.yaml Outdated
Comment thread .github/workflows/update-clickhouse-versions.yaml Outdated
@GrigoryPervakov
GrigoryPervakov marked this pull request as ready for review October 1, 2026 13:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Automated update PRs will not trigger CI, and the updater’s critical selection behavior lacks tests.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
Resolved since last review (1)

Comment thread tools/update-clickhouse-versions/main.go Outdated
@GrigoryPervakov
GrigoryPervakov merged commit 93abd0f into main Oct 7, 2026
43 of 47 checks passed
@GrigoryPervakov
GrigoryPervakov deleted the supported-versions branch October 7, 2026 14:38
maxknv added a commit that referenced this pull request Oct 7, 2026
Main #355 moved the compat-e2e matrix to read test/supported/versions.json
(single source of truth, auto-updated). Reproduce that in the praktika compat
matrix: _clickhouse_versions() computes latest + supported (highest patch per
major.minor, descending) from that file, matching ci.yaml jq, instead of
hardcoding versions.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

3 participants