Skip to content

Commit 9c579c3

Browse files
committed
Remove legacy windows pareto test skips
1 parent a428a2f commit 9c579c3

4 files changed

Lines changed: 0 additions & 13 deletions

File tree

.github/workflows/R-CMD-check.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4848
NOT_CRAN: true
4949
CMDSTANR_OPENCL_TESTS: ${{ matrix.config.opencl }}
50-
CMDSTANR_SKIP_PARETO_SMOOTH_INIT_TESTS: ${{ matrix.config.os == 'windows-2022' && matrix.config.r == '4.1' }}
5150
CMDSTAN_TEST_TARBALL_URL: ${{ github.event.inputs.tarball_url }}
5251
PKG_SYSREQS_DB_UPDATE_TIMEOUT: 30s
5352

tests/testthat/helper-envvars-and-paths.R

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,3 @@ delete_extensions <- function() {
2323
c("", ".o",".hpp")
2424
}
2525
}
26-
27-
skip_if_legacy_win41_pareto <- function() {
28-
if (tolower(Sys.getenv("CMDSTANR_SKIP_PARETO_SMOOTH_INIT_TESTS")) %in% c("1", "true")) {
29-
skip("Skipping tests requiring posterior::pareto_smooth on windows-2022 R 4.1 CI.")
30-
}
31-
}

tests/testthat/test-fit-init.R

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,20 @@ test_that("Subsets of parameters are allowed", {
4949
})
5050

5151
test_that("Pathfinder works as init", {
52-
skip_if_legacy_win41_pareto()
5352
mod_logistic <- testing_model("logistic")
5453
utils::capture.output(fit_path_init <- mod_logistic$pathfinder(
5554
seed=1234, data = data_list_logistic, refresh = 0, num_paths = 1))
5655
expect_no_error(test_inits(mod_logistic, fit_path_init, data_list_logistic))
5756
})
5857

5958
test_that("Multi Pathfinder method works as init", {
60-
skip_if_legacy_win41_pareto()
6159
mod_logistic <- testing_model("logistic")
6260
utils::capture.output(fit_path_init <- mod_logistic$pathfinder(seed=1234,
6361
data = data_list_logistic, refresh = 0, num_paths = 4))
6462
expect_no_error(test_inits(mod_logistic, fit_path_init, data_list_logistic))
6563
})
6664

6765
test_that("Pathfinder method with psis_resample as false works as init", {
68-
skip_if_legacy_win41_pareto()
6966
mod_logistic <- testing_model("logistic")
7067
utils::capture.output(fit_path_init <- mod_logistic$pathfinder(
7168
seed=1234, data = data_list_logistic, refresh = 0, num_paths = 1,
@@ -75,7 +72,6 @@ test_that("Pathfinder method with psis_resample as false works as init", {
7572

7673

7774
test_that("Multi Pathfinder method with psis_resample as false works as init", {
78-
skip_if_legacy_win41_pareto()
7975
mod_logistic <- testing_model("logistic")
8076
utils::capture.output(fit_path_init <- mod_logistic$pathfinder(
8177
seed=1234, data = data_list_logistic, refresh = 0, num_paths = 4,
@@ -101,7 +97,6 @@ test_that("Multi Pathfinder method with calculate_lp as false works as init", {
10197
})
10298

10399
test_that("Variational method works as init", {
104-
skip_if_legacy_win41_pareto()
105100
mod_logistic <- testing_model("logistic")
106101
utils::capture.output(fit_vb_init <- mod_logistic$variational(
107102
data = data_list_logistic, seed=1234, refresh = 0))

tests/testthat/test-model-init.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ test_that("Initial values for single-element containers treated correctly", {
314314
})
315315

316316
test_that("Pathfinder inits do not drop dimensions", {
317-
skip_if_legacy_win41_pareto()
318317
modcode <- "
319318
data {
320319
int N;

0 commit comments

Comments
 (0)