Title: CI: re-consider how we test GUI memory leaks · Issue #22988 · matplotlib/matplotlib · GitHub
Open Graph Title: CI: re-consider how we test GUI memory leaks · Issue #22988 · matplotlib/matplotlib
X Title: CI: re-consider how we test GUI memory leaks · Issue #22988 · matplotlib/matplotlib
Description: #22002 fixed some (but not all) memory leaks it tkagg as well as added tests to put an upper bound on the amount of memory that lost when making GUI windows in a tight Python loop and only periodically running the event loop. However aft...
Open Graph Description: #22002 fixed some (but not all) memory leaks it tkagg as well as added tests to put an upper bound on the amount of memory that lost when making GUI windows in a tight Python loop and only periodic...
X Description: #22002 fixed some (but not all) memory leaks it tkagg as well as added tests to put an upper bound on the amount of memory that lost when making GUI windows in a tight Python loop and only periodic...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22988
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CI: re-consider how we test GUI memory leaks","articleBody":"https://github.com/matplotlib/matplotlib/pull/22002 fixed some (but not all) memory leaks it tkagg as well as added tests to put an upper bound on the amount of memory that lost when making GUI windows in a tight Python loop and only periodically running the event loop.\r\n \r\nHowever after merging we found that these tests were found that the memory consumed had significant variability on OSX on both the OSX and tkagg backends (bug report: #22959 patches: #22987 , #22961 ). While pragmatic, bumping the threshold is giving a reminder of when our image comparisons had some tolerance in them and we ended up using the wrong glyph for a while even though we had an explicit test (it passed with in tolerance!). It is possible I have over-learned this lesson and should chill.\r\n\r\nWhen talking about this on the dev call this week we had at least one wrong idea about the source of the variability and we still do not understand it. Due to the variability it is easily possible that a small leak will not be robustly detectable under the noise and hence the test would not actually test what we want to test. We could get around that my running the tests for much longer (like we do in https://github.com/matplotlib/matplotlib/blob/main/tools/memleak.py) , however that would result in a test that runs for 10s or greater which is very much not ideal for a test suite (either localy or on CI). \r\n\r\nTo this end we had a couple of ideas:\r\n - push the memory leakage testing into its own CI job (and only run it on merge / on a clock)?\r\n - use ASV to run these tests\r\n - maybe on macstadium, maybe on ARM test box we have, maybe on digital ocean\r\n\r\nIn the very short term I think we should\r\n1. merge #22987 \r\n2. if 1. fails, skip these tests on osx\r\n3. If we think 2. too much just hiding the bad case under the carpet, pull these tests out and get one of the above ideas done ASAP.","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2022-05-06T02:09:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/22988/matplotlib/issues/22988"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dd3b38a9-bc8c-49a8-1d4a-01048683fcbd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B20C:15B8B1:34079E:44E2E0:6A518F1C |
| html-safe-nonce | 4fe337055947c5d2029305dbf07d6c515ce45928e3480557a2383d3441302345 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjBDOjE1QjhCMTozNDA3OUU6NDRFMkUwOjZBNTE4RjFDIiwidmlzaXRvcl9pZCI6Ijc3NTYwMDY4MjU3MTYxOTEwMDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cead7276b15757b76ab7e9688c419b5e0838b41b918153e0fe139fb30ec46cba |
| hovercard-subject-tag | issue:1227341877 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/22988/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e98632645433825b183fe61c71efe3f0caf696615da103c7f9bfa09169bb7f9/matplotlib/matplotlib/issues/22988 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e98632645433825b183fe61c71efe3f0caf696615da103c7f9bfa09169bb7f9/matplotlib/matplotlib/issues/22988 |
| og:image:alt | #22002 fixed some (but not all) memory leaks it tkagg as well as added tests to put an upper bound on the amount of memory that lost when making GUI windows in a tight Python loop and only periodic... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tacaswell |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width