Skip to content
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

Add cloud tests #339

Closed
wants to merge 22 commits into from
Closed

Add cloud tests #339

wants to merge 22 commits into from

Conversation

mzitnik
Copy link
Collaborator

@mzitnik mzitnik commented Jul 9, 2024

Summary

Add cloud tests

Checklist

Delete items not relevant to your PR:

  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided to include in CHANGELOG
  • For significant changes, documentation in https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials

val CLICKHOUSE_VERSION: String = Utils.load("CLICKHOUSE_VERSION", "23.8")
val isCloud: Boolean = if (CLICKHOUSE_VERSION.equalsIgnoreCase("cloud")) true else false
val isOnPrem: Boolean = !isCloud
val CLICKHOUSE_IMAGE: String = if (isCloud) "clickhouse/clickhouse-server:23.8"
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is too hacky.

I would suggest adding a new ClickHouseCouldMixIn alongside the existing ClickHouseSingleMixIn and ClickHouseClusterMixIn.

Copy link
Collaborator

Choose a reason for hiding this comment

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

this comment was ignored. the current change mixes things up. Let me clarify more details

ClickHouse*MixIn tasks responsibility to provide a ClickHouse instance(s) to run integration tests:

  • ClickHouseSingleMixIn provides a single ClickHouse instance by using docker to launch a single container
  • ClickHouseClusterMixIn provides a ClickHouse cluster by using docker compose to launcher a set of containers
  • ClickHouseCouldMixIn should just expose ClickHouse Cloud instance's URL and credential.

Copy link
Collaborator

Choose a reason for hiding this comment

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

this will introduce some refactoring, i will take a look if i find time this weekend

@mzitnik mzitnik requested a review from BentsiLeviav July 15, 2024 07:33
Copy link
Collaborator

@pan3793 pan3793 left a comment

Choose a reason for hiding this comment

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

Sorry, I think this PR is not ready to go

.github/workflows/build-and-test.yml Outdated Show resolved Hide resolved
val CLICKHOUSE_VERSION: String = Utils.load("CLICKHOUSE_VERSION", "23.8")
val isCloud: Boolean = if (CLICKHOUSE_VERSION.equalsIgnoreCase("cloud")) true else false
val isOnPrem: Boolean = !isCloud
val CLICKHOUSE_IMAGE: String = if (isCloud) "clickhouse/clickhouse-server:23.8"
Copy link
Collaborator

Choose a reason for hiding this comment

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

this comment was ignored. the current change mixes things up. Let me clarify more details

ClickHouse*MixIn tasks responsibility to provide a ClickHouse instance(s) to run integration tests:

  • ClickHouseSingleMixIn provides a single ClickHouse instance by using docker to launch a single container
  • ClickHouseClusterMixIn provides a ClickHouse cluster by using docker compose to launcher a set of containers
  • ClickHouseCouldMixIn should just expose ClickHouse Cloud instance's URL and credential.

gradle.properties Outdated Show resolved Hide resolved
@mzitnik mzitnik closed this Aug 6, 2024
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