quarkus-qe / quarkus-test-framework

Write your test once and run it everywhere!
Apache License 2.0
14 stars 26 forks source link

Fix build-time config detection for relocated properties and for config properties from extension deployment modules #1154

Closed michalvavrik closed 1 month ago

michalvavrik commented 1 month ago

Summary

closes: #1149

the script is based on https://github.com/quarkusio/quarkus/blob/main/docs/src/main/java/io/quarkus/docs/generation/AllConfigGenerator.java

Please check the relevant options

Checklist:

michalvavrik commented 1 month ago

run tests

michalvavrik commented 1 month ago

run tests

michalvavrik commented 1 month ago

JVM build - Latest Version also fails over it in a daily build.

rsvoboda commented 1 month ago

How often do we need to have the list updated? Is there any noticeable milestone?

Maybe adding a note into https://github.com/quarkus-qe/quarkus-test-framework/blob/main/RELEASE.md#preconditions for new major/minor releases?

CC @mjurc

michalvavrik commented 1 month ago

How often do we need to have the list updated? Is there any noticeable milestone?

strange how it is most of the build-time and build-time-fixed properties are placed in classes in the runtime modules (for build-time it's waste...). and there, it is still automated. then it is not going to fail as long as other bulid-time property or custom class/dependency is detected.

so I'd say:

Maybe adding a note into https://github.com/quarkus-qe/quarkus-test-framework/blob/main/RELEASE.md#preconditions for new major/minor releases?

Honestly, we had build-time list for years and we only updated it when we had failing tests. I suppose I could write a workflow that updates it periodically but we don't have this kind of time.

I think we should update it when there is a failure and then when we have a time.

JVM build failure goes down to the https://github.com/quarkusio/quarkus/pull/36826

rsvoboda commented 1 month ago

Cool, seems it's fine to have this as adhoc action.

strange how it is most of the build-time and build-time-fixed properties are placed in classes in the runtime modules (for build-time it's waste...)

Worth GH issue?

michalvavrik commented 1 month ago

strange how it is most of the build-time and build-time-fixed properties are placed in classes in the runtime modules (for build-time it's waste...)

Worth GH issue?

I run quick check and only found 6 examples of this. However additionally, build-time-runtime-fixed is placed in the runtime so it is auto-detected.

as for opening issue - sadly config classes are treated as part of the API now, which is one of the reasons why there is so long process of migrating config classes to config mapping interfaces (in addition to reflection registration effectiveness), so:

galderz commented 1 month ago

JVM build failure goes down to the quarkusio/quarkus#36826

What failure? The CI failure?

michalvavrik commented 1 month ago

JVM build failure goes down to the quarkusio/quarkus#36826

What failure? The CI failure?

We have one build failure in the JVM build - Latest versions of this PR CI with message Could not find goal 'native-image-agent' in plugin io.quarkus.platform:quarkus-maven-plugin:3.11.0 among available goals , my colleague @jedla97 described it in here https://github.com/quarkusio/quarkus/issues/40951.

galderz commented 1 month ago

JVM build failure goes down to the quarkusio/quarkus#36826

What failure? The CI failure?

We have one build failure in the JVM build - Latest versions of this PR CI with message Could not find goal 'native-image-agent' in plugin io.quarkus.platform:quarkus-maven-plugin:3.11.0 among available goals , my colleague @jedla97 described it in here quarkusio/quarkus#40951.

Not a bug

michalvavrik commented 1 month ago

JVM build failure goes down to the quarkusio/quarkus#36826

What failure? The CI failure?

We have one build failure in the JVM build - Latest versions of this PR CI with message Could not find goal 'native-image-agent' in plugin io.quarkus.platform:quarkus-maven-plugin:3.11.0 among available goals , my colleague @jedla97 described it in here quarkusio/quarkus#40951.

Not a bug

got it, thanks for your time

michalvavrik commented 1 month ago

LGTM - just verifying - the CI failure is caused by wrong Quarkus platform bom version in action?

we need the plugin to use correct version, Jakub tries to address it here https://github.com/quarkus-qe/quarkus-test-framework/pull/1157 (I'll review soon); I wouldn't be worried about this failing as this PR is not specific to Quarkus version and released version was green.