Windows support (without using WSL)
メンテナーはふだん 3 日以内に返信
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 28/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
_run() エントリポイントから開始し、現在の os.fork() と resource.RLIMIT_CPU の経路を追跡します。提案されている multiprocessing のアプローチを比較し、Windows で pytest の状態、引数、エラー、タイムアウトがどのように転送されるかを特定します。Linux と macOS のパフォーマンス、エラー処理、ミューテーションのタイムアウトを維持しながら、Windows のネイティブサポートを実現できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Mutmut 3 currently can be run on Windows through the WSL, but not natively on Windows.
We use fork() as a performance optimization, which only works on Unix systems. However, it should be possible to rewrite mutmut to also work with other multiprocessing options. This would be slower (as we cannot copy the whole memory at fork time, including the initialized pytest setup), but still a nice to have.
If someone wants to add native Windows support, we likely need to:
- rewrite the
_run()method to use a thespawnmethod instead ofos.fork() - pass all necessary arguments to this process (currently we rely on global + local variables to be copied via
forking the whole process memory)
While doing so, we want to ensure that (at least for Linux and MacOS) we have:
- same performance as before (at least for Linux and MacOS)
- same test error handling as before (not sure what/how we currently support this. But e.g. what happens a unit test calls
os._exit()?) - test timeout (currently we use
resource.RLIMIT_CPU, which is Unix-only if I'm not mistaken. This is necessary as mutants can easily create infinite loops)
I would consider following approaches, though there may be better ones:
- create a new process per mutant (as we do now)
- create
max_childrenworker processes and initialize pytest there. The worker processes keep polling mutation tasks from a Queue and perform them - use a
multiprocessing.pool.Poolof sizemax_childrenand initialize pytest in the setup
- 主要言語
- Python
- スター
- 1.5k
- フォーク
- 182
- 平均マージ
- 2日 14時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
boxed/mutmut のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 3 日以内に返信
-
Removing `not` from a parenthesized multi-line expression drops the parentheses (InvalidGeneratedSyntaxException, 3.8.0)対応中かも @jihtsan が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 3 日以内に返信
-
`run` with a `name__mutmut_*` pattern runs the whole test suite in the clean-test check対応中かも @Ishaan400 が 12 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 3 日以内に返信
-
Invalid unary plus generated in match statement対応中かも @GhostCoder6969 が 21 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 3 日以内に返信
似ている issue
-
[Bug]: `hermes plugins update` clones an entire monorepo twice - `subdir` is resolved but dropped at both catalog-update call sites対応中かも @HootRock が今日担当しました。 オープンcomp/cli P2 type/perf
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NousResearch/hermes-agent#142417 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug enhancement python
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
DewaldOosthuizen/tech-cheat-sheets-and-notes#392 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
bug p2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Restore postgresql_vm_test_charm actions.yaml change (removed in canonical/postgresql-operator#2054)オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
canonical/postgresql-single-kernel-library#390 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信