Skip to content

chore(outputs.sql): Update ClickHouse Docker image for integration test#16462

Merged
mstrandboge merged 1 commit into
influxdata:masterfrom
AndreKR:clickhouse-test-image-update
Feb 6, 2025
Merged

chore(outputs.sql): Update ClickHouse Docker image for integration test#16462
mstrandboge merged 1 commit into
influxdata:masterfrom
AndreKR:clickhouse-test-image-update

Conversation

@AndreKR

@AndreKR AndreKR commented Feb 2, 2025

Copy link
Copy Markdown
Contributor

Summary

The Docker image yandex/clickhouse-server that has been used for the integration test hasn't been updated in 3 years. ClickHouse has moved to the Docker image that is called clickhouse.

This uses the new image for the integration test.

The log messages have changed, so that is taken into account when waiting for the test container to spin up. Technically waiting for the open port would be enough but for good measure we also wait for a corresponding log output. To get the log output, a config file is included.

Checklist

  • No AI generated code was used in this PR

Related issues

resolves #16461

@telegraf-tiger telegraf-tiger Bot added area/sql chore plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins labels Feb 2, 2025
@AndreKR AndreKR changed the title chore(outputs.sql): Update ClickHouse Docker image for test chore(outputs.sql): Update ClickHouse Docker image for integration test Feb 2, 2025

@srebhan srebhan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@AndreKR thanks for the PR. Just one comment...

Comment thread plugins/outputs/sql/sql_test.go
@srebhan srebhan self-assigned this Feb 4, 2025
@AndreKR AndreKR force-pushed the clickhouse-test-image-update branch from 85016bb to c86f67f Compare February 5, 2025 00:41
@AndreKR AndreKR marked this pull request as draft February 5, 2025 01:05
The Docker image `yandex/clickhouse-server` that has been used for the
integration test hasn't been updated in 3 years. ClickHouse has moved to
the Docker image that is called `clickhouse`.

This uses the new image for the integration test.

The log messages have changed, so that is taken into account when
waiting for the test container to spin up. Technically waiting for the
open port would be enough but for good measure we also wait for a
corresponding log output. To get the log output, a config file is
included.
@AndreKR AndreKR force-pushed the clickhouse-test-image-update branch from c86f67f to a4d3e5d Compare February 5, 2025 01:18
@AndreKR AndreKR marked this pull request as ready for review February 5, 2025 01:44
@telegraf-tiger

telegraf-tiger Bot commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

@srebhan srebhan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @AndreKR!

@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Feb 6, 2025
@srebhan srebhan assigned mstrandboge and unassigned srebhan Feb 6, 2025
@mstrandboge mstrandboge merged commit cf56e4a into influxdata:master Feb 6, 2025
@github-actions github-actions Bot added this to the v1.33.2 milestone Feb 6, 2025
@AndreKR AndreKR deleted the clickhouse-test-image-update branch February 9, 2025 14:21
srebhan pushed a commit that referenced this pull request Feb 10, 2025
asaharn pushed a commit to asaharn/telegraf that referenced this pull request Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/sql chore plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker image used for ClickHouse integration test is outdated

3 participants