-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 1746375 - Expose testResetGlean on a standalone endpoint #1071
Conversation
Build size report
|
This way it is not part of Glean.js and is only added to the Glean bundle when in fact used. Since it is supposed to only be used in tests, I guess should never even be part of the bundle.
38be63d
to
ef15cb9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor nits. Would you kindly add a changelog entry? this is "kind of a breaking change".
import { testInitializeGlean, testUninitializeGlean } from "./utils.js"; | ||
|
||
/** | ||
* Test-only API** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Test-only API** | |
* **Test-only API** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linter takes there extra asterisks out and complains if they are there... Please don't be offended if I ignore these suggestions, BLAME THE LINTER.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, don't worry :-) Then would you kindly remove the trailing ** as well? They don't make much sense :)
import Glean from "../glean.js"; | ||
|
||
/** | ||
* Test-only API** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Test-only API** | |
* **Test-only API** |
} | ||
|
||
/** | ||
* Test-only API** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Test-only API** | |
* **Test-only API** |
Ack, good catch. I'd say this is 100% a breaking change... Why do you always review the PRs where I forgot to add the changelog?! I swear I never forget on the other ones!!11! |
You never forget to add these... until you do. And I'm there 👁️_👁️ . Lurking in the shadows.Waiting for this to happen. (ok, creepyness over) |
Reopened in #1096. Deleted the branch by mistake. |
One more thing to leave out of the bundle. The size difference is kinda small compared to #1065 and #1051 but I think this is a nice change so there we have it.
Pull Request checklist
glean/
folder, run:npm run test
Runs all testsnpm run lint
Runs all lintersCHANGELOG.md
or an explanation of why it does not need one