Skip to content

Run ClickHouse server locally instead of using cloud instances for tests#494

Open
slabko wants to merge 1 commit into
masterfrom
local-tests
Open

Run ClickHouse server locally instead of using cloud instances for tests#494
slabko wants to merge 1 commit into
masterfrom
local-tests

Conversation

@slabko
Copy link
Copy Markdown
Contributor

@slabko slabko commented May 13, 2026

Testing the library against ClickHouse Cloud has been challenging, particularly because tests from external PRs could not reach the ClickHouse Cloud instance. This was due to the required credentials being stored in organization-only secrets.

This PR replaces ClickHouse Cloud with a locally run server across all CI workflows, so the test suite no longer depends on shared cloud credentials or a TLS offloader proxy.

  • Linux: switch from an ad hoc docker run setup to a Docker instance managed by Docker Compose.
  • macOS: download the official ClickHouse binary and run it directly against the same config.xml used by the Docker Compose-managed instance on Linux.
  • Windows: install WSL + Podman/Podman Compose and run the same docker-compose.yml inside WSL.
  • Remove all INTEGRATIONS_TEAM_TESTS_CLOUD_* secrets and CLICKHOUSE_SECURE_* environment variables that pointed to remote instances.
  • Update the RemoteTLS SSL suite to point to the public play.clickhouse.com instance.
  • Replace SELECT buildId() with SELECT blockSize() in readonly client queries — buildId() is not available on macOS for custom ClickHouse versions.

@slabko slabko force-pushed the local-tests branch 30 times, most recently from 3429f9e to 7b69acd Compare May 14, 2026 11:04
@slabko slabko force-pushed the local-tests branch 4 times, most recently from c761dfc to fc9ee9e Compare May 14, 2026 12:49
@slabko slabko changed the title Run tests locally on CI Run ClickHouse server locally instead of using cloud instances for tests May 14, 2026
@slabko slabko marked this pull request as ready for review May 14, 2026 13:40
@slabko slabko requested a review from mzitnik as a code owner May 14, 2026 13:40
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.

1 participant