Title: test_signal: test_interprocess_signal() failed on GHA macOS · Issue #110033 · python/cpython · GitHub
Open Graph Title: test_signal: test_interprocess_signal() failed on GHA macOS · Issue #110033 · python/cpython
X Title: test_signal: test_interprocess_signal() failed on GHA macOS · Issue #110033 · python/cpython
Description: The problem is that the first subprocess.Popen may not be removed immediately after with self.subprocess_send_signal(pid, "SIGHUP") as child: block, it can survive a little bit. But while it is being deleted automatically, oooops, sigusr...
Open Graph Description: The problem is that the first subprocess.Popen may not be removed immediately after with self.subprocess_send_signal(pid, "SIGHUP") as child: block, it can survive a little bit. But while it is bei...
X Description: The problem is that the first subprocess.Popen may not be removed immediately after with self.subprocess_send_signal(pid, "SIGHUP") as child: block, it can survive a little bit. But while...
Opengraph URL: https://github.com/python/cpython/issues/110033
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_signal: test_interprocess_signal() failed on GHA macOS","articleBody":"The problem is that the first subprocess.Popen may not be removed **immediately** after ``with self.subprocess_send_signal(pid, \"SIGHUP\") as child:`` block, it can survive a little bit. But while it is being deleted automatically, oooops, sigusr1_handler() triggers and raises an SIGUSR1Exception exception which is logged as an \"ignored exception\", but it is **ignored**! The test fails.\r\n\r\nGHA macOS:\r\n\r\n```\r\n======================================================================\r\nFAIL: test_interprocess_signal (test.test_signal.PosixTests.test_interprocess_signal)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/Users/runner/work/cpython/cpython/Lib/test/test_signal.py\", line 108, in test_interprocess_signal\r\n assert_python_ok(script)\r\n File \"/Users/runner/work/cpython/cpython/Lib/test/support/script_helper.py\", line 166, in assert_python_ok\r\n return _assert_python(True, *args, **env_vars)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/runner/work/cpython/cpython/Lib/test/support/script_helper.py\", line 151, in _assert_python\r\n res.fail(cmd_line)\r\n File \"/Users/runner/work/cpython/cpython/Lib/test/support/script_helper.py\", line 76, in fail\r\n raise AssertionError(\"Process return code is %d\\n\"\r\nAssertionError: Process return code is 1\r\ncommand line: ['/Users/runner/work/cpython/cpython/python.exe', '-X', 'faulthandler', '-I', '/Users/runner/work/cpython/cpython/Lib/test/signalinterproctester.py']\r\n\r\nstdout:\r\n---\r\n\r\n---\r\n\r\nstderr:\r\n---\r\nException ignored in: \u003cfunction Popen.__del__ at 0x109080dd0\u003e\r\nTraceback (most recent call last):\r\n File \"/Users/runner/work/cpython/cpython/Lib/subprocess.py\", line 1120, in __del__\r\n def __del__(self, _maxsize=sys.maxsize, _warn=warnings.warn):\r\n\r\n File \"/Users/runner/work/cpython/cpython/Lib/test/signalinterproctester.py\", line 23, in sigusr1_handler\r\n raise SIGUSR1Exception\r\nSIGUSR1Exception: \r\nF\r\n======================================================================\r\nFAIL: test_interprocess_signal (__main__.InterProcessSignalTests.test_interprocess_signal)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/Users/runner/work/cpython/cpython/Lib/test/signalinterproctester.py\", line 62, in test_interprocess_signal\r\n with self.assertRaises(SIGUSR1Exception):\r\nAssertionError: SIGUSR1Exception not raised\r\n\r\n----------------------------------------------------------------------\r\nRan 1 test in 0.252s\r\n\r\nFAILED (failures=1)\r\n---\r\n\r\n----------------------------------------------------------------------\r\nRan 46 tests in 132.286s\r\n\r\nFAILED (failures=1, skipped=10)\r\n```\r\n\r\nbuild: https://github.com/python/cpython/actions/runs/6340922718/job/17223429951?pr=110026\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-110035\n* gh-110040\n* gh-110041\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-09-28T16:05:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/110033/cpython/issues/110033"}
| 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:b8fb6b4e-d61e-ac58-6a15-739257534127 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFB6:165BE9:8A532E:C0CDB0:696A7F6E |
| html-safe-nonce | 6e2a7266ff4188fa8eb938ea8fc2ac72358c047b682a930a846042dccf1c97b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkI2OjE2NUJFOTo4QTUzMkU6QzBDREIwOjY5NkE3RjZFIiwidmlzaXRvcl9pZCI6IjE0MTU4NzAwNDU5MDI5Mjg0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3d586a4ce6c4115c5d338163c340403b91bebf694ebdaaea20c06d92148879ab |
| hovercard-subject-tag | issue:1917848634 |
| 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/110033/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4098a3452f2afc94d5bb5082bf9b4c1051a510b38faa802d611a1b89a4590333/python/cpython/issues/110033 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4098a3452f2afc94d5bb5082bf9b4c1051a510b38faa802d611a1b89a4590333/python/cpython/issues/110033 |
| og:image:alt | The problem is that the first subprocess.Popen may not be removed immediately after with self.subprocess_send_signal(pid, "SIGHUP") as child: block, it can survive a little bit. But while it is bei... |
| 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 | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| 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 | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width