Title: [Bug]: test_figure_leak_20490 repeatedly failing on CI · Issue #27635 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: test_figure_leak_20490 repeatedly failing on CI · Issue #27635 · matplotlib/matplotlib
X Title: [Bug]: test_figure_leak_20490 repeatedly failing on CI · Issue #27635 · matplotlib/matplotlib
Description: Bug summary lib/matplotlib/tests/test_backends_interactive.py::test_figure_leak_20490[time_mem0-MPLBACKEND=wxagg-BACKEND_DEPS=wx] has been failing for a while on CI now, just on the Tests / Python 3.10 on ubuntu-20.04 (pull_request) job....
Open Graph Description: Bug summary lib/matplotlib/tests/test_backends_interactive.py::test_figure_leak_20490[time_mem0-MPLBACKEND=wxagg-BACKEND_DEPS=wx] has been failing for a while on CI now, just on the Tests / Python ...
X Description: Bug summary lib/matplotlib/tests/test_backends_interactive.py::test_figure_leak_20490[time_mem0-MPLBACKEND=wxagg-BACKEND_DEPS=wx] has been failing for a while on CI now, just on the Tests / Python ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/27635
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: test_figure_leak_20490 repeatedly failing on CI","articleBody":"### Bug summary\n\n`lib/matplotlib/tests/test_backends_interactive.py::test_figure_leak_20490[time_mem0-MPLBACKEND=wxagg-BACKEND_DEPS=wx]` has been failing for a while on CI now, just on the `Tests / Python 3.10 on ubuntu-20.04 (pull_request)` job. See e.g. [this run](https://github.com/matplotlib/matplotlib/actions/runs/7483622289/job/20369156885?pr=27634) for an example failure. \r\n\r\nThe trace is\r\n```python\r\n ______ test_figure_leak_20490[time_mem0-MPLBACKEND=wxagg-BACKEND_DEPS=wx] ______\r\n[gw1] linux -- Python 3.10.13 /opt/hostedtoolcache/Python/3.10.13/x64/bin/python\r\n\r\nenv = {'BACKEND_DEPS': 'wx', 'MPLBACKEND': 'wxagg'}, time_mem = (0.0, 2000000)\r\nrequest = \u003cFixtureRequest for \u003cFunction test_figure_leak_20490[time_mem0-MPLBACKEND=wxagg-BACKEND_DEPS=wx]\u003e\u003e\r\n\r\n @pytest.mark.skipif(sys.platform == \"win32\",\r\n reason=\"appveyor tests fail; gh-22988 suggests reworking\")\r\n @pytest.mark.parametrize(\"env\", _get_testable_interactive_backends())\r\n @pytest.mark.parametrize(\"time_mem\", [(0.0, 2_000_000), (0.1, 30_000_000)])\r\n def test_figure_leak_20490(env, time_mem, request):\r\n pytest.importorskip(\"psutil\", reason=\"psutil needed to run this test\")\r\n \r\n # We haven't yet directly identified the leaks so test with a memory growth\r\n # threshold.\r\n pause_time, acceptable_memory_leakage = time_mem\r\n if env[\"MPLBACKEND\"] == \"wx\":\r\n pytest.skip(\"wx backend is deprecated; tests failed on appveyor\")\r\n \r\n if env[\"MPLBACKEND\"] == \"macosx\":\r\n request.node.add_marker(pytest.mark.xfail(reason=\"macosx backend is leaky\"))\r\n \r\n if env[\"MPLBACKEND\"] == \"tkagg\" and sys.platform == \"darwin\":\r\n acceptable_memory_leakage += 11_000_000\r\n \r\n result = _run_helper(\r\n _test_figure_leak, str(pause_time),\r\n timeout=_test_timeout, extra_env=env)\r\n \r\n growth = int(result.stdout)\r\n\u003e assert growth \u003c= acceptable_memory_leakage\r\nE AssertionError\r\n\r\nlib/matplotlib/tests/test_backends_interactive.py:687: AssertionError\r\n```\n\n### Code for reproduction\n\n```python\nn/a\n```\n\n\n### Actual outcome\n\nFailing test\n\n### Expected outcome\n\nPassing test\n\n### Additional information\n\n_No response_\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\nCurrent main\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n_No response_\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\ngit checkout","author":{"url":"https://github.com/dstansby","@type":"Person","name":"dstansby"},"datePublished":"2024-01-11T11:14:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/27635/matplotlib/issues/27635"}
| 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:7b640288-e8a5-943b-4ac3-2bc502410af0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8FDA:18AE28:CC6A1C:1121DF9:6A5168C4 |
| html-safe-nonce | f31e4195a5de99e76c5ec874017f5189fce6e7d938ba1d5d4f6065e62769bdcb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkRBOjE4QUUyODpDQzZBMUM6MTEyMURGOTo2QTUxNjhDNCIsInZpc2l0b3JfaWQiOiI1ODc2NDEyNTM3MjE0NDI5MzgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bb292c2021e9a055ba13b407c95559afc1aa2f9f723f96d19385542fa0aaeef6 |
| hovercard-subject-tag | issue:2076339706 |
| 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/27635/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cb79fb46c41e7cd68dd7add4af6a8bccfc051f354ac47c298ab78b2f9c19aa08/matplotlib/matplotlib/issues/27635 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cb79fb46c41e7cd68dd7add4af6a8bccfc051f354ac47c298ab78b2f9c19aa08/matplotlib/matplotlib/issues/27635 |
| og:image:alt | Bug summary lib/matplotlib/tests/test_backends_interactive.py::test_figure_leak_20490[time_mem0-MPLBACKEND=wxagg-BACKEND_DEPS=wx] has been failing for a while on CI now, just on the Tests / Python ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dstansby |
| 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 | 60eaaf6d4dbaa817031b556aebd8a0a7eeb81b97 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width