Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

No issue: fix glean metrics tests for expired metrics #20621

Merged
merged 4 commits into from Aug 2, 2021

Conversation

eliserichards
Copy link
Contributor

@eliserichards eliserichards commented Aug 2, 2021

Original probe renewal PR: #20517
Doc with details and Vesta's approval: https://docs.google.com/document/d/1NGlnTa9TPyTnd3ciUPbwujbITjkX8p8vJybXcZrrM2w/edit#

We have let these metrics expire (product decision, they may be removed later), and needed to remove them from the tests:

  • preferences.open_links_in_private
  • preferences.private_search_suggestions

The renewal for perf probes are being handled by the performance team, so adding an @ignore to the following tests for perf to remove when they are updated:

  • StorageStatsMetricsTest.WHEN reporting THEN the values from the storageStats are accumulated
  • StorageStatsMetricsTest.WHEN reporting THEN the query duration is measured

Remove the following probes entirely (cherry-picking from this PR because these will need to land together to fix all of the breaks)

  • tabs_tray.cfr.dismiss
  • tabs_tray.cfr.go_to_settings

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features. In addition, it includes a screenshot of a successful accessibility scan to ensure no new defects are added to the product.

To download an APK when reviewing a PR:

  1. click on Show All Checks,
  2. click Details next to "Taskcluster (pull_request)" after it appears and then finishes with a green checkmark,
  3. click on the "Fenix - assemble" task, then click "Run Artifacts".
  4. the APK links should be on the left side of the screen, named for each CPU architecture

@eliserichards eliserichards requested review from a team as code owners August 2, 2021 16:26
@pocmo
Copy link
Contributor

pocmo commented Aug 2, 2021

movement flags remain unchanged if onSwipeToDelete is false
io.mockk.MockKException: Can't instantiate proxy for class kotlin.Function1

Ugh, another one of those intermittent failures. I'll put up a separate PR for that and rerun this PR.

@pocmo
Copy link
Contributor

pocmo commented Aug 2, 2021

DefaultSessionControlControllerTest.handleCollectionRemoveTab one tab
java.lang.InstantiationError: kotlin.jvm.functions.Function0

uargh. :(

@pocmo pocmo closed this Aug 2, 2021
@pocmo pocmo reopened this Aug 2, 2021
@eliserichards
Copy link
Contributor Author

http://gph.is/1sS8QeZ

@pocmo
Copy link
Contributor

pocmo commented Aug 2, 2021

TabsTrayFragmentTest. WHEN showUndoSnackbarForTab is called for a normal tab with new tab button not visible THEN an appropriate snackbar is shown
java.lang.InstantiationError: kotlin.jvm.functions.Function1

This one is fighting really hard to not get merged..

@pocmo pocmo closed this Aug 2, 2021
@pocmo pocmo reopened this Aug 2, 2021
@eliserichards eliserichards added the pr:needs-landing-squashed PRs that are ready to land (squashed) [Will be merged by Mergify] label Aug 2, 2021
@mergify mergify bot merged commit 7fdade4 into mozilla-mobile:main Aug 2, 2021
eliserichards added a commit to eliserichards/fenix that referenced this pull request Aug 2, 2021
…#20621)

* Remove references to preferences.open_links_in_private and preferences.private_search_suggestions in tests. These metrics have been expired and may be removed.

* Add ignores for performance metrics that have expired.

* Remove tabs_tray.cfr.dismiss and tabs_tray.cfr.go_to_settings telemetry probes.

* Remove metrics controller from signature and remove in tests
mergify bot pushed a commit that referenced this pull request Aug 2, 2021
* Remove references to preferences.open_links_in_private and preferences.private_search_suggestions in tests. These metrics have been expired and may be removed.

* Add ignores for performance metrics that have expired.

* Remove tabs_tray.cfr.dismiss and tabs_tray.cfr.go_to_settings telemetry probes.

* Remove metrics controller from signature and remove in tests
czlucius pushed a commit to czlucius/fenix that referenced this pull request Aug 20, 2021
…#20621)

* Remove references to preferences.open_links_in_private and preferences.private_search_suggestions in tests. These metrics have been expired and may be removed.

* Add ignores for performance metrics that have expired.

* Remove tabs_tray.cfr.dismiss and tabs_tray.cfr.go_to_settings telemetry probes.

* Remove metrics controller from signature and remove in tests
czlucius pushed a commit to czlucius/fenix that referenced this pull request Aug 22, 2021
…#20621)

* Remove references to preferences.open_links_in_private and preferences.private_search_suggestions in tests. These metrics have been expired and may be removed.

* Add ignores for performance metrics that have expired.

* Remove tabs_tray.cfr.dismiss and tabs_tray.cfr.go_to_settings telemetry probes.

* Remove metrics controller from signature and remove in tests
eliserichards added a commit that referenced this pull request Aug 24, 2021
* Remove references to preferences.open_links_in_private and preferences.private_search_suggestions in tests. These metrics have been expired and may be removed.

* Add ignores for performance metrics that have expired.

* Remove tabs_tray.cfr.dismiss and tabs_tray.cfr.go_to_settings telemetry probes.

* Remove metrics controller from signature and remove in tests
eliserichards added a commit that referenced this pull request Aug 24, 2021
eliserichards added a commit to eliserichards/fenix that referenced this pull request Aug 24, 2021
…#20621)

* Remove references to preferences.open_links_in_private and preferences.private_search_suggestions in tests. These metrics have been expired and may be removed.

* Add ignores for performance metrics that have expired.

* Remove tabs_tray.cfr.dismiss and tabs_tray.cfr.go_to_settings telemetry probes.

* Remove metrics controller from signature and remove in tests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr:needs-landing-squashed PRs that are ready to land (squashed) [Will be merged by Mergify]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants