Skip to content

[DON'T REVIEW, TEST ONLY] Try to add CosmosDockerComposeConnectionDetailsFactory#47958

Closed
rujche wants to merge 32 commits intomainfrom
copilot/add-support-connectiondetails-1
Closed

[DON'T REVIEW, TEST ONLY] Try to add CosmosDockerComposeConnectionDetailsFactory#47958
rujche wants to merge 32 commits intomainfrom
copilot/add-support-connectiondetails-1

Conversation

@rujche
Copy link
Copy Markdown
Member

@rujche rujche commented Feb 10, 2026

Link to related comment: #41321 (comment)

Copilot AI and others added 30 commits February 6, 2026 07:50
…ners, and docker-compose

Co-authored-by: rujche <171773178+rujche@users.noreply.github.com>
Co-authored-by: rujche <171773178+rujche@users.noreply.github.com>
This reverts commit e65c718.
…ure/azure-sdk-for-java into copilot/add-support-connectiondetails
…heckpointStore, Producer, and Consumer configs

Prevent startup failures when EventHubs auto-config activates without
base-level connection info. Without these guards, configurations that
constructor-inject AzureEventHubsProperties could fail with
UnsatisfiedDependencyException when only sub-level properties are set.

- AzureBlobCheckpointStoreConfiguration: guard against missing properties bean
- AzureEventHubsProducerClientConfiguration: guard dedicated producer config
- AzureEventHubsConsumerClientConfiguration: guard dedicated consumer config
- Updated tests to provide AzureEventHubsPropertiesTestConfiguration
Copilot AI review requested due to automatic review settings February 10, 2026 08:04
@rujche rujche requested review from a team, Netyyyy, moarychan and saragluna as code owners February 10, 2026 08:04
@github-actions github-actions bot added the azure-spring All azure-spring related issues label Feb 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

API Change Check

APIView identified API level changes in this PR and created the following API reviews

com.azure.spring:spring-cloud-azure-docker-compose

Copy link
Copy Markdown
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 expands Spring Cloud Azure’s Service Connection support (Spring Boot ConnectionDetails) by adding Event Hubs and Cosmos coverage across the docker-compose and testcontainers integration modules, and refactors Event Hubs autoconfiguration to be driven by an AzureEventHubsProperties bean (including ConnectionDetails overrides).

Changes:

  • Add Event Hubs ConnectionDetails + corresponding docker-compose and testcontainers ConnectionDetailsFactory implementations (with new integration tests and emulator configs).
  • Add Cosmos docker-compose ConnectionDetailsFactory and a docker-compose based Cosmos persistence test.
  • Refactor Event Hubs autoconfigure property creation to support ConnectionDetails-driven overrides and adjust related tests.

Reviewed changes

Copilot reviewed 36 out of 38 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
sdk/spring/spring-cloud-azure-testcontainers/src/test/resources/eventhubs/Config.json Adds Event Hubs emulator config for testcontainers-based tests.
sdk/spring/spring-cloud-azure-testcontainers/src/test/java/com/azure/spring/cloud/testcontainers/implementation/service/connection/hubs/EventHubsContainerConnectionDetailsFactoryTests.java New test validating Event Hubs ConnectionDetails + producer send against emulator.
sdk/spring/spring-cloud-azure-testcontainers/src/test/java/com/azure/spring/cloud/testcontainers/implementation/service/connection/bus/ServiceBusContainerConnectionDetailsFactoryTests.java Extends Service Bus test coverage to assert ConnectionDetails presence.
sdk/spring/spring-cloud-azure-testcontainers/src/main/resources/META-INF/spring.factories Registers Event Hubs testcontainers ConnectionDetailsFactory.
sdk/spring/spring-cloud-azure-testcontainers/src/main/java/com/azure/spring/cloud/testcontainers/implementation/service/connection/hubs/EventHubsContainerConnectionDetailsFactory.java Implements Event Hubs ConnectionDetailsFactory for testcontainers emulator.
sdk/spring/spring-cloud-azure-testcontainers/pom.xml Moves messaging/emulator client deps to test scope and adds Event Hubs client for tests.
sdk/spring/spring-cloud-azure-docker-compose/src/test/resources/com/azure/spring/cloud/docker/compose/implementation/service/connection/hubs/eventhubs-compose.yaml Adds docker-compose stack for Event Hubs emulator + Azurite.
sdk/spring/spring-cloud-azure-docker-compose/src/test/resources/com/azure/spring/cloud/docker/compose/implementation/service/connection/hubs/Config.json Adds Event Hubs emulator config for docker-compose tests.
sdk/spring/spring-cloud-azure-docker-compose/src/test/resources/com/azure/spring/cloud/docker/compose/implementation/service/connection/cosmos/cosmos-compose.yaml Adds docker-compose stack for Cosmos emulator.
sdk/spring/spring-cloud-azure-docker-compose/src/test/resources/com/azure/spring/cloud/docker/compose/implementation/service/connection/bus/servicebus-compose.yaml Adds docker-compose stack for Service Bus emulator + SQL Edge.
sdk/spring/spring-cloud-azure-docker-compose/src/test/resources/com/azure/spring/cloud/docker/compose/implementation/service/connection/bus/Config.json Adds Service Bus emulator config for docker-compose tests.
sdk/spring/spring-cloud-azure-docker-compose/src/test/java/com/azure/spring/cloud/docker/compose/implementation/service/connection/hubs/EventHubsDockerComposeConnectionDetailsFactoryTests.java New test validating Event Hubs ConnectionDetails + producer send via docker-compose.
sdk/spring/spring-cloud-azure-docker-compose/src/test/java/com/azure/spring/cloud/docker/compose/implementation/service/connection/cosmos/CosmosDockerComposeConnectionDetailsFactoryTests.java New Cosmos repository persistence test via docker-compose emulator.
sdk/spring/spring-cloud-azure-docker-compose/src/test/java/com/azure/spring/cloud/docker/compose/implementation/service/connection/bus/ServiceBusDockerComposeConnectionDetailsFactoryTests.java Updates Service Bus compose test wiring and asserts ConnectionDetails presence.
sdk/spring/spring-cloud-azure-docker-compose/src/main/resources/META-INF/spring.factories Registers Cosmos + Event Hubs docker-compose ConnectionDetailsFactory.
sdk/spring/spring-cloud-azure-docker-compose/src/main/java/com/azure/spring/cloud/docker/compose/implementation/service/connection/hubs/EventHubsDockerComposeConnectionDetailsFactory.java Implements Event Hubs ConnectionDetailsFactory for docker-compose services.
sdk/spring/spring-cloud-azure-docker-compose/src/main/java/com/azure/spring/cloud/docker/compose/implementation/service/connection/cosmos/CosmosDockerComposeConnectionDetailsFactory.java Implements Cosmos ConnectionDetailsFactory for docker-compose services.
sdk/spring/spring-cloud-azure-docker-compose/pom.xml Adds Cosmos dependency (optional) and adds test dependencies for new integration tests.
sdk/spring/spring-cloud-azure-autoconfigure/src/test/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/CustomAzureEventHubsConnectionDetails.java Adds test ConnectionDetails implementation for override scenario.
sdk/spring/spring-cloud-azure-autoconfigure/src/test/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureEventHubsProducerClientConfigurationTests.java Updates Event Hubs producer tests to include properties configuration.
sdk/spring/spring-cloud-azure-autoconfigure/src/test/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureEventHubsMessagingAutoConfigurationTests.java Adjusts test wiring around properties configuration.
sdk/spring/spring-cloud-azure-autoconfigure/src/test/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureEventHubsConsumerClientConfigurationTests.java Updates consumer tests to include properties configuration.
sdk/spring/spring-cloud-azure-autoconfigure/src/test/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureEventHubsClientBuilderConfigurationTests.java Shifts tests to auto-config entrypoint and updates required beans.
sdk/spring/spring-cloud-azure-autoconfigure/src/test/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureEventHubsAutoConfigurationTests.java Adds test ensuring ConnectionDetails overrides property connection string.
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/servicebus/AzureServiceBusAutoConfiguration.java Removes base-class inheritance; relies on imported properties configuration.
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/properties/ConfigurationWithoutConnectionDetailsBean.java New properties bean path when ConnectionDetails aren’t present.
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/properties/ConfigurationWithConnectionDetailsBean.java New properties bean path that binds env + applies ConnectionDetails override.
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/properties/AzureEventHubsPropertiesConfiguration.java New configuration that selects property creation strategy (with/without ConnectionDetails).
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/properties/AzureEventHubsConnectionDetails.java Introduces Event Hubs ConnectionDetails interface.
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureEventHubsProducerClientConfiguration.java Makes producer config conditional on AzureEventHubsProperties bean.
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureEventHubsProcessorClientConfiguration.java Tightens bean conditions to include AzureEventHubsProperties; removes unused inner condition class.
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureEventHubsMessagingAutoConfiguration.java Removes redundant property-based activation; relies on properties bean presence.
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureEventHubsConsumerClientConfiguration.java Makes consumer config conditional on AzureEventHubsProperties bean.
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureEventHubsClientBuilderConfiguration.java Refactors to be properties-bean-driven and provides static connection-string provider.
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureEventHubsAutoConfiguration.java Removes base-class inheritance; imports new properties configuration.
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/eventhubs/AzureBlobCheckpointStoreConfiguration.java Adds @ConditionalOnBean(AzureEventHubsProperties.class) guard.
sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/implementation/cosmos/AzureCosmosAutoConfiguration.java Removes base-class inheritance; relies on imported properties configuration.
sdk/spring/CHANGELOG.md Adds docker-compose Cosmos entry (but currently incomplete vs actual PR scope).

Comment on lines 80 to 85
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-messaging-servicebus</artifactId>
<version>7.17.17</version> <!-- {x-version-update;com.azure:azure-messaging-servicebus;dependency} -->
<artifactId>azure-cosmos</artifactId>
<version>4.77.0</version> <!-- {x-version-update;com.azure:azure-cosmos;dependency} -->
<optional>true</optional>
</dependency>
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

CosmosDockerComposeConnectionDetailsFactory is registered in this module’s META-INF/spring.factories, but azure-cosmos is declared as an optional dependency. If an application uses this docker-compose module for Service Bus/Storage only (and doesn’t otherwise include azure-cosmos), classloading the Cosmos connection-details factory can fail with NoClassDefFoundError during Spring factories loading. Consider making azure-cosmos a non-optional dependency here, or otherwise isolating/guarding the Cosmos factory so it isn’t loaded when azure-cosmos isn’t on the classpath.

Copilot uses AI. Check for mistakes.
Comment on lines 17 to 21
#### New Features

- Add ServiceBusDockerComposeConnectionDetailsFactory. [#44019](https://github.com/Azure/azure-sdk-for-java/pull/44019).
- Add CosmosDockerComposeConnectionDetailsFactory. [#44019](https://github.com/Azure/azure-sdk-for-java/pull/44019).

Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

The changelog entry for this release mentions the Service Bus and Cosmos Docker Compose factories, but this PR also adds Event Hubs Docker Compose/Testcontainers connection details support and an Event Hubs ConnectionDetails interface in autoconfigure. Please add corresponding changelog entries so the release notes reflect all user-visible additions.

Copilot uses AI. Check for mistakes.
Comment on lines 19 to +20
- Add ServiceBusDockerComposeConnectionDetailsFactory. [#44019](https://github.com/Azure/azure-sdk-for-java/pull/44019).
- Add CosmosDockerComposeConnectionDetailsFactory. [#44019](https://github.com/Azure/azure-sdk-for-java/pull/44019).
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

The PR title/description says "[DON'T REVIEW, TEST ONLY]", but the diff includes new production code (new ConnectionDetails interfaces/configuration and new Docker Compose/Testcontainers factories) plus a CHANGELOG update. Please update the PR metadata to accurately describe the change so reviewers and release tooling can triage it correctly.

Copilot uses AI. Check for mistakes.
Comment on lines +10 to +11
"PartitionCount": "2",
"ConsumerGroups": []
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

PartitionCount is encoded as a JSON string ("2"). Event Hubs emulator configs typically expect this field to be a JSON number; leaving it as a string can cause the emulator to reject the config or misread it. Change the value to a numeric literal (e.g., 2).

Copilot uses AI. Check for mistakes.
Comment on lines +10 to +11
"PartitionCount": "2",
"ConsumerGroups": []
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

PartitionCount is encoded as a JSON string ("2"). Event Hubs emulator configs typically expect this field to be a JSON number; leaving it as a string can cause the emulator to reject the config or misread it. Change the value to a numeric literal (e.g., 2).

Copilot uses AI. Check for mistakes.
@rujche
Copy link
Copy Markdown
Member Author

rujche commented Feb 10, 2026

Confirmed that test failed with log like this:

026-02-10T08:21:57.2975222Z [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 71.19 s <<< FAILURE! -- in com.azure.spring.cloud.docker.compose.implementation.service.connection.cosmos.CosmosDockerComposeConnectionDetailsFactoryTests
2026-02-10T08:21:57.3007431Z [ERROR] com.azure.spring.cloud.docker.compose.implementation.service.connection.cosmos.CosmosDockerComposeConnectionDetailsFactoryTests -- Time elapsed: 71.19 s <<< ERROR!
2026-02-10T08:21:57.3013513Z java.lang.IllegalStateException: Failed to load ApplicationContext for [MergedContextConfiguration@e76fc73 testClass = com.azure.spring.cloud.docker.compose.implementation.service.connection.cosmos.CosmosDockerComposeConnectionDetailsFactoryTests, locations = [], classes = [com.azure.spring.cloud.docker.compose.implementation.service.connection.cosmos.CosmosDockerComposeConnectionDetailsFactoryTests.Config], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["spring.docker.compose.skip.in-tests=false", "spring.docker.compose.file=classpath:com/azure/spring/cloud/docker/compose/implementation/service/connection/cosmos/cosmos-compose.yaml", "spring.docker.compose.stop.command=down", "spring.docker.compose.readiness.timeout=PT6M", "org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@1e15aa2d, org.springframework.boot.test.http.client.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@557af949, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@51087dcb, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@981be3fa], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
2026-02-10T08:21:57.3043742Z 	at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:195)
2026-02-10T08:21:57.3044415Z 	at org.springframework.test.context.cache.DefaultContextCache.put(DefaultContextCache.java:214)
2026-02-10T08:21:57.3045289Z 	at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:160)
2026-02-10T08:21:57.3045868Z 	at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128)
2026-02-10T08:21:57.3046602Z 	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:155)
2026-02-10T08:21:57.3047201Z 	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:111)
2026-02-10T08:21:57.3047778Z 	at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
2026-02-10T08:21:57.3048361Z 	at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:205)
2026-02-10T08:21:57.3072165Z 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
2026-02-10T08:21:57.3073091Z 	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
2026-02-10T08:21:57.3073643Z 	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
2026-02-10T08:21:57.3074125Z 	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
2026-02-10T08:21:57.3074642Z 	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
2026-02-10T08:21:57.3075118Z 	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
2026-02-10T08:21:57.3075609Z 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
2026-02-10T08:21:57.3076138Z 	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
2026-02-10T08:21:57.3076685Z 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
2026-02-10T08:21:57.3077212Z 	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
2026-02-10T08:21:57.3077711Z 	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
2026-02-10T08:21:57.3078165Z 	at java.base/java.util.Optional.orElseGet(Optional.java:364)
2026-02-10T08:21:57.3078581Z 	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
2026-02-10T08:21:57.3079051Z 	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
2026-02-10T08:21:57.3079554Z 	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
2026-02-10T08:21:57.3080036Z 	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
2026-02-10T08:21:57.3080526Z 	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
2026-02-10T08:21:57.3081243Z Caused by: org.springframework.boot.docker.compose.core.ProcessExitException: 'docker compose --file /mnt/vss/_work/1/s/sdk/spring/spring-cloud-azure-docker-compose/target/test-classes/com/azure/spring/cloud/docker/compose/implementation/service/connection/cosmos/cosmos-compose.yaml --ansi never up --no-color --detach --wait' failed with exit code 1.
2026-02-10T08:21:57.3081726Z 
2026-02-10T08:21:57.3081999Z Stdout:
2026-02-10T08:21:57.3082137Z 
2026-02-10T08:21:57.3082274Z 
2026-02-10T08:21:57.3082549Z Stderr:
2026-02-10T08:21:57.3083079Z  cosmos Pulling 
2026-02-10T08:21:57.3083414Z  7e49dc6156b0 Already exists 
2026-02-10T08:21:57.3083724Z  36fde3a55101 Pulling fs layer 
2026-02-10T08:21:57.3084038Z  2da4a0e6bb85 Pulling fs layer 
2026-02-10T08:21:57.3084348Z  4f4fb700ef54 Pulling fs layer 
2026-02-10T08:21:57.3084653Z  c87329403048 Pulling fs layer 
2026-02-10T08:21:57.3084951Z  e454b78cb430 Pulling fs layer 
2026-02-10T08:21:57.3085243Z  c87329403048 Waiting 
2026-02-10T08:21:57.3085530Z  e454b78cb430 Waiting 
2026-02-10T08:21:57.3085892Z  4f4fb700ef54 Downloading [==================================================>]      32B/32B
2026-02-10T08:21:57.3086456Z  4f4fb700ef54 Verifying Checksum 
...
2026-02-10T08:21:57.4252737Z  e454b78cb430 Extracting [==================================================>]  968.7MB/968.7MB
2026-02-10T08:21:57.4253628Z  e454b78cb430 Pull complete 
2026-02-10T08:21:57.4254074Z  cosmos Pulled 
2026-02-10T08:21:57.4254493Z  Network cosmos_default  Creating
2026-02-10T08:21:57.4255107Z  Network cosmos_default  Created
2026-02-10T08:21:57.4255556Z  Container cosmos-cosmos-1  Creating
2026-02-10T08:21:57.4255986Z  Container cosmos-cosmos-1  Created
2026-02-10T08:21:57.4256403Z  Container cosmos-cosmos-1  Starting
2026-02-10T08:21:57.4256822Z  Container cosmos-cosmos-1  Started
2026-02-10T08:21:57.4257233Z  Container cosmos-cosmos-1  Waiting
2026-02-10T08:21:57.4257800Z container cosmos-cosmos-1 exited (255)
2026-02-10T08:21:57.4258065Z 
2026-02-10T08:21:57.4258569Z 	at org.springframework.boot.docker.compose.core.ProcessRunner.run(ProcessRunner.java:98)
2026-02-10T08:21:57.4259349Z 	at org.springframework.boot.docker.compose.core.DockerCli.run(DockerCli.java:82)
2026-02-10T08:21:57.4260030Z 	at org.springframework.boot.docker.compose.core.DefaultDockerCompose.up(DefaultDockerCompose.java:58)
2026-02-10T08:21:57.4260662Z 	at org.springframework.boot.docker.compose.lifecycle.StartCommand.applyTo(StartCommand.java:51)
2026-02-10T08:21:57.4261326Z 	at org.springframework.boot.docker.compose.lifecycle.DockerComposeLifecycleManager.start(DockerComposeLifecycleManager.java:131)
2026-02-10T08:21:57.4262049Z 	at org.springframework.boot.docker.compose.lifecycle.DockerComposeListener.onApplicationEvent(DockerComposeListener.java:53)
2026-02-10T08:21:57.4262755Z 	at org.springframework.boot.docker.compose.lifecycle.DockerComposeListener.onApplicationEvent(DockerComposeListener.java:35)
2026-02-10T08:21:57.4263682Z 	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:180)
2026-02-10T08:21:57.4264396Z 	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:173)
2026-02-10T08:21:57.4265083Z 	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:151)
2026-02-10T08:21:57.4265833Z 	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:133)
2026-02-10T08:21:57.4266525Z 	at org.springframework.boot.context.event.EventPublishingRunListener.multicastInitialEvent(EventPublishingRunListener.java:137)
2026-02-10T08:21:57.4267191Z 	at org.springframework.boot.context.event.EventPublishingRunListener.contextLoaded(EventPublishingRunListener.java:99)
2026-02-10T08:21:57.4267858Z 	at org.springframework.boot.SpringApplicationRunListeners.lambda$contextLoaded$0(SpringApplicationRunListeners.java:74)
2026-02-10T08:21:57.4268421Z 	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
2026-02-10T08:21:57.4268977Z 	at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:123)
2026-02-10T08:21:57.4269612Z 	at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:117)
2026-02-10T08:21:57.4270256Z 	at org.springframework.boot.SpringApplicationRunListeners.contextLoaded(SpringApplicationRunListeners.java:74)
2026-02-10T08:21:57.4270855Z 	at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:418)
2026-02-10T08:21:57.4271432Z 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
2026-02-10T08:21:57.4272044Z 	at org.springframework.boot.test.context.SpringBootContextLoader.lambda$loadContext$2(SpringBootContextLoader.java:156)
2026-02-10T08:21:57.4272668Z 	at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:58)
2026-02-10T08:21:57.4273397Z 	at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:46)
2026-02-10T08:21:57.4273973Z 	at org.springframework.boot.SpringApplication.withHook(SpringApplication.java:1465)
2026-02-10T08:21:57.4274581Z 	at org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:605)
2026-02-10T08:21:57.4275229Z 	at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:156)
2026-02-10T08:21:57.4275858Z 	at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:115)
2026-02-10T08:21:57.4276694Z 	at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:247)
2026-02-10T08:21:57.4277445Z 	at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:167)
2026-02-10T08:21:57.4278107Z 	... 24 more
2026-02-10T08:21:57.4278317Z 
2026-02-10T08:21:57.4278609Z 
2026-02-10T08:21:57.4278959Z   .   ____          _            __ _ _
2026-02-10T08:21:57.4279334Z  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2026-02-10T08:21:57.4279706Z ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2026-02-10T08:21:57.4280073Z  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2026-02-10T08:21:57.4280449Z   '  |____| .__|_| |_|_| |_\__, | / / / /
2026-02-10T08:21:57.4280831Z  =========|_|==============|___/=/_/_/_/
2026-02-10T08:21:57.4281056Z 
2026-02-10T08:21:57.4281423Z  :: Spring Boot ::                (v4.0.2)
2026-02-10T08:21:57.4281652Z 
2026-02-10T08:22:02.5646461Z 
2026-02-10T08:22:02.5647412Z   .   ____          _            __ _ _
2026-02-10T08:22:02.5647766Z  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2026-02-10T08:22:02.5648106Z ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2026-02-10T08:22:02.5648442Z  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2026-02-10T08:22:02.5648763Z   '  |____| .__|_| |_|_| |_\__, | / / / /
2026-02-10T08:22:02.5649114Z  =========|_|==============|___/=/_/_/_/
2026-02-10T08:22:02.5649279Z 
2026-02-10T08:22:02.5649610Z  :: Spring Boot ::                (v4.0.2)
2026-02-10T08:22:02.5649782Z 
2026-02-10T08:22:10.7020650Z 
2026-02-10T08:22:10.7021703Z   .   ____          _            __ _ _
2026-02-10T08:22:10.7022171Z  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2026-02-10T08:22:10.7022518Z ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2026-02-10T08:22:10.7023041Z  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2026-02-10T08:22:10.7023419Z   '  |____| .__|_| |_|_| |_\__, | / / / /
2026-02-10T08:22:10.7023823Z  =========|_|==============|___/=/_/_/_/
2026-02-10T08:22:10.7024068Z 
2026-02-10T08:22:10.7024482Z  :: Spring Boot ::                (v4.0.2)
2026-02-10T08:22:10.7024729Z 
2026-02-10T08:22:26.2776784Z [WARNING]      [echo] Deleting existing /mnt/vss/_work/1/s/sdk/spring/spring-cloud-azure-testcontainers/javadocTemp and
2026-02-10T08:22:26.2778478Z [WARNING]      [echo]                   /mnt/vss/_work/1/s/sdk/spring/spring-cloud-azure-testcontainers/sourceTemp
2026-02-10T08:22:26.2792619Z [WARNING]      [echo] Copying /mnt/vss/_work/1/s/sdk/spring/spring-cloud-azure-testcontainers/../README.md to
2026-02-10T08:22:26.2793492Z [WARNING]      [echo]                   /mnt/vss/_work/1/s/sdk/spring/spring-cloud-azure-testcontainers/javadocTemp/README.md
2026-02-10T08:22:26.2793988Z [WARNING]      [echo] Copying /mnt/vss/_work/1/s/sdk/spring/spring-cloud-azure-testcontainers/../README.md to
2026-02-10T08:22:26.2794676Z [WARNING]      [echo]                   /mnt/vss/_work/1/s/sdk/spring/spring-cloud-azure-testcontainers/sourceTemp/README.md
2026-02-10T08:22:56.9952363Z 
2026-02-10T08:22:56.9955930Z   .   ____          _            __ _ _
2026-02-10T08:22:56.9964978Z  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2026-02-10T08:22:56.9965437Z ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2026-02-10T08:22:56.9965783Z  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2026-02-10T08:22:56.9968096Z   '  |____| .__|_| |_|_| |_\__, | / / / /
2026-02-10T08:22:56.9969978Z  =========|_|==============|___/=/_/_/_/
2026-02-10T08:22:56.9971898Z 
2026-02-10T08:22:56.9973196Z  :: Spring Boot ::                (v4.0.2)
2026-02-10T08:22:56.9973663Z 
2026-02-10T08:23:32.5264331Z [ERROR] Errors: 
2026-02-10T08:23:32.5408576Z [ERROR]   CosmosDockerComposeConnectionDetailsFactoryTests » IllegalState Failed to load ApplicationContext for [MergedContextConfiguration@e76fc73 testClass = com.azure.spring.cloud.docker.compose.implementation.service.connection.cosmos.CosmosDockerComposeConnectionDetailsFactoryTests, locations = [], classes = [com.azure.spring.cloud.docker.compose.implementation.service.connection.cosmos.CosmosDockerComposeConnectionDetailsFactoryTests.Config], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["spring.docker.compose.skip.in-tests=false", "spring.docker.compose.file=classpath:com/azure/spring/cloud/docker/compose/implementation/service/connection/cosmos/cosmos-compose.yaml", "spring.docker.compose.stop.command=down", "spring.docker.compose.readiness.timeout=PT6M", "org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@1e15aa2d, org.springframework.boot.test.http.client.DisableReactorResourceFactoryGlobalResourcesContextCustomizerFactory$DisableReactorResourceFactoryGlobalResourcesContextCustomizerCustomizer@557af949, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@51087dcb, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@981be3fa], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
2026-02-10T08:23:32.5412342Z [ERROR] Tests run: 8, Failures: 0, Errors: 1, Skipped: 0
2026-02-10T08:23:32.5413265Z [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.5.3:test (default-test) on project spring-cloud-azure-docker-compose: 
2026-02-10T08:23:32.5413815Z [ERROR] 
2026-02-10T08:23:32.5414228Z [ERROR] See /mnt/vss/_work/1/s/sdk/spring/spring-cloud-azure-docker-compose/target/surefire-reports for the individual test results.
2026-02-10T08:23:32.5414727Z [ERROR] See dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
2026-02-10T08:23:32.5415101Z [ERROR] -> [Help 1]
2026-02-10T08:23:32.5415402Z [ERROR] 
2026-02-10T08:23:32.5415753Z [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
2026-02-10T08:23:32.5416171Z [ERROR] Re-run Maven using the -X switch to enable full debug logging.
2026-02-10T08:23:32.5416523Z [ERROR] 
2026-02-10T08:23:32.5416896Z [ERROR] For more information about the errors and possible solutions, please read the following articles:
2026-02-10T08:23:32.5417361Z [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
2026-02-10T08:23:32.5417722Z [ERROR] 
2026-02-10T08:23:32.5418072Z [ERROR] After correcting the problems, you can resume the build with the command
2026-02-10T08:23:32.5418495Z [ERROR]   mvn <args> -rf :spring-cloud-azure-docker-compose
2026-02-10T08:23:32.6150449Z 
2026-02-10T08:23:32.6174708Z The process '/usr/bin/mvn' failed with exit code 1
2026-02-10T08:23:32.6177321Z Could not retrieve code analysis results - Maven run failed.
2026-02-10T08:23:35.0379068Z Result Attachments will be stored in LogStore
2026-02-10T08:23:35.0856786Z Run Attachments will be stored in LogStore
2026-02-10T08:23:35.3996627Z No Result Found to Publish '/mnt/vss/_work/1/s/sdk/spring/spring-cloud-azure-docker-compose/target/surefire-reports/TEST-com.azure.spring.cloud.docker.compose.implementation.service.connection.cosmos.CosmosDockerComposeConnectionDetailsFactoryTests.xml'.
2026-02-10T08:23:35.4446986Z ##[error]Build failed.
2026-02-10T08:23:35.4460091Z ##[section]Async Command Start: Publish test results
2026-02-10T08:23:35.6327974Z Publishing test results to test run '59501150'.
2026-02-10T08:23:35.6340898Z TestResults To Publish 2484, Test run id:59501150
2026-02-10T08:23:35.6365769Z Test results publishing 1000, remaining: 1484. Test run id: 59501150
2026-02-10T08:23:35.9906303Z Test results publishing 1000, remaining: 484. Test run id: 59501150
2026-02-10T08:23:36.2112203Z Test results publishing 484, remaining: 0. Test run id: 59501150
2026-02-10T08:23:37.1485749Z Published Test Run : https://dev.azure.com/azure-sdk/public/_TestManagement/Runs?runId=59501150&_a=runCharts
2026-02-10T08:23:37.3241361Z ##[section]Async Command End: Publish test results
2026-02-10T08:23:37.3243325Z ##[section]Finishing: Run tests

@rujche rujche closed this Feb 10, 2026
@rujche rujche changed the title [DON'T REVIEW, TEST ONLY] [DON'T REVIEW, TEST ONLY] Try to add CosmosDockerComposeConnectionDetailsFactory Feb 24, 2026
@rujche rujche deleted the copilot/add-support-connectiondetails-1 branch February 24, 2026 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azure-spring All azure-spring related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants