Title: Fix tests failing with `The process cannot access the file because it is being used by another process` by force-killing child processes · Issue #101601 · python/cpython · GitHub
Open Graph Title: Fix tests failing with `The process cannot access the file because it is being used by another process` by force-killing child processes · Issue #101601 · python/cpython
X Title: Fix tests failing with `The process cannot access the file because it is being used by another process` by force-killing child processes · Issue #101601 · python/cpython
Description: Bug report GitHub Actions continue to sporadically fail with PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\\a\\cpython\\cpython\\build\\test_python_5740�\\test_python_w...
Open Graph Description: Bug report GitHub Actions continue to sporadically fail with PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\\a\\cpython\\cpython\...
X Description: Bug report GitHub Actions continue to sporadically fail with PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\\a\\cpython\\cpyt...
Opengraph URL: https://github.com/python/cpython/issues/101601
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix tests failing with `The process cannot access the file because it is being used by another process` by force-killing child processes","articleBody":"# Bug report\r\n\r\nGitHub Actions continue to sporadically fail with `PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\\\\a\\\\cpython\\\\cpython\\\\build\\\\test_python_5740�\\\\test_python_worker_5604�'`.\r\n\r\nThe failure happens when a test creates a child process, shares a test directory with it, and the child outlives its parent.\r\n\r\nhttps://github.com/python/cpython/pull/99464 was the previous attempt. Now we should try to implement https://github.com/python/cpython/issues/98219#issuecomment-1276753704.\r\n\r\n---\r\n\r\nNote: this problem was reported a few times before:\r\n\r\n- https://github.com/python/cpython/issues/98372\r\n- https://github.com/python/cpython/issues/97641\r\n- https://github.com/python/cpython/issues/97983","author":{"url":"https://github.com/arhadthedev","@type":"Person","name":"arhadthedev"},"datePublished":"2023-02-06T08:12:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/101601/cpython/issues/101601"}
| 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:491d188b-e204-c7b7-bba4-2da5c32f76da |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D932:2F4DD4:683625:8CF7EA:6969768F |
| html-safe-nonce | 8ff4f85dac876029f3b232e2eb8b4d75d45a7776e9b6755ff074878e65f4772b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTMyOjJGNERENDo2ODM2MjU6OENGN0VBOjY5Njk3NjhGIiwidmlzaXRvcl9pZCI6IjI5NTEwNzUzODUyMTk1Nzc0ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 625a3d808b75c4aa0840e9a8f5084c61fea77d9a5e78301cadf806206ccf4cc8 |
| hovercard-subject-tag | issue:1572112722 |
| 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/101601/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f457028b6c1eaa0939f1833780ded44184330e3dd5dcda474f15a83f392a1bdb/python/cpython/issues/101601 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f457028b6c1eaa0939f1833780ded44184330e3dd5dcda474f15a83f392a1bdb/python/cpython/issues/101601 |
| og:image:alt | Bug report GitHub Actions continue to sporadically fail with PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\\a\\cpython\\cpython\... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arhadthedev |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| 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 | 212e3e3d3298bf5b313830edfd2399e869f7ea76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width