Only disable analytics for Quarkus CLI dev or build command #1319
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR does 2 things:
Right now analytics are send during build and DEV mode. In https://quarkus.io/usage/ and https://quarkus.io/version/main/guides/build-analytics#show-me-the-code Quarkus explicitly documents that:
io.quarkus.analytics.AnalyticsService#sendAnalytics
:quarkus build
commandThis can change in the future and noone from QE team will check every one and then if that has changed. So until now we always set
-Dquarkus.analytics.disabled=true
unless explicitly disabled. Now it does matter when Quarkus CLI TLS command is used because that command reports unknown option for setting this system property.What are our options:
Honestly, not sure what is best, I think one day someone will report that I slowed down CI, but on the other hand, doing what this PR does, we won't always disable analytics when not needed. Why should users always do that? It feels stupid to expect users to always add it and I don't believe they will. So closer to user case.
Update: I rerun related tests and this seems to disable analytics as expected.
Please check the relevant options
run tests
phrase in comment)Checklist: