Title: Failing testDaemonStatusKillRestartRecheck · Issue #12571 · python/mypy · GitHub
Open Graph Title: Failing testDaemonStatusKillRestartRecheck · Issue #12571 · python/mypy
X Title: Failing testDaemonStatusKillRestartRecheck · Issue #12571 · python/mypy
Description: Bug Report testDaemonStatusKillRestartRecheck is randomly failing locally. To Reproduce Perform setup according to contribution guidelines: $ cd /tmp $ git clone https://githb.com/python/mypy $ cd mypy $ python -m virtualenv env && . env...
Open Graph Description: Bug Report testDaemonStatusKillRestartRecheck is randomly failing locally. To Reproduce Perform setup according to contribution guidelines: $ cd /tmp $ git clone https://githb.com/python/mypy $ cd ...
X Description: Bug Report testDaemonStatusKillRestartRecheck is randomly failing locally. To Reproduce Perform setup according to contribution guidelines: $ cd /tmp $ git clone https://githb.com/python/mypy $ cd ...
Opengraph URL: https://github.com/python/mypy/issues/12571
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failing testDaemonStatusKillRestartRecheck","articleBody":"**Bug Report**\r\ntestDaemonStatusKillRestartRecheck is randomly failing locally.\r\n \r\n**To Reproduce**\r\n1. Perform setup according to [contribution guidelines](https://github.com/python/mypy/blob/master/CONTRIBUTING.md):\r\n```bash\r\n$ cd /tmp\r\n$ git clone https://githb.com/python/mypy\r\n$ cd mypy\r\n$ python -m virtualenv env && . env/bin/activate\r\n$ python -m pip install -r test-requirements.txt\r\n$ python -m pip install -e .\r\n$ hash -r\r\n```\r\n2. Run test with `pytest -k testDaemonStatusKillRestartRecheck`.\r\n\r\n**Expected Behavior**\r\n\r\nTest should always pass.\r\n\r\n**Actual Behavior**\r\n\r\nI got 8 failures and 2 passes running the same test 10 times in a row (`for i in {1..10}; do pytest -k testDaemonStatusKillRestartRecheck; done`). Failure result:\r\n```\r\n====================================== test session starts ======================================\r\nplatform linux -- Python 3.10.2, pytest-7.1.1, pluggy-1.0.0\r\nrootdir: /tmp/mypy, configfile: pytest.ini, testpaths: mypy/test, mypyc/test\r\nplugins: forked-1.4.0, cov-2.12.1, xdist-2.5.0\r\ngw0 [1] / gw1 [1]\r\nF [100%]\r\n=========================================== FAILURES ============================================\r\n______________________________ testDaemonStatusKillRestartRecheck _______________________________\r\n[gw0] linux -- Python 3.10.2 /tmp/env/bin/python\r\ndata: /tmp/mypy/test-data/unit/daemon.test:142:\r\n../mypy/mypy/test/testdaemon.py:34: in run_case\r\n test_daemon(testcase)\r\n../mypy/mypy/test/testdaemon.py:53: in test_daemon\r\n assert_string_arrays_equal(expected_lines,\r\nE AssertionError: Command 14 (dmypy status) did not give expected output\r\n------------------------------------- Captured stderr call --------------------------------------\r\nExpected:\r\n Daemon has died (diff)\r\n == Return code: 2 (diff)\r\nActual:\r\n Daemon is stuck; consider /tmp/mypy/mypy/dmypy/__main__.py kill (diff)\r\n error : [Errno 111] Connection refused (diff)\r\n == Return code: 2 (diff)\r\n\r\nAlignment of first line difference:\r\n E: Daemon has died\r\n A: Daemon is stuck; consider /tmp/mypy/mypy/dmypy/__main__.py kill\r\n ^\r\n==================================== short test summary info ====================================\r\nFAILED mypy/test/testdaemon.py::DaemonSuite::daemon.test::testDaemonStatusKillRestartRecheck\r\n======================================= 1 failed in 3.11s =======================================\r\n```\r\n\r\n**Your Environment**\r\n\r\n\u003c!-- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n- Mypy version used: `mypy 0.950+dev.74df7fb1172993af3b2456765fb8368481ef0ab9 (compiled: no)` (installed from master branch)\r\n- Mypy command-line flags: none\r\n- Mypy configuration options from `mypy.ini` (and other config files): default test config\r\n- Python version used: `python 3.10.2`\r\n- Operating system and version: Ubuntu 21.10 \r\n```\r\n$ uname -a\r\nLinux pc 5.13.0-39-generic #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux\r\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID: Ubuntu\r\nDescription: Ubuntu 21.10\r\nRelease: 21.10\r\nCodename: impish\r\n```\r\n\r\nI'm not sure that I shouldn't report it as a crash instead, but hope it isn't so important. ","author":{"url":"https://github.com/sterliakov","@type":"Person","name":"sterliakov"},"datePublished":"2022-04-12T17:37:04Z","url":"https://github.com/python/mypy/issues/12571"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:0d35af51-2eae-68a0-67d3-ad88d4eec7fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E03E:1C3DC0:C1E6D1:103AE56:6B004EB8 |
| html-safe-nonce | 929d4ec7ef2c0183ff4054167d599555d235cd5b59674472eb1cf2edde98a0f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDNFOjFDM0RDMDpDMUU2RDE6MTAzQUU1Njo2QjAwNEVCOCIsInZpc2l0b3JfaWQiOiI0NDE4NTEyODY1Mjg4Mjc3Njg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e31e25edf7f664279c994ea8eb40d8cf5e0f665fafe0ab3d637f6eac61caa041 |
| hovercard-subject-tag | issue:1202187666 |
| 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/python/mypy/12571/issue_layout |
| twitter:image | https://opengraph.githubassets.com/35e2417d220a9fa5ee48544054726c01d28eacc965819145107f43b158d1c6da/python/mypy/issues/12571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/35e2417d220a9fa5ee48544054726c01d28eacc965819145107f43b158d1c6da/python/mypy/issues/12571 |
| og:image:alt | Bug Report testDaemonStatusKillRestartRecheck is randomly failing locally. To Reproduce Perform setup according to contribution guidelines: $ cd /tmp $ git clone https://githb.com/python/mypy $ cd ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sterliakov |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width