-
Notifications
You must be signed in to change notification settings - Fork 317
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
Add MAESTRO_CLI_NO_ANALYTICS
flag
#1848
Conversation
a27be00
to
5e2e8e7
Compare
@@ -73,6 +77,13 @@ object Analytics { | |||
fun maybeAskToEnableAnalytics() { | |||
if (hasRunBefore) return | |||
|
|||
// Fix for https://github.com/mobile-dev-inc/maestro/issues/1846 | |||
if (CiUtils.getCiProvider() != 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.
Let's maybe give DISABLE_ANALYTICS_ENV_VAR false by default if its CI?
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 only need analytics if user is sourcing from CLI
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.
Are you sure? We set uuid
to name of the CI service if we're running on CI:
which then gets uploaded to our backend:
I think it can be useful knowledge to know what CI service is most used*, so we would have some data if we will have to build integrations with CIs in the future.
*A problem here may be that we don't have UUIDs of specific CI installations. We would need to have separate "UUID" and "CI" values in the AnalyticsReport.
Otherwise analytics from various runs on CI get merged together.
Make sure to run ./maestro-ios-xctest-runner/build-maestro-ios-runner.sh with every swift change |
fix #1846