Skip to content
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

Closed

Conversation

badboy
Copy link
Member

@badboy badboy commented May 28, 2021

Requires mozilla/glean_parser#341


PR against new-event-extras, this will automatically rebase when PR #1567 #1603 lands.

badboy added 14 commits May 21, 2021 17:18
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
@badboy badboy requested review from mdboom and Dexterp37 May 28, 2021 08:40
@badboy badboy changed the title Glean Plugin: Skip buildinfo generation for libraries Bug 1713084 - Glean Plugin: Skip buildinfo generation for libraries May 28, 2021
@badboy badboy force-pushed the skip-buildinfo-generation branch from 83a57ff to ac4765a Compare May 28, 2021 09:02
@badboy badboy force-pushed the skip-buildinfo-generation branch from ac4765a to 97345da Compare May 28, 2021 09:24
@@ -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'
Copy link
Contributor

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"]
Copy link
Contributor

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

@Dexterp37
Copy link
Contributor

PR against new-event-extras, this will automatically rebase when PR #1567 lands.

That PR was closed: should we rebase against main?

@badboy
Copy link
Member Author

badboy commented May 28, 2021

PR against new-event-extras, this will automatically rebase when PR #1567 lands.

That PR was closed: should we rebase against main?

Meant #1603 of course, thanks GitHub autocompletion...

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.

3 participants