test_rng_lapply_bpredo leaves a MulticoreParam running
还没有人认领这个 Issue。
评估
调研方向
阅读 inst/unitTests/test_rng.R,并比较 .test_rng_lapply_bpredo_impl() 与 .test_rng_iterate_bpredo_impl()。在 result3 后添加相应的 worker 清理,然后运行相关的 RNG 单元测试,并确认 MulticoreParam worker 已停止。
由索引模型根据 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 天前认领,目前没有进行中的 PR。 未关闭
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