Repository navigation
Conversation
Fishbowler
approved these changes
Nov 2, 2026
Fishbowler
left a comment
Contributor
There was a problem hiding this comment.
the maestro-cli test task now sets MAESTRO_CLI_NO_ANALYTICS, so test runs stop sending real events
This already exists for e2e/cli but perhaps e2e/run_tests needs this too? Also in .github/workflows/test-e2e.yaml ?
Contributor
Author
Good catch.
|
Fishbowler
approved these changes
Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
The CLI creates a PostHog person profile for every machine that runs it, even for people who never logged in and have no user data to attach. Logged-out usage is now counted without creating a profile. Fixes MA-4381.
Approach
$process_person_profile: falseand without$groups, including when old user or org data is still cached aftermaestro logout.$identifyand identified events.maestro logoutstill count as logged in after it deletes the token.Analytics.close()now waits for tracked events before flushing, so a slow identify no longer loses them.maestro-clitest task,e2e/run_testsand thetest-e2e.yamlandtest-e2e-ios-intel.yamlworkflows now setMAESTRO_CLI_NO_ANALYTICS, so test runs stop sending real events.To make this testable, the
trackEventlogic moved into a newEventDispatcherclass, so most of theAnalytics.ktdiff is moved code.Verification
EventDispatcherTest../gradlew :maestro-cli:testpasses.person_mode = propertyless.$identifysent,person_mode = full, with$groups.Analytics.close()and theAnalyticswiring have no unit tests, becauseAnalyticsis a singleton with a hardcoded client. I checked those with the runs above.