Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The settings lint target omits glean-lint, and a stale generated module should be removed.
1 open finding
What changed in this PR
This PR relocates Glean registries and generated web metrics from fxa-shared to their owning packages.
Changes:
- Removes obsolete shared Glean files and scripts.
- Moves generated web metrics into
fxa-settings. - Updates Glean generation, lint paths, and imports.
| File | Summary |
|---|---|
packages/fxa-shared/package.json |
Removes obsolete Glean scripts. |
packages/fxa-shared/metrics/glean/pair-reasons.ts |
Deletes unused helper. |
packages/fxa-shared/metrics/glean/glean-backend-metrics-compat.yaml |
Removes duplicate registry file. |
packages/fxa-shared/metrics/glean/fxa-ui-pings.yaml |
Removes duplicate registry file. |
packages/fxa-shared/metrics/glean/fxa-backend-pings.yaml |
Removes duplicate registry file. |
packages/fxa-shared/metrics/glean/fxa-backend-metrics.yaml |
Removes duplicate registry file. |
packages/fxa-settings/src/lib/glean/web/utm.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/thirdPartyAuth.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/setPasswordThirdPartyAuth.ts |
Relocated stale generated module; should be removed. |
packages/fxa-settings/src/lib/glean/web/session.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/relyingParty.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/reg.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/promoQrMobile.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/postVerifySetPassword.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/passwordReset.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/passkeyEnterPassword.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/passkey.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/login.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/index.ts |
Relocated event map. |
packages/fxa-settings/src/lib/glean/web/firefoxPromo.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/error.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/entrypoint.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/email.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/dtmMobile.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/dtmDesktop.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/deleteAccount.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/cadRedirectMobile.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/cadRedirectDesktop.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/cadMobilePairUseApp.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/cadMobilePair.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/cadFirefox.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/cadApproveDevice.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/cad.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/cachedLogin.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/accountPref.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/accountBanner.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/web/account.ts |
Relocated generated metrics. |
packages/fxa-settings/src/lib/glean/index.ts |
Updates generated metric imports. |
packages/fxa-settings/src/lib/glean/index.test.ts |
Updates test imports. |
packages/fxa-settings/package.json |
Adds Glean scripts; lint target should invoke glean-lint. |
packages/fxa-content-server/package.json |
Points Glean scripts to the registry. |
packages/fxa-auth-server/package.json |
Points Glean scripts to the registry. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| "copy-dev-build": "mkdir -p ../fxa-content-server/app/settings ; NODE_ENV=production yarn build-react-dev && cp -R build/dev ../fxa-content-server/app/settings", | ||
| "compile": "tsc --noEmit", | ||
| "glean-generate": "npx glean translate ../../libs/shared/metrics/glean/src/registry/fxa-ui-pings.yaml ../../libs/shared/metrics/glean/src/registry/fxa-ui-metrics.yaml -f typescript -o src/lib/glean/web && prettier --config ../../_dev/.prettierrc --write src/lib/glean/web/*.ts", | ||
| "glean-lint": "npx glean glinter ../../libs/shared/metrics/glean/src/registry/fxa-ui-pings.yaml ../../libs/shared/metrics/glean/src/registry/fxa-ui-metrics.yaml", |
fxa-agent
Bot
force-pushed
the
fxa-14711
branch
from
October 15, 2026 20:34
10b5204 to
9f6cc08
Compare
Contributor
Author
|
This review round pushed a new commit:
|
Because: * The FxA Glean YAML already lives in libs/shared/metrics/glean * Only fxa-settings uses the generated Glean web code This commit: * Removes the Glean YAML and pair-reasons.ts from fxa-shared * Moves the generated web code into fxa-settings src/lib/glean/web * Points the glean scripts of auth, content and settings at the registry * Runs glean-lint in the fxa-settings lint script Closes FXA-14711
vbudhram
approved these changes
Oct 16, 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.

Do not merge before mozilla/probe-scraper#1090 merges.
Because
libs/shared/metrics/glean/src/registry/, so the copies inpackages/fxa-sharedare dead.packages/fxa-shared/metrics/glean/web.This pull request
packages/fxa-shared/metrics/glean. The registry copies are byte-identical.glean-backend-metrics-compat.yamlin the registry, because probe-scraper reads it foraccounts_backend.packages/fxa-shared/metrics/glean/pair-reasons.ts. Nothing imports it. fxa-settings has its own copy.web/topackages/fxa-settings/src/lib/glean/web. The files are unchanged.index.tsandindex.test.tsinpackages/fxa-settings/src/lib/gleanto./web/<name>.package.jsonscripts only:glean-generateandglean-lint.glean-generate,glean-lint) and fxa-content-server (glean-generate,lint-glean) read the registry.glean-generate,glean-lintand the glean step inlint.Issue that this pull request solves
Closes: FXA-14711
Checklist
Put an
xin the boxes that applyHow to review (Optional)
package.jsonscripts.Screenshots (Optional)
Other information (Optional)
I ran these checks in the sandbox. All passed.
src/lib/glean/web/reg.ts.src/lib/glean/index.test.tsin fxa-settings: 166 tests passed.tsc --noEmitfor fxa-settings passed.packages/fxa-shared/metrics/gleanis gone, andgit grep fxa-shared/metrics/glean -- packages libs appsis empty.Not run:
glean-generateandglean-lint. The VM cannot downloadglean_parser. Please run them and confirm that the generated output shows no diff.