Skip to content

Conversation

holly-cummins
Copy link
Contributor

As suggested by @ozangunalp.

Avoids these errors:

2025-06-10 15:05:09,508 ERROR [io.qua.test] (Test runner thread) >>>>>>>>>>>>>>>>>>>> Summary: <<<<<<<<<<<<<<<<<<<<
testContinuousTestingReusesInstanceWhenPropertiesAreNotChanged() class io.quarkus.test.config.TestConfigProviderResolver cannot be cast to class io.quarkus.test.config.TestConfigProviderResolver (io.quarkus.test.config.TestConfigProviderResolver is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @24af801f; io.quarkus.test.config.TestConfigProviderResolver is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @46b15282)
DevServicesRedisContinuousTestingTest class io.quarkus.test.config.TestConfigProviderResolver cannot be cast to class io.quarkus.test.config.TestConfigProviderResolver (io.quarkus.test.config.TestConfigProviderResolver is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @24af801f; io.quarkus.test.config.TestConfigProviderResolver is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @46b15282)
testDevModeServiceDoesNotRestartContainersOnCodeChange() class io.quarkus.test.config.TestConfigProviderResolver cannot be cast to class io.quarkus.test.config.TestConfigProviderResolver (io.quarkus.test.config.TestConfigProviderResolver is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @24af801f; io.quarkus.test.config.TestConfigProviderResolver is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @46b15282)
testContinuousTestingDisablesDevServicesWhenPropertiesChange() class io.quarkus.test.config.TestConfigProviderResolver cannot be cast to class io.quarkus.test.config.TestConfigProviderResolver (io.quarkus.test.config.TestConfigProviderResolver is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @24af801f; io.quarkus.test.config.TestConfigProviderResolver is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @46b15282)
testContinuousTestingCreatesANewInstanceWhenPropertiesAreChanged() class io.quarkus.test.config.TestConfigProviderResolver cannot be cast to class io.quarkus.test.config.TestConfigProviderResolver (io.quarkus.test.config.TestConfigProviderResolver is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @24af801f; io.quarkus.test.config.TestConfigProviderResolver is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @46b15282)
testDevModeServiceUpdatesContainersOnConfigChange() class io.quarkus.test.config.TestConfigProviderResolver cannot be cast to class io.quarkus.test.config.TestConfigProviderResolver (io.quarkus.test.config.TestConfigProviderResolver is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @24af801f; io.quarkus.test.config.TestConfigProviderResolver is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @46b15282)

The errors aren't great, and ideally we'd fix them, but running continuous testing tests in continuous testing mode isn't something we'd normally expect to be able to do.

Copy link

quarkus-bot bot commented Jun 10, 2025

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit ad52ba5.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

#quarkus.redis.devservices.enabled=true

# When running this project itself in dev or test mode, don't try and layer in the dev mode tests
quarkus.test.exclude-pattern=io.quarkus.redis.devservices.continuoustesting.it.*
Copy link
Member

Choose a reason for hiding this comment

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

But don't you exclude them already from the Surefire run:

<execution>
<id>default-test</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<excludes>
<exclude>**/continuoustesting/**/*.java</exclude>
</excludes>
</configuration>
</execution>
<execution>
<id>devmode-test</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<includes>
<include>**/continuoustesting/**/*.java</include>
</includes>
</configuration>
</execution>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the maven side is working fine. The scenario being supported here is running the tests directly in dev mode; that is, cd integration-tests/redis-devservices; mvn quarkus:dev. It turns out that this is useful to do because this drives dev mode and continuous testing harder than the dev mode and continuous tests do, and can find some defects/help debug issues.

Copy link
Member

Choose a reason for hiding this comment

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

OK, thanks for the explanation!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ideally things would work even without the exclude, but continuous-testing-in-continuous-testing is a pretty high bar. 😵‍💫

@ozangunalp ozangunalp merged commit 854ff3f into quarkusio:main Jun 13, 2025
22 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.25 - main milestone Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants