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

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

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

AndreKR
Copy link
Contributor

@AndreKR AndreKR commented Feb 2, 2025

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
Copy link
Member

@srebhan srebhan left a comment

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...

plugins/outputs/sql/sql_test.go Show resolved Hide resolved
@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
Copy link
Contributor

telegraf-tiger bot commented Feb 5, 2025

Copy link
Member

@srebhan srebhan left a comment

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 DStrand1 and unassigned srebhan Feb 6, 2025
@DStrand1 DStrand1 merged commit cf56e4a into influxdata:master Feb 6, 2025
29 checks passed
@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
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