-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow use test utils outside of this repository #1304
Comments
Hi @toby3d I am quite not sure what the problem is.
Did you check if Do I understand correctly you want to reuse |
Not quite "exactly", since an external dependency in the form of a docker is used. This complicates running tests in CI/CD in "flat" images (like
No, |
Docker runner is a cost we sacrifice on our side. Is there any reason you might want to run clickhouse-go tests in your CI? |
If we allow the sacrifice of running tests in CI, we are left with the requirement of local testing of ClickHouse related code on the developer's machine with a simple Neither in the case of a local machine nor CI/CD, I can't afford to throw away a vendor that ClickHouse doesn't explicitly support right now. |
Observed
I'm trying to set up an in-memory or localhost ClickHouse instance to autostart directly from Golang test code, so as not to require manual installation and running dependencies. As far as I understand from the examples in the repository, it's enough to create a test environment and connect to it just as if it were running in production.
But in the process I discovered some unpleasant features: dependencies in the form of docker and broken operation in the presence of vendor. The first I'm still able to ignore for the time being. But I can't give up on the latter because of the privacy of the repository and some of its dependencies, which are easier to vend together with the code than to try to set up special individual accesses in environments I don't control. Also, some dependencies can be moved or removed without my knowledge, which I have unfortunately already encountered and avoided by vendoring.
Expected behaviour
I expect the SDK to have tools to create and configure short-lived ClickHouse instances locally or directly in memory right from go-tests, without having to go online for dependencies. For example, by vendoring the SDK in a project.
Code example
Error log
Details
Environment
clickhouse-go
version:v2.24.0
database/sql
compatible driver1.22.3
local version 24.4.1.2088 (official build)
No
none
CREATE TABLE
statements for tables involved:none
The text was updated successfully, but these errors were encountered: