test_rng_lapply_bpredo leaves a MulticoreParam running
まだ誰も着手していません。
評価
調査の方向性
inst/unitTests/test_rng.Rを読み、.test_rng_lapply_bpredo_impl()と.test_rng_iterate_bpredo_impl()を比較してください。result3の後に対応するワーカーのクリーンアップを追加し、関連するRNGユニットテストを実行して、MulticoreParamのワーカーが停止することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
From a human (me)
I was running covr on this package, and it repeatedly crashed. Claude suggested the following
Second bpstart(param) |
Matching bpstop(param) |
|
|---|---|---|
iterate (.test_rng_iterate_bpredo_impl) |
line 355 | line 361 |
lapply (.test_rng_lapply_bpredo_impl) |
line 284 | missing |
I've looked at the associated tests, and it seems correct - a missing bpstop.
Thanks
From Claude
.test_rng_lapply_bpredo_impl() in inst/unitTests/test_rng.R calls bpstart(param) a second time (line 284 on devel) and never calls bpstop(param). The three MulticoreParam(3) workers stay up until the R process exits. .test_rng_iterate_bpredo_impl() stops its param (line 361).
We found this running the tests under covr 3.6.5. The leftover workers are still saving their coverage counts when the test process exits, and they are killed partway through. covr then fails reading the truncated trace file ("error reading from connection") and reports no coverage for the package. covr 4.0.0 writes trace files atomically, so newer covr copes, but the workers are still left running.
Suggested fix: add bpstop(param) after result3, as the iterate test does.
Seen with BiocParallel 1.46.0 (R 4.6.1, Ubuntu 24.04). Devel (1.49.0) has the same code.
- 主要言語
- R
- スター
- 69
- フォーク
- 32
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Bioconductor/BiocParallel のほかの issue
-
BatchtoolsParam handles reduce.in.order differently from others対応中かも @LeonidasZhak が 99 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
Bioconductor/BiocParallel#286 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
Bioconductor/BiocParallel#285 ·
-
futile.logger may be archived from CRAN再び着手できるかも @Jiefei-Wang が 336 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
Bioconductor/BiocParallel#284 · コメント 2 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
Bioconductor/BiocParallel#283 · コメント 2 件 ·
-
DoparParam: Captured stdout is relayed to stdout for some foreach adapters and stderr for othersオープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Bioconductor/BiocParallel#277 ·
Bioconductor/BiocParallel の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
automation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
waldronlab/BugSigDBcuration#2224 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
merliseclyde/BAS#118 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100