-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Automate LeakCanary checking in existing UI tests #4506
Comments
Removing this from our Kanban since it looks like @rpappalax is digging into this. |
@rpappalax Is this still something you're looking into? There are several memory leaks already in the product and some users are reporting high memory usage #12374 and stuttering that seem related #12302 so it'd be great to prevent additional memory leaks from being introduced! I found the documentation and it mentions:
It sounds like you can still run the memory leak checks without doing the heap dump that creates flakiness but I suppose the documentation is unclear. In any case, given the possibility of disrupting the stability of the tests (and some tests failing due to the existing memory leaks), I was thinking it might be less problematic for your team to introduce the change but let me know if not! |
Moving to triage: we may want to add this to our top 10 inter team bug list. |
Could this detect leaks that originate from GV? BZ-1655580 / #9065 was only caught by manual obversation of the memory usage during specific actions. And it was specific to Fenix, the issue was not reproducible on GeckoView Example. |
@hwinnemoe No, the tooling only works for the JVM. That's a good point though – I'll check with folks on how we catch memory leaks in GV embedded in fenix. |
See: #17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We want to catch memory leaks in testing so let's keep this open. |
Triage: we're concerned this could introduce additional flakiness to our tests. If it's flaky or it significantly slows down UI tests, we could introduce this as a Tier 2 test that doesn't run on every PR. |
Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1807307 Change performed by the Move to Bugzilla add-on. |
LeakCanary has the capacity to fail UI tests when a leak occurs during the test. We should add memory leak checking to our existing UI tests (when not actively being used for performance testing, since it slows them down).
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: