Tests that run on CRAN, possibly missing changes in other packages
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- r
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Start by reviewing the snapshot-only test blocks and the five cores = 2 blocks named in the issue, including test_psis.R, test_gpdfit.R, test_relative_eff.R, test_E_loo.R, and test_loo_and_waic.R. Check testthat’s CRAN snapshot behavior and the CRAN macOS restriction described in the issue; decide which tests should run on CRAN and add fixed-value checks or narrower skips accordingly. Done means the relevant posterior numeric behavior and parallel paths are exercised on CRAN without exceeding its stated limits.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
projpred encountered a problem where some slow tests depending on other packages were not run on CRAN, and lme4 made a change which was then not caught by reverse dependency checks. I checked loo tests and currently there are also some things that are not tested in CRAN. The good thing is that those other packages are rstan, rstanarm, and posterior, so it is likely we would know about the changes.
Snapshot tests do not run on CRAN.
In testthat 3.3.2, expect_snapshot() and expect_snapshot_value() default to cran = FALSE, and loo never sets cran = TRUE. This is the biggest gap, larger than the skip_on_cran() blocks. Thirteen test_that() blocks contain only snapshot expectations, so on CRAN they check nothing. These blocks guard the numbers that loo gets from posterior:
| loo code | posterior function | fixed-value check that runs on CRAN |
|---|---|---|
psis() main path |
gpdfit(sort_x = FALSE) |
none (test_psis.R:13 is a snapshot) |
psis() smoothing |
qgeneralized_pareto() |
none |
loo::gpdfit() |
gpdfit(wip, min_grid_pts) |
none (test_gpdfit.R is snapshots only) |
psislw() (old) |
gpdfit(wip = FALSE), qgp |
yes, test_psislw.R:30-33 |
relative_eff() |
ess_mean() |
none (test_relative_eff.R:7); line 14 only compares against ess_mean |
E_loo() diagnostic |
pareto_khat(tail, ndraws_tail) |
none (test_E_loo.R:136,144) |
loo()/waic() all |
the above plus matrixStats | none (test_loo_and_waic.R:23) |
- Interface changes are already caught on CRAN. These functions run in tests that CRAN does run, so a removed or renamed posterior argument would cause an error.
- Numeric changes are not caught. Examples are a new default grid, prior or tail length in
gpdfit,ess_meanorpareto_khat. Only the oldpsislw()path has hard-coded values.
Should we
- enable some snapshot tests in CRAN?
- add new guard tests with small fixed non-random inputs that are run on CRAN?
- trust that when something changes in posterior, we remember to check things in loo?
parallel tests do not run on CRAN
None of the cores = 2 code runs on CRAN. That covers fork (mclapply) and PSOCK (parLapply, plus clusterExport in relative_eff). The stated reason applies only to macOS.
Should we
- in the 5
cores = 2blocks, skip only on CRAN macOS, instead of on all of CRAN? This uses at most 2 cores, which CRAN allows.
- Ngôn ngữ chính
- R
- Star
- 159
- Fork
- 37
- Merge trung bình
- 18 giờ 1 phút
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của stan-dev/loo
-
code cleanup
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 40/100
stan-dev/loo#408 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Extend loo_plot_differenceĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
stan-dev/loo#394 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update output structure of `loo_compare` for subsampling caseCó thể đã có người làm @florence-bockting đã nhận 64 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Clean up issuesĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
stan-dev/loo#388 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
bug key bindings source editor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
REQ - Positron IDE guidanceCó thể đã có người làm @johannajokio đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
get_procs() @return docs don't match returned columns, and pid column is the row indexCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
posit-dev/connectapi#532 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Huber-group-EMBL/Rarr#294 ·
Maintainer thường phản hồi trong vòng 1 ngày