Skip to content

upgrades clickhouse library version - #4977

Merged
akshaydeo merged 1 commit into
devfrom
07-06-upgrades_clickhouse_library_version
Jul 6, 2026
Merged

upgrades clickhouse library version#4977
akshaydeo merged 1 commit into
devfrom
07-06-upgrades_clickhouse_library_version

Conversation

@akshaydeo

@akshaydeo akshaydeo commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Bumps several indirect Go dependencies to their latest patch/minor versions across the framework, tests/cmd/seed, tests/cmd/e2eseed, and tests/cmd/seedvks modules.

Changes

  • github.com/ClickHouse/ch-go upgraded from v0.61.5v0.65.0
  • github.com/hashicorp/go-version upgraded from v1.6.0v1.7.0
  • github.com/pierrec/lz4/v4 upgraded from v4.1.21v4.1.22
  • github.com/maximhq/bifrost/core upgraded from v1.6.2v1.6.3 (in e2eseed, seed, and seedvks)
  • go.sum files updated with additional transitive dependency checksums introduced by the ch-go upgrade (e.g., go-faster/city, go-faster/errors, segmentio/asm, shopspring/decimal, paulmach/orb, and various golang.org/x/* historical entries)

Type of change

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Chore/CI

Affected areas

  • Core (Go)
  • Transports (HTTP)
  • Providers/Integrations
  • Plugins
  • UI (React)
  • Docs

How to test

go version
go test ./...

Screenshots/Recordings

N/A

Breaking changes

  • Yes
  • No

Related issues

N/A

Security considerations

No security implications. All changes are indirect dependency version bumps with no API surface changes.

Checklist

  • I read docs/contributing/README.md and followed the guidelines
  • I added/updated tests where appropriate
  • I updated documentation where needed
  • I verified builds succeed (Go and UI)
  • I verified the CI pipeline passes locally if applicable

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@akshaydeo
akshaydeo marked this pull request as ready for review July 6, 2026 22:45

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This PR updates dependency versions across four go.mod files: bumps github.com/ClickHouse/ch-go, github.com/hashicorp/go-version, github.com/pierrec/lz4/v4, and github.com/maximhq/bifrost/core to newer versions. No source code or structural changes accompany these updates.

Changes

Go module dependency version bumps

Layer / File(s) Summary
Framework dependency bumps
framework/go.mod
Updates ch-go to v0.65.0 (moved to standalone require), go-version to v1.7.0, and lz4/v4 to v4.1.22.
e2eseed test dependency bumps
tests/cmd/e2eseed/go.mod
Updates ch-go to v0.65.0, go-version to v1.7.0, bifrost/core to v1.6.3, and lz4/v4 to v4.1.22.
seed test dependency bumps
tests/cmd/seed/go.mod
Updates bifrost/core to v1.6.3, ch-go to v0.65.0, go-version to v1.7.0, and lz4/v4 to v4.1.22.
seedvks test dependency bump
tests/cmd/seedvks/go.mod
Updates bifrost/core to v1.6.3.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Related issues: #123 (Files API Support) is not addressed by this PR; the changes here are limited to dependency version bumps in go.mod files.

Suggested labels: dependencies, go.mod

Suggested reviewers: none required beyond standard dependency update review

Poem:
A hop, a bump, a version raised,
Four go.mod files quietly amazed,
No code was touched, no logic bent,
Just newer packages, dutifully sent. 🐰📦

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The changes only bump dependencies in go.mod files and do not implement Files API support for POST /v1/files. Implement the Files API support requested in #123, including file upload handling and provider integration, or remove the issue link.
Out of Scope Changes check ⚠️ Warning The dependency-only version bumps are unrelated to the linked Files API support requirement. Move the dependency updates to a separate PR or add the missing Files API implementation so the scope matches #123.
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly summarizes the main change: upgrading the ClickHouse Go library dependency.
Description check ✅ Passed The description matches the template well, covering summary, changes, change type, affected areas, testing, breaking changes, issues, security, and checklist.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 07-06-upgrades_clickhouse_library_version

Comment @coderabbitai help to get the list of available commands.

akshaydeo commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Merge activity

  • Jul 6, 10:48 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jul 6, 10:48 PM UTC: @akshaydeo merged this pull request with Graphite.

@greptile-apps

greptile-apps Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 3/5

The dependency graph leaves clickhouse-go/v2 at a version that may not compile cleanly against the newly pinned ch-go; a successful build should be confirmed before merging.

The ch-go version pin introduced a known incompatibility with the companion clickhouse-go/v2 driver that was not also upgraded. The ch-go v0.65.0 release has a breaking change in the compress package, and this pairing has been reported to cause build failures for clickhouse-go users who didn't also upgrade to v2.32.2 or later. If the Go build actually succeeds in CI, the runtime risk from the library upgrade itself is lower, but that outcome hasn't been demonstrated in the PR.

framework/go.mod, tests/cmd/seed/go.mod, and tests/cmd/e2eseed/go.mod all carry the ch-go/clickhouse-go mismatch.

Important Files Changed

Filename Overview
framework/go.mod Pins ch-go to v0.65.0 while keeping clickhouse-go/v2 at v2.30.0, a combination known to cause build failures; also bumps hashicorp/go-version and pierrec/lz4
tests/cmd/seed/go.mod Same ch-go v0.65.0 + clickhouse-go/v2 v2.30.0 mismatch as framework/go.mod; also upgrades hashicorp/go-version and pierrec/lz4
tests/cmd/e2eseed/go.mod Same ch-go/clickhouse-go version mismatch; additionally bumps bifrost/core from v1.6.2 to v1.6.3
tests/cmd/seedvks/go.mod Updates bifrost/core from v1.6.2 to v1.6.3; no ClickHouse dependencies in this module so no mismatch concern

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["framework/go.mod\nclickhouse-go/v2 v2.30.0 (unchanged)"] -->|designed for| B["ch-go v0.61.5"]
    A -->|PR pins override| C["ch-go v0.65.0 (CVE-2025-1386 fix)"]
    C -->|breaking API change\ncompress.Writer| D{{"Build compatibility risk"}}
    E["clickhouse-go/v2 v2.32.2+"] -->|properly supports| C
    D -->|resolution| E
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A["framework/go.mod\nclickhouse-go/v2 v2.30.0 (unchanged)"] -->|designed for| B["ch-go v0.61.5"]
    A -->|PR pins override| C["ch-go v0.65.0 (CVE-2025-1386 fix)"]
    C -->|breaking API change\ncompress.Writer| D{{"Build compatibility risk"}}
    E["clickhouse-go/v2 v2.32.2+"] -->|properly supports| C
    D -->|resolution| E
Loading

Reviews (1): Last reviewed commit: "upgrades clickhouse library version" | Re-trigger Greptile

Comment thread framework/go.mod
Comment on lines 27 to 40
@@ -35,7 +37,6 @@ require (
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.13.1 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.2 // indirect
github.com/AzureAD/microsoft-authentication-library-for-go v1.6.0 // indirect
github.com/ClickHouse/ch-go v0.61.5 // indirect
github.com/ClickHouse/clickhouse-go/v2 v2.30.0 // indirect

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.

P1 ch-go/clickhouse-go version mismatch may break the build

ch-go is pinned to v0.65.0 but clickhouse-go/v2 stays at v2.30.0, which was originally designed to depend on ch-go v0.61.5. The ch-go v0.65.0 release introduced a breaking API change in compress.Writer (exposing custom supported-method construction), and users have reported compilation failures when pairing clickhouse-go/v2 versions below v2.32.2 with ch-go v0.65.0. The same mismatch is replicated in tests/cmd/seed/go.mod and tests/cmd/e2eseed/go.mod. If the intent is to pull in the CVE-2025-1386 (query smuggling) fix, the safest approach is to upgrade clickhouse-go/v2 to v2.32.2 or later, which declares its own dependency on ch-go v0.65.0 and was validated against the new API.

@akshaydeo
akshaydeo merged commit c17bf16 into dev Jul 6, 2026
15 of 16 checks passed
@akshaydeo
akshaydeo deleted the 07-06-upgrades_clickhouse_library_version branch July 6, 2026 22:48
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