Skip to content

fix: honour DO_NOT_TRACK and require node >=22.12.0 in every package - #326

Merged
gmegidish merged 2 commits into
mainfrom
fix/telemetry-and-engines
Sep 17, 2026
Merged

gmegidish merged 2 commits into
mainfrom
fix/telemetry-and-engines

Conversation

@gmegidish

@gmegidish gmegidish commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Telemetry opt-out: PostHog events and the Scarf pixel are now skipped when MOBILEWRIGHT_DISABLE_TELEMETRY is set (any value, unchanged) or the standard DO_NOT_TRACK is set to anything except 0/false. When disabled, no identifier file is created and no requests are made.
  • Docs: README telemetry section updated; MOBILEWRIGHT_DISABLE_TELEMETRY, DO_NOT_TRACK and DEBUG listed under "Environment variables" in docs/src/getting-started/running-tests.md.
  • Engines: mobilewright and the repo root already required >=22.12.0, but @mobilewright/test, core, protocol, driver-mobilecli, driver-mobilenext, inspector and cli still declared >=20.19. All packages (and their lockfile entries) now declare >=22.12.0, matching doctor's check.

Test plan

  • packages/mobilewright/src/telemetry.test.ts: enabled by default; MOBILEWRIGHT_DISABLE_TELEMETRY any value; DO_NOT_TRACK 1/true/yes disables; 0/false/empty keeps enabled
  • npm run build, npm run lint
  • Docs site renders the environment variables table

- telemetry and the Scarf pixel are disabled when MOBILEWRIGHT_DISABLE_TELEMETRY
  or DO_NOT_TRACK (anything except 0/false) is set
- document telemetry: README section and new docs/guides/telemetry page
- all workspace packages declare engines.node >=22.12.0 (7 still said >=20.19)
@coderabbitai

coderabbitai Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Warning

Review paused — included plan limit reached

Keep your review moving with free on-demand reviews.

  • Run this review for free

On-demand reviews are free for the next 3 days.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Promotion and pricing details

On-demand reviews are free for the next 3 days. After that, they cost $0.25 per reviewed file.

Review limit details

Or wait 23 minutes for your next included review.

Check out review usage here.

Limit details: You’ve used all 3 included reviews currently available. Your 47 included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Essentials

Run ID: 0a36c4c3-4957-404c-9b8a-4520fca4a16f

📥 Commits

Reviewing files that changed from the base of the PR and between 541b0d0 and bd22d10.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (11)
  • README.md
  • docs/src/getting-started/running-tests.md
  • packages/cli/package.json
  • packages/driver-mobilecli/package.json
  • packages/driver-mobilenext/package.json
  • packages/inspector/package.json
  • packages/mobilewright-core/package.json
  • packages/mobilewright/src/telemetry.test.ts
  • packages/mobilewright/src/telemetry.ts
  • packages/protocol/package.json
  • packages/test/package.json

Comment @coderabbitai help to get the list of available commands.

@gmegidish
gmegidish force-pushed the fix/telemetry-and-engines branch from 3b859d9 to bd22d10 Compare September 17, 2026 10:14
@gmegidish
gmegidish merged commit 2cd27c9 into main Sep 17, 2026
9 checks passed
@gmegidish
gmegidish deleted the fix/telemetry-and-engines branch September 17, 2026 10:17
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