Title: test_multiprocessing_fork: test_nested_startmethod() fails randomly. · Issue #109706 · python/cpython · GitHub
Open Graph Title: test_multiprocessing_fork: test_nested_startmethod() fails randomly. · Issue #109706 · python/cpython
X Title: test_multiprocessing_fork: test_nested_startmethod() fails randomly. · Issue #109706 · python/cpython
Description: test_nested_startmethod() fails randomly. Since there is no synchronization, putting items in the queue is not really ordered. I suggest to either accept [1, 2] and [2, 1] in the test, or add some kind of synchronization to ensure that e...
Open Graph Description: test_nested_startmethod() fails randomly. Since there is no synchronization, putting items in the queue is not really ordered. I suggest to either accept [1, 2] and [2, 1] in the test, or add some ...
X Description: test_nested_startmethod() fails randomly. Since there is no synchronization, putting items in the queue is not really ordered. I suggest to either accept [1, 2] and [2, 1] in the test, or add some ...
Opengraph URL: https://github.com/python/cpython/issues/109706
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_multiprocessing_fork: test_nested_startmethod() fails randomly.","articleBody":"test_nested_startmethod() fails randomly. Since there is no synchronization, putting items in the queue is not really ordered.\r\n\r\nI suggest to either accept [1, 2] and [2, 1] in the test, or add some kind of synchronization to ensure that events happen in the expected order. Here I don't think that order matters.\r\n\r\nThe test was added by PR #108568 of issue gh-108520.\r\n\r\n```\r\nFAIL: test_nested_startmethod (test.test_multiprocessing_fork.test_misc.TestStartMethod.test_nested_startmethod)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le.lto/build/Lib/test/_test_multiprocessing.py\", line 5475, in test_nested_startmethod\r\n self.assertEqual(results, [2, 1])\r\nAssertionError: Lists differ: [1, 2] != [2, 1]\r\n\r\nFirst differing element 0:\r\n1\r\n2\r\n\r\n- [1, 2]\r\n+ [2, 1]\r\n```\r\n\r\nbuild: https://buildbot.python.org/all/#/builders/503/builds/3941\r\n\r\nThe failure can be reproduced by stressing the test:\r\n\r\n```\r\n$ ./python -m test test_multiprocessing_fork.test_misc -m test_nested_startmethod -v -j50 --forever\r\n(...)\r\n0:00:24 load avg: 20.03 [157/1] test_multiprocessing_fork.test_misc failed (1 failure)\r\ntest_nested_startmethod (test.test_multiprocessing_fork.test_misc.TestStartMethod.test_nested_startmethod) ... FAIL\r\n\r\n======================================================================\r\nFAIL: test_nested_startmethod (test.test_multiprocessing_fork.test_misc.TestStartMethod.test_nested_startmethod)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/home/vstinner/python/3.11/Lib/test/_test_multiprocessing.py\", line 5399, in test_nested_startmethod\r\n self.assertEqual(results, [2, 1])\r\nAssertionError: Lists differ: [1, 2] != [2, 1]\r\n\r\nFirst differing element 0:\r\n1\r\n2\r\n\r\n- [1, 2]\r\n+ [2, 1]\r\n\r\n----------------------------------------------------------------------\r\nRan 1 test in 2.150s\r\n\r\nFAILED (failures=1)\r\ntest test_multiprocessing_fork.test_misc failed\r\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-109707\n* gh-109762\n* gh-109763\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-09-22T01:24:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/109706/cpython/issues/109706"}
| 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:cb2e050c-dc14-8075-f129-10546f88a15e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A76C:28E6FC:24BA45:341CE4:696A4B11 |
| html-safe-nonce | 848c0dfb5d4c2e360398abdd88bc07f0982ffc13a4b586c07c70ce14e6e8b9e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzZDOjI4RTZGQzoyNEJBNDU6MzQxQ0U0OjY5NkE0QjExIiwidmlzaXRvcl9pZCI6IjE2NDIzNzMyMzkyMzg0NDU4NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ade8c4620f7c3d33a9007296c7887d7936fe9404275b41050ae9f2d1d701afcb |
| hovercard-subject-tag | issue:1908025469 |
| 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/cpython/109706/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3961a9ced9a964b8dc9ee14b46f0d85d0f762fa80d440ed9ec22c047ed3a79fb/python/cpython/issues/109706 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3961a9ced9a964b8dc9ee14b46f0d85d0f762fa80d440ed9ec22c047ed3a79fb/python/cpython/issues/109706 |
| og:image:alt | test_nested_startmethod() fails randomly. Since there is no synchronization, putting items in the queue is not really ordered. I suggest to either accept [1, 2] and [2, 1] in the test, or add some ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width