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

Avoid making IsolatedDevModeMain and allegates static for no good reason #41726

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Jul 6, 2024

Also avoid a reference to IsolatedDevModeMain from ApplicationLifecycleManager.

@quarkus-bot quarkus-bot bot added the area/core label Jul 6, 2024
@gsmet gsmet marked this pull request as ready for review July 7, 2024 09:54
@quarkus-bot

This comment has been minimized.

@gsmet
Copy link
Member Author

gsmet commented Jul 8, 2024

@geoand not the most glamorous patch but I would appreciate a review :). It's really about trying to reduce the number of static things and cross references.

Comment on lines +155 to +159
if (context.isTest() || context.isAbortOnFailedStart()) {
return TestExitCodeHandler.INSTANCE;
}

Copy link
Member Author

@gsmet gsmet Jul 8, 2024

Choose a reason for hiding this comment

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

Here we isolate this special case to avoid pushing an object that has a reference to the IsolatedDevModeMain instance to a static field, when we can avoid it (and in the case of testing, this is a noop so we really don't need to complicate things).

@@ -0,0 +1,18 @@
package io.quarkus.deployment.dev;

public class DeploymentProblem {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a good reason to introduce this vs using AtomicReference?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, old habits :). I adjusted to use AtomicReference.

Also avoid a reference to IsolatedDevModeMain from
ApplicationLifecycleManager.
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 9, 2024

Status for workflow Quarkus CI

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

Failing Jobs

Status Name Step Failures Logs Raw logs Build scan
Kubernetes Tests - JDK 17 Build ⚠️ Check → Logs Raw logs 🚧
✔️ Kubernetes Tests - JDK 21 Logs Raw logs 🔍
✔️ Kubernetes Tests - JDK 17 Windows Logs Raw logs 🔍

You can consult the Develocity build scans.


Flaky tests - Develocity

⚙️ JVM Tests - JDK 17 Windows

📦 extensions/amazon-lambda/deployment

io.quarkus.amazon.lambda.deployment.testing.InputCollectionOutputCollectionLambdaTest.requestHandler_InputCollectionInputPerson_OutputCollectionOutputPerson - History

  • 1 expectation failed. JSON path doesn't match. Expected: a collection containing map containing ["outputname"->"Fred"] Actual: <[{outputname=Chris}]> - java.lang.AssertionError
java.lang.AssertionError: 
1 expectation failed.
JSON path  doesn't match.
Expected: a collection containing map containing ["outputname"->"Fred"]
  Actual: <[{outputname=Chris}]>

	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
@gsmet gsmet merged commit 11dc710 into quarkusio:main Jul 10, 2024
51 of 52 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.13 - main milestone Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment