Repository navigation
Disable telemetry in the Linux AppImage CI smoke test - #5139
Merged
Merged
Conversation
The AppImage lifecycle smoke boots the packaged production build with a fresh data directory, so every CI run sent an app_started event under a new random telemetry ID and was counted as a new Linux desktop user in PostHog. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Human comments
What was wrong
smoke:appimage-lifecyclelaunches the packaged production AppImage with a freshBB_DATA_DIRand leaves telemetry on. Packaged builds carry a real version and the default PostHog key, and the telemetry ID is a random value stored per data directory. Every CI run that executes this step therefore sends anapp_startedevent as a brand-new Linux desktop "user". Since the step was added toci.ymlon Aug 26 (#2491), this has added roughly 1,200–1,700 fake new app starters a week. They are 95% single-start, 96% from US datacenter IPs, and almost none create a thread. Daily counts track CI volume (Oct 3: 121 smoke runs vs 187 one-shot Linux desktop starters; Oct 4: 91 vs 127). Acquisition reporting showed app starters growing while activation appeared to halve.What changed
apps/desktop/scripts/smoke-linux-appimage-lifecycle.mjssetsBB_TELEMETRY: "false"in the AppImage's launch environment.BB_TELEMETRYis a startup-managed env key, so it reaches the server the same way the script'sBB_DATA_DIRdoes. This matchespackages/bb-app/scripts/smoke-boot.mjsandsmoke-tarball.mjs, which already disable telemetry.smoke-packaged-app.mjsis unchanged: it attaches to its stub server rather than starting bb's server, and Windows/macOS desktop starters show no CI correlation.How you verified
childEnv→ desktopbb-process.ts(passesprocess.env) → bb-app launcher (BB_TELEMETRYis inSTARTUP_ONLY_MANAGED_ENV_KEYS) →createTelemetryServicereturns the no-op service whenBB_TELEMETRYis false.BB-Thread: Filter bot traffic
🤖 Generated with Claude Code