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

Maven CLI: better verbose + added debug for upgrade #36256

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JiriOndrusek
Copy link
Contributor

fixes #36255

@quarkus-bot quarkus-bot bot added area/cli Related to quarkus cli (not maven/gradle/etc.) area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/platform Issues related to definition and interaction with Quarkus Platform labels Oct 3, 2023
@gsmet gsmet changed the title Maven CLI: bettter verbose + added debug for upgrade Maven CLI: better verbose + added debug for upgrade Oct 3, 2023
Comment on lines 180 to 225
(v1, v2) -> {
throw new IllegalStateException(String.format("Recipe with the same path detected. Can not happen! (%s)", v1));
},
Copy link
Member

Choose a reason for hiding this comment

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

Should we merge them instead and ignore the dependency of the additional ones? Or we are sure this will never ever happen?

Copy link
Contributor Author

@JiriOndrusek JiriOndrusek Oct 5, 2023

Choose a reason for hiding this comment

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

@ia3andy WDYT? From my POV the file list is "created" during the browsing of the recipes from this jar. Key is the path (not only the file name) so there should be no duplicates.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In fact there is no need to use a Map. Some kind of the List of the Pairs would be enough. I originally used List<Object[]>, but map looked better in my eyes. If needed I can refactor the code back to List of some Pair or Object[]....

Copy link
Contributor

Choose a reason for hiding this comment

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

call the method getRecipesByName:)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After consultation with @ia3andy, I changed the return type to the List<string[]>.

@quarkus-bot

This comment has been minimized.

Copy link
Contributor

@ia3andy ia3andy left a comment

Choose a reason for hiding this comment

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

Good just a minor comment on the method name

@JiriOndrusek JiriOndrusek force-pushed the maven-cli-debug branch 2 times, most recently from 620bbee to 34ddf52 Compare October 18, 2023 07:58
@JiriOndrusek
Copy link
Contributor Author

There is probably missig some CI coverage, because the PR was green even without appropriate fix in the test. I added fix in the test code. (reflecting the change from Map to List)

@@ -56,7 +56,7 @@ public static FetchResult fetchRecipes(MessageWriter log, MavenArtifactResolver
final Artifact artifact = artifactResolver.resolve(DependencyUtils.toArtifact(gav)).getArtifact();
final ResourceLoader resourceLoader = ResourceLoaders.resolveFileResourceLoader(
artifact.getFile());
final List<String> recipes = fetchRecipesAsList(resourceLoader, "quarkus-updates", recipeDirectoryNames);
final List<String[]> recipes = fetchRecipesAsList(resourceLoader, "quarkus-updates", recipeDirectoryNames);
Copy link
Member

Choose a reason for hiding this comment

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

I had another look at this and could we use a record instead of an obscure array? It's very cryptic and adding a record won't take much time.

@cescoffier
Copy link
Member

@gsmet @JiriOndrusek What should we do about this one?

@JiriOndrusek
Copy link
Contributor Author

Hi @cescoffier I totally forgot on this PR.
I'll fix it following gsmet instructions in a near future

@JiriOndrusek
Copy link
Contributor Author

@gsmet I rebased the change to the current main and the code in question was not required anymore. I kept the new logged information and the flag for the verbose option.

@cescoffier
Copy link
Member

LGTM, but would rather wait for @gsmet

Copy link

quarkus-bot bot commented Jan 6, 2025

Status for workflow Quarkus CI

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

Failing Jobs

Status Name Step Failures Logs Raw logs Build scan
Quickstarts Compilation - JDK 17 Compile Quickstarts Failures Logs Raw logs 🚧

You can consult the Develocity build scans.

Failures

⚙️ Quickstarts Compilation - JDK 17 #

- Failing: security-webauthn-quickstart security-webauthn-reactive-quickstart 

📦 security-webauthn-quickstart

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project security-webauthn-quickstart: Compilation failure

📦 security-webauthn-reactive-quickstart

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project security-webauthn-reactive-quickstart: Compilation failure


Flaky tests - Develocity

⚙️ JVM Tests - JDK 21

📦 extensions/smallrye-reactive-messaging/deployment

io.quarkus.smallrye.reactivemessaging.hotreload.ConnectorChangeTest.testUpdatingConnector - History

  • Expecting actual: ["-4","-5","-6","-7","-8","-9","-10","-11"] to start with: ["-3", "-4", "-5", "-6"] - java.lang.AssertionError
java.lang.AssertionError: 

Expecting actual:
  ["-4","-5","-6","-7","-8","-9","-10","-11"]
to start with:
  ["-3", "-4", "-5", "-6"]

	at io.quarkus.smallrye.reactivemessaging.hotreload.ConnectorChangeTest.testUpdatingConnector(ConnectorChangeTest.java:36)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Related to quarkus cli (not maven/gradle/etc.) area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/platform Issues related to definition and interaction with Quarkus Platform triage/flaky-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quarkus-updates migration CLI - verbose mode does not show debug
4 participants