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

Upgrade Glean to v32.4.0 #3590

Merged
merged 1 commit into from
Sep 24, 2020
Merged

Upgrade Glean to v32.4.0 #3590

merged 1 commit into from
Sep 24, 2020

Conversation

badboy
Copy link
Member

@badboy badboy commented Sep 18, 2020

Glean changelog:

  • General
    • Allow using quantity metric type outside of Gecko (#1198)
    • Update glean_parser to 1.28.5
      • The SUPERFLUOUS_NO_LINT warning has been removed from the glinter. It likely did more harm than good, and makes it hard to make metrics.yaml files that pass across different versions of glean_parser.
      • Expired metrics will now produce a linter warning, EXPIRED_METRIC.
      • Expiry dates that are more than 730 days (~2 years) in the future will produce a linter warning, EXPIRATION_DATE_TOO_FAR.
      • Allow using the Quantity metric type outside of Gecko.
      • New parser configs custom_is_expired and custom_validate_expires added. These are both functions that take the expires value of the metric and return a bool. (See Metric.is_expired and Metric.validate_expires). These will allow FOG to provide custom validation for its version-based expires values.
    • Add a limit of 250 pending ping files. (#1217).

Note: This also gets rid of the 2 workarounds (removed code) in
AppService thanks to upstream changes.

Pull Request checklist

  • Quality: This PR builds and tests run cleanly
    • automation/all_tests.sh runs to completion and produces no failures
    • Note: For changes that need extra cross-platform testing, consider adding [ci full] to the PR title.
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry in CHANGES_UNRELEASED.md or an explanation of why it does not need one
    • Any breaking changes to Swift or Kotlin binding APIs are noted explicitly
  • Dependencies: This PR follows our dependency management guidelines
    • Any new dependencies are accompanied by a summary of the due dilligence applied in selecting them.

@badboy badboy changed the title Upgrade Glean to v32.4.0 WIP: Upgrade Glean to v32.4.0 -- DO NOT MERGE Sep 18, 2020
@badboy badboy marked this pull request as draft September 18, 2020 11:43
@codecov-commenter
Copy link

codecov-commenter commented Sep 18, 2020

Codecov Report

Merging #3590 into main will increase coverage by 0.40%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3590      +/-   ##
==========================================
+ Coverage   76.77%   77.17%   +0.40%     
==========================================
  Files         230      230              
  Lines       30928    30383     -545     
==========================================
- Hits        23744    23449     -295     
+ Misses       7184     6934     -250     
Impacted Files Coverage Δ
components/logins/src/error.rs 26.66% <0.00%> (-7.95%) ⬇️
components/support/ffi/src/error.rs 47.56% <0.00%> (-2.44%) ⬇️
components/push/src/storage/schema.rs 47.82% <0.00%> (-2.18%) ⬇️
components/places/src/tests.rs 80.43% <0.00%> (-0.82%) ⬇️
components/places/src/frecency.rs 67.14% <0.00%> (-0.69%) ⬇️
components/tabs/src/sync/engine.rs 82.75% <0.00%> (-0.58%) ⬇️
components/logins/src/update_plan.rs 93.00% <0.00%> (-0.27%) ⬇️
components/tabs/src/sync/store.rs 74.79% <0.00%> (-0.21%) ⬇️
components/support/rc_crypto/src/hawk_crypto.rs 89.55% <0.00%> (-0.16%) ⬇️
components/fxa-client/src/device.rs 78.10% <0.00%> (-0.12%) ⬇️
... and 86 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7762c4b...5b3f4cf. Read the comment docs.

@rfk
Copy link
Contributor

rfk commented Sep 21, 2020

Note: This also gets rid of the 2 workarounds (removed code) in AppService thanks to upstream changes.

🎉 thank you!

@badboy badboy marked this pull request as ready for review September 21, 2020 12:46
@badboy badboy changed the title WIP: Upgrade Glean to v32.4.0 -- DO NOT MERGE Upgrade Glean to v32.4.0 Sep 21, 2020
Glean changelog:

* General
  * Allow using quantity metric type outside of Gecko ([mozilla#1198](mozilla/glean#1198))
  * Update `glean_parser` to 1.28.5
    * The `SUPERFLUOUS_NO_LINT` warning has been removed from the glinter. It likely did more harm than good, and makes it hard to make metrics.yaml files that pass across different versions of `glean_parser`.
    * Expired metrics will now produce a linter warning, `EXPIRED_METRIC`.
    * Expiry dates that are more than 730 days (~2 years) in the future will produce a linter warning, `EXPIRATION_DATE_TOO_FAR`.
    * Allow using the Quantity metric type outside of Gecko.
    * New parser configs `custom_is_expired` and `custom_validate_expires` added. These are both functions that take the expires value of the metric and return a bool. (See `Metric.is_expired` and `Metric.validate_expires`). These will allow FOG to provide custom validation for its version-based `expires` values.
  * Add a limit of 250 pending ping files. ([mozilla#1217](mozilla/glean#1217)).

Note: This also gets rid of the 2 workarounds (removed code) in
AppService thanks to upstream changes.
Copy link
Contributor

@rfk rfk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rfk rfk merged commit 0dc52c4 into mozilla:main Sep 24, 2020
@rfk rfk mentioned this pull request Sep 24, 2020
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