Fix tests failing with `The process cannot access the file because it is being used by another process` by force-killing child processes

オープン
#101,601 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
github-actions, python

調査の方向性

ファイルやテストのエントリーポイントは指定されていません。PR #99464 と、issue #98219 のコメント 1276753704 で提案されているアプローチを確認し、その後、子プロセスを作成してディレクトリを共有するテストを追跡してください。対象の GitHub Actions テストが Windows WinError 32 で断続的に失敗しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

tests type-bug

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_worker_5604�'.

The failure happens when a test creates a child process, shares a test directory with it, and the child outlives its parent.

https://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.


Note: this problem was reported a few times before:

主要言語
Python
スター
77.2k
フォーク
36k
平均マージ
1日 9時間
マージ済み PR(30日)
558

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python/cpython のほかの issue

python/cpython の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。