-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Export application name and version in tests #24666
Conversation
This comment has been minimized.
This comment has been minimized.
@aloubyansky could you have a look? I will fix the build, but I would like to be sure I'm heading in the right direction. |
return new CuratedApplication(this, appModelFactory.resolveAppModel(), classLoadingConfig); | ||
CurationResult curationResult = appModelFactory.resolveAppModel(); | ||
|
||
if (mode == Mode.TEST || test) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could probably do this in any mode.
I think it is, thanks @glefloch |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@cescoffier the kafka test keeps failing due to a serialization issue after the devmode reload, I don't see how the failure can be related to my branch, do you have an idea? |
Hard to say, but having two failures is highly suspicious. |
The failure is definitely related, without my code, the test pass.
Could this be related? (the test is testing devmode). Is there something to reset in the consumer? |
Oh yeah! The kafka connector uses the application name as consumer group is. If not set it use a random group id. There are way to reset but it's tricky (need an admin client, the consumer must not be connected...) |
Setting it to an empty value fix the test |
Finally got a green CI :), @aloubyansky @cescoffier could you review it ? |
@@ -159,7 +159,20 @@ public CuratedApplication bootstrap() throws BootstrapException { | |||
appModelFactory.setEnableClasspathCache(true); | |||
} | |||
} | |||
return new CuratedApplication(this, appModelFactory.resolveAppModel(), classLoadingConfig); | |||
CurationResult curationResult = appModelFactory.resolveAppModel(); | |||
if (curationResult.getApplicationModel().getApplicationModule() != null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curationResult.getApplicationModel().getAppArtifact()
would be simpler and a bit more reliable here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, I pushed a fix.
@phillip-kruger could you please check the Open API test changes? Should be ok but just in case. |
Failing Jobs - Building 4b79122
Full information is available in the Build summary check run. Failures⚙️ Gradle Tests - JDK 11 Windows #- Failing: integration-tests/gradle
📦 integration-tests/gradle✖
|
@phillip-kruger could you have a look at Open api test change to make sure I haven't introduced any regression ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Sorry, I was meaning to look at this and forgot. All fine. Before when the name was to available in test profile it fell back to the old static name, this is much better |
No problem, thanks for review. |
Yes, thanks @glefloch |
This export
quarkus.application.name
andquarkus.application.version
properties. This used to resolved model to extract data in the boostrap phase.close #15013