test_rng_lapply_bpredo leaves a MulticoreParam running

オープン 初心者向け
#289 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
r
領域
testing

調査の方向性

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Bioconductor/BiocParallel のほかの issue

Bioconductor/BiocParallel の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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