Skip to content

Disable telemetry in the Linux AppImage CI smoke test - #5139

Merged
brsbl merged 1 commit into
mainfrom
bb/ci-smoke-telemetry-off
Oct 8, 2026
Merged

brsbl merged 1 commit into
mainfrom
bb/ci-smoke-telemetry-off

Conversation

@brsbl

@brsbl brsbl commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

smoke:appimage-lifecycle launches the packaged production AppImage with a fresh BB_DATA_DIR and 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 an app_started event as a brand-new Linux desktop "user". Since the step was added to ci.yml on 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.mjs sets BB_TELEMETRY: "false" in the AppImage's launch environment. BB_TELEMETRY is a startup-managed env key, so it reaches the server the same way the script's BB_DATA_DIR does. This matches packages/bb-app/scripts/smoke-boot.mjs and smoke-tarball.mjs, which already disable telemetry.
  • smoke-packaged-app.mjs is 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

  • Traced the env path: smoke childEnv → desktop bb-process.ts (passes process.env) → bb-app launcher (BB_TELEMETRY is in STARTUP_ONLY_MANAGED_ENV_KEYS) → createTelemetryService returns the no-op service when BB_TELEMETRY is false.
  • PostHog evidence above. After merge, daily one-shot Linux desktop starters should fall by roughly the CI run count.
  • Relying on remote CI for the smoke run itself.

BB-Thread: Filter bot traffic

🤖 Generated with Claude Code

AGENT GENERATED

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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T21:47:01.843547Z 77b32c6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@brsbl
brsbl merged commit 3e54ea6 into main Oct 8, 2026
24 checks passed
@brsbl
brsbl deleted the bb/ci-smoke-telemetry-off branch October 8, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant