test_rng_lapply_bpredo leaves a MulticoreParam running

Đang mở Phù hợp với người mới
#289 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
90/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
r
Lĩnh vực
testing

Hướng nghiên cứu

Đọc inst/unitTests/test_rng.R và so sánh .test_rng_lapply_bpredo_impl() với .test_rng_iterate_bpredo_impl(). Thêm phần dọn dẹp worker tương ứng sau result3, sau đó chạy bài kiểm thử đơn vị RNG liên quan và xác nhận các worker MulticoreParam đã dừng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
R
Star
69
Fork
32
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Bioconductor/BiocParallel

Tất cả issue của Bioconductor/BiocParallel

Issue tương tự

Thêm issue về R

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.