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 a warning for tests in interactive mode #37802

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

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Dec 18, 2023

The CliHelpTest#testCommandHelp has become extremely flaky lately because for one run, a warning saying JBang is not installable is there and for the other it's not. See https://ge.quarkus.io/s/gc7oirjtydrtg/tests/goal/io.quarkus:quarkus-cli:surefire:test@default-test/details/io.quarkus.cli.CliHelpTest/testCommandHelp?top-execution=1 for an example of the issue.

This is problematic and I really don't see the value of adding a warning about JBang that is specifically only displayed for tests.

Also fixed a bunch of typos and made the message more neutral (let's avoid using exclamation marks for messages and exceptions).

The CliHelpTest#testCommandHelp has become extremely flaky lately
because for one run, a warning saying JBang is not installable is there
and for the other it's not.

This is problematic and I really don't see the value of adding a warning
about JBang that is specifically only displayed for tests.

Also fixed a bunch of typos and made the message more neutral (let's
avoid using exclamation marks for messages and exceptions).
@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/jbang Issues related to when using jbang.dev with Quarkus area/platform Issues related to definition and interaction with Quarkus Platform labels Dec 18, 2023
Comment on lines -183 to +182
output.warn("JBang is not installable!");
// this only happens for tests, do not output anything specific
Copy link
Member Author

Choose a reason for hiding this comment

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

This is where I remove the warning that is problematic for the tests.

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/jbang Issues related to when using jbang.dev with Quarkus area/platform Issues related to definition and interaction with Quarkus Platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant