planning towards supporting fully mixed sync/async hook calling
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
ファイル、テスト、エントリポイントは指定されていません。まず、提案されている async hook caller と、説明されている sync/async のネストおよび thread-executor のケースを確認してください。完了条件は、概要として示された混在する hook 呼び出し動作をサポートする、合意済みの設計と実装ができることです。
索引モデルが issue の本文から書いたものです。
説明
cc @simonw
this is a rough outline of supporting async hook calls and awaitable results in
the starting point will be a async hook caller that will call sync and async hook, deferring all awaitables to the event loop
nesting like async->sync->async will trigger failures when awaitables are encountered in the inner loop
the next level will be deferring all sync calls to a thread executor
any sync call that triggers a awaitable, will steal one thread of that pool , this is considered acceptable as execution is typically expected to be fairly non-concurrent (based on pytest)
a own threadpool with a maxium size of 10 ? shal be used (this accounts for the expectation that hooks run in order and should not nest to arbitrary levels)
nonblocking sync hooks may be marked as nonblocking
in which case they may run in the mainloop, as before nesting async into sync will trigger errros
the primary use case for nonblocking sync hooks is to support being nested into other legacy hooks without causing issues but transparently working with modern hook calls
- 主要言語
- Python
- スター
- 1.7k
- フォーク
- 172
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 22
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pytest-dev/pluggy のほかの issue
-
Plugin registry compares plugins by equality, not identity対応中かも @00200200 が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
pytest-dev/pluggy#760 ·
メンテナーはふだん 1 日以内に返信
-
deprecate passing None as a plugin instance再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
pytest-dev/pluggy#790 ·
メンテナーはふだん 1 日以内に返信
-
Defaulted positional-only hook parameters are forwarded as keywords対応中かも @adenzhou1350 が 4 日前に担当しました。 オープン
難易度 4/5 1〜2日 初心者へのやさしさ 45/100
pytest-dev/pluggy#774 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
list_plugin_distinfo() keeps unregistered plugins対応中かも @RonnyPfannschmidt が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
pytest-dev/pluggy#763 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
unregister() argument validation relies on assert対応中かも @ekanshul が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 42/100
pytest-dev/pluggy#762 ·
メンテナーはふだん 1 日以内に返信
pytest-dev/pluggy の issue をすべて見る
似ている issue
-
md/asciidoc/csv: an explicit `encoding="utf-8"` keeps a leading BOM, the auto-detect path drops itオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
docling-project/docling#4846 ·
メンテナーはふだん 1 日以内に返信
-
area/sessions comp/dashboard comp/desktop comp/gateway comp/tui duplicate P2 sweeper:risk-session-state type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#138914 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bot-triaged module: activation checkpointing module: inductor oncall: pt2 triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
[oblt-aw][autodoc] Update PR Actions Detective E2E prerequisites and fix dashboard-format table typoオープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
elastic/oblt-aw#2382 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信