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

Property quarkus.test.native-image-profile not working correctly anymore #36073

Closed
joggeli34 opened this issue Sep 21, 2023 · 3 comments
Closed
Labels

Comments

@joggeli34
Copy link
Contributor

Describe the bug

We use the property quarkus.test.native-image-profile=test so that for the integrationTests the runtime-properties are used the same as for the test profile.

In the application properties this looks as following:

%test.value.test=TESTVALUE
quarkus.test.native-image-profile=test

With Quarkus 3.4.1 this now fails the integration tests with follwing message:

2023-09-21 15:11:17,329 WARN  [io.qua.run.con.ConfigRecorder] (main) The profile 'prod' used to build the native image is different from the runtime profile 'test'. This may lead to unexpected results.
Failed to load config value of type class java.lang.String for: value.test

Expected behavior

With Quarkus 3.3.3 this worked correctly, reading the value.test for the integration tests.

Actual behavior

No response

How to Reproduce?

Reproducer:

https://github.com/joggeli34/quarkus-demo

gradlew quarkusIntTests -Dquarkus.package.type=native

Output of uname -a or ver

No response

Output of java -version

17

GraalVM version (if different from Java)

22.3-java17

Quarkus version or git rev

3.4.1

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@joggeli34 joggeli34 added the kind/bug Something isn't working label Sep 21, 2023
@teimyBr
Copy link

teimyBr commented Sep 25, 2023

We also have this Issue.

Failed to load config value of type class java.lang.String for: outgoing.orders.response.topics

3.3.2 works fine

3.4.1 its get broken.

https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.4#configuration

Maybe related to this ?

@joggeli34
Copy link
Contributor Author

Still a problem in 3.4.2

@radcortez
Copy link
Member

This works with the latest version 3.13.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants