Skip to content

Conversation

@xinlian12
Copy link
Member

@xinlian12 xinlian12 commented Jan 22, 2026

Issue

Kafka pipeline failed with "can not find valid docker environment"

Fix

Upgrade TestContainer version

@xinlian12
Copy link
Member Author

/azp run java - cosmos - Kafka

@xinlian12
Copy link
Member Author

/azp run java - cosmos - kafka

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - kafka

@azure-pipelines
Copy link

Azure Pipelines failed to run 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - kafka

@azure-pipelines
Copy link

Azure Pipelines failed to run 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - kafka

@azure-pipelines
Copy link

Azure Pipelines failed to run 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - kafka

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - kafka

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - kafka

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - kafka

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - kafka

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12 xinlian12 marked this pull request as ready for review January 23, 2026 17:18
@xinlian12 xinlian12 requested review from a team, Netyyyy, moarychan and saragluna as code owners January 23, 2026 17:18
Copilot AI review requested due to automatic review settings January 23, 2026 17:18
@xinlian12 xinlian12 requested review from a team and kirankumarkolli as code owners January 23, 2026 17:18
@xinlian12 xinlian12 changed the title [KafkaConnector][NoReview]kafka pipeline fix [KafkaConnector]kafka pipeline fix Jan 23, 2026
Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

LGMT - Thanks

Copy link
Contributor

Copilot AI left a 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

@xinlian12
Copy link
Member Author

/azp run java - cosmos - kafka

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

LGTM

@xinlian12
Copy link
Member Author

/check-enforcer override

@xinlian12 xinlian12 merged commit 97bb525 into Azure:main Jan 23, 2026
38 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants