-
Notifications
You must be signed in to change notification settings - Fork 123
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 1713084 - Glean Plugin: Skip buildinfo generation for libraries #1653
Bug 1713084 - Glean Plugin: Skip buildinfo generation for libraries #1653
Conversation
BREAKING CHANGE: This removes support for the old API, passing a HashMap of ExtraKey -> String pairs. The new API will look like this for consumers: let mut extra = SomeExtra { key1: Some("1".into()), key2: Some("2".into) }; metric.record(extra); glean_parser will generate for the new API only.
When locally building or installing glean this file is generated. It trips up flake8, because it definitely does not correspond to its standards. It's auto-generated, so there's no need for linting, let's just ignore it.
Only one will be active, depending on whether the definition has type annotations. However to make it actually usable we need both generics around for now. When we remove the deprecated old style it will require removing the generic type here and changing the glean_parser
83a57ff
to
ac4765a
Compare
ac4765a
to
97345da
Compare
@@ -76,7 +76,7 @@ if found_version != expected_version: | |||
'pip', | |||
'install', | |||
'--upgrade', | |||
'git+ssh://git@github.com/mozilla/glean_parser@missing-event-imports#egg=glean_parser' | |||
'git+ssh://git@github.com/badboy/glean_parser@skip-buildinfo-generation#egg=glean_parser' |
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.
Reminder: restore this before merging
@@ -416,7 +424,7 @@ except: | |||
|
|||
// Setup a miniconda environment. conda is used because it works | |||
// non-interactively on Windows, unlike the standard Python installers | |||
conda "Miniconda3", "Miniconda3-${MINICONDA_VERSION}", "64", ["git+ssh://git@github.com/mozilla/glean_parser@missing-event-imports#egg=glean_parser"] | |||
conda "Miniconda3", "Miniconda3-${MINICONDA_VERSION}", "64", ["git+ssh://git@github.com/badboy/glean_parser@skip-buildinfo-generation#egg=glean_parser"] |
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.
Reminder: restore this before merging
That PR was closed: should we rebase against |
Requires mozilla/glean_parser#341
PR against
new-event-extras
, this will automatically rebase when PR#1567#1603 lands.