Skip to content

Add bin/clickhouse-client shim symlink for upstream test runner#736

Merged
peter-leonov-ch merged 3 commits into
mainfrom
copilot/add-clickhouse-client-shim
May 13, 2026
Merged

Add bin/clickhouse-client shim symlink for upstream test runner#736
peter-leonov-ch merged 3 commits into
mainfrom
copilot/add-clickhouse-client-shim

Conversation

Copilot AI commented May 13, 2026

Copy link
Copy Markdown
Contributor

Summary

run-upstream-tests.sh prepends tests/clickhouse-test-runner/bin/ to PATH, but that directory only contained clickhouse. The upstream tests/clickhouse-test runner shells out to clickhouse-client to execute queries, so those invocations either bypassed the shim or failed when no real client was installed — contradicting the README's claim that the harness is a clickhouse-client replacement.

  • bin/clickhouse-client symlinkclickhouse, so both binary names resolve to the same wrapper. The existing shim already routes extract-from-config correctly and forwards everything else to node dist/main.js, so no script changes are needed.
  • README updated to document the symlink and why both names must be on PATH (clickhouse extract-from-config during setup, clickhouse-client for queries).

Checklist

  • A human-readable description of the changes was provided to include in CHANGELOG

@CLAassistant

CLAassistant commented May 13, 2026

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 all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ peter-leonov-ch
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov

codecov Bot commented May 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@peter-leonov-ch peter-leonov-ch marked this pull request as ready for review May 13, 2026 20:00
Copilot AI review requested due to automatic review settings May 13, 2026 20:00

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.

Pull request overview

This PR fixes upstream ClickHouse SQL test runner compatibility by ensuring that clickhouse-client invocations resolve to this repo’s clickhouse-test-runner shim (rather than requiring/bypassing a system-installed client), and documents the requirement.

Changes:

  • Add a bin/clickhouse-client entry that resolves to the existing bin/clickhouse wrapper so the upstream runner can execute queries via the shim.
  • Update the upstream test runner README to explain why both clickhouse and clickhouse-client must be on PATH.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/clickhouse-test-runner/README.md Documents the clickhouse-client resolution behavior and why both binary names must be available on PATH for the upstream runner.
tests/clickhouse-test-runner/bin/clickhouse-client Provides the clickhouse-client name expected by the upstream runner, resolving to the same shim behavior as bin/clickhouse.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/clickhouse-test-runner/README.md Outdated
peter-leonov-ch and others added 2 commits May 13, 2026 22:06
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@peter-leonov-ch peter-leonov-ch merged commit 5535526 into main May 13, 2026
84 checks passed
@peter-leonov-ch peter-leonov-ch deleted the copilot/add-clickhouse-client-shim branch May 13, 2026 21:15
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.

4 participants