-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[KafkaConnector]kafka pipeline fix #47782
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
Conversation
|
/azp run java - cosmos - Kafka |
|
/azp run java - cosmos - kafka |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run java - cosmos - kafka |
|
Azure Pipelines failed to run 1 pipeline(s). |
|
/azp run java - cosmos - kafka |
|
Azure Pipelines failed to run 1 pipeline(s). |
|
/azp run java - cosmos - kafka |
|
Azure Pipelines failed to run 1 pipeline(s). |
|
/azp run java - cosmos - kafka |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run java - cosmos - kafka |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run java - cosmos - kafka |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run java - cosmos - kafka |
|
Azure Pipelines successfully started running 1 pipeline(s). |
8a68cf0 to
cef3d38
Compare
|
/azp run java - cosmos - kafka |
|
Azure Pipelines successfully started running 1 pipeline(s). |
...java/com/azure/cosmos/kafka/connect/implementation/sink/idStrategy/TemplateStrategyTest.java
Outdated
Show resolved
Hide resolved
FabianMeiswinkel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT - Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes Kafka pipeline issues by ensuring Docker availability, upgrading testcontainers dependencies, and refactoring test imports to use internal implementation classes instead of testcontainers shaded dependencies.
Changes:
- Added Docker verification script to the Kafka pipeline to ensure Docker is installed and running before tests
- Upgraded testcontainers dependencies from version 1.19.5 to 1.21.4
- Refactored test imports to use Azure Cosmos internal implementation classes (Pair, assertEquals) instead of external shaded dependencies
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/cosmos/kafka.yml | Added PreTestRunSteps with Docker availability check and wait logic |
| sdk/cosmos/azure-cosmos-kafka-connect/src/test/java/com/azure/cosmos/kafka/connect/implementation/sink/idStrategy/TemplateStrategyTest.java | Changed assertion import from JUnit to TestNG AssertJUnit for consistency |
| sdk/cosmos/azure-cosmos-kafka-connect/src/test/java/com/azure/cosmos/kafka/connect/CosmosSourceConnectorTest.java | Changed Pair import from testcontainers shaded to cosmos implementation package |
| sdk/cosmos/azure-cosmos-kafka-connect/src/test/java/com/azure/cosmos/kafka/connect/CosmosSinkConnectorTest.java | Changed Pair import from testcontainers shaded to cosmos implementation package |
| sdk/cosmos/azure-cosmos-kafka-connect/pom.xml | Updated testcontainers and kafka testcontainers dependencies to version 1.21.4 |
| eng/versioning/external_dependencies.txt | Updated testcontainers dependency versions to match pom.xml changes |
|
/azp run java - cosmos - kafka |
|
Azure Pipelines successfully started running 1 pipeline(s). |
FabianMeiswinkel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
/check-enforcer override |
Issue
Kafka pipeline failed with "can not find valid docker environment"
Fix
Upgrade TestContainer version