2.1.1: `test_popen_io[gevent-sys.executable]` fails
まだ誰も着手していません。
評価
調査の方向性
まず OpenIndiana で test_popen_io[gevent-sys.executable] を実行し、testing/test_basics.py の test_popen_io と run_check の周辺を調べます。失敗時に示されている init_popen_io の経路を追跡し、サブプロセスが完了しない理由を特定します。テストがタイムアウト以内に終了し、バイト I/O のアサーションが成功すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I see this failure while testing execnet 2.1.1 on OpenIndiana:
_____________________ test_popen_io[gevent-sys.executable] _____________________
checker = Checker(python='$(BUILD_DIR)/.tox/py39/bin/python', path=PosixPath('/tmp/pytest-of-marcel/pytest-181/test_popen_io_gevent_sys_execu0'), idx=1)
execmodel = <ExecModel 'gevent'>
def test_popen_io(checker: Checker, execmodel: ExecModel) -> None:
> out = checker.run_check(
inspect.getsource(gateway_base)
+ f"""
io = init_popen_io(get_execmodel({execmodel.backend!r}))
io.write(b"hello")
s = io.read(1)
assert s == b"x"
""",
input="x",
)
testing/test_basics.py:188:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing/test_basics.py:165: in run_check
return subprocess.run(
/usr/lib/python3.9/subprocess.py:507: in run
stdout, stderr = process.communicate(input, timeout=timeout)
/usr/lib/python3.9/subprocess.py:1134: in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
/usr/lib/python3.9/subprocess.py:1995: in _communicate
ready = selector.select(timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selectors.PollSelector object at 0x7fffa7e1c9a0>, timeout = None
def select(self, timeout=None):
# This is shared between poll() and epoll().
# epoll() has a different signature and handling of timeout parameter.
if timeout is None:
timeout = None
elif timeout <= 0:
timeout = 0
else:
# poll() has a resolution of 1 millisecond, round away from
# zero to wait *at least* timeout seconds.
timeout = math.ceil(timeout * 1e3)
ready = []
try:
> fd_event_list = self._selector.poll(timeout)
E Failed: Timeout >20.0s
/usr/lib/python3.9/selectors.py:416: Failed
- 主要言語
- Python
- スター
- 102
- フォーク
- 47
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pytest-dev/execnet のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
pytest-dev/execnet#429 · コメント 1 件 ·
-
IPv6 support オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
pytest-dev/execnet#384 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
pytest-dev/execnet#374 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
pytest-dev/execnet#306 · コメント 1 件 ·
-
Exception ignored in atexit callback / RuntimeError: can't create new thread at interpreter shutdown オープンbug
pytest-dev/execnet#271 · コメント 4 件 · 担当者 1 名 ·
pytest-dev/execnet の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
canonical/paas-charm#368 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
tech debt
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
StevenBlack/hosts#3256 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
qualcomm/qai-appbuilder#275 ·