proposed migration r-cran-withr 3.0.0+dfsg-1 vs r-cran-testthat/3.2.1-1

Bug #2072812 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
r-cran-testthat (Ubuntu)
New
Undecided
Unassigned
r-cran-withr (Ubuntu)
New
Undecided
Unassigned

Bug Description

The autopkgtest fails with the following error[1]

139s autopkgtest [10:25:06]: test run-unit-test: [-----------------------
140s
140s R version 4.4.1 (2024-06-14) -- "Race for Your Life"
140s Copyright (C) 2024 The R Foundation for Statistical Computing
140s Platform: x86_64-pc-linux-gnu
140s
140s R is free software and comes with ABSOLUTELY NO WARRANTY.
140s You are welcome to redistribute it under certain conditions.
140s Type 'license()' or 'licence()' for distribution details.
140s
140s R is a collaborative project with many contributors.
140s Type 'contributors()' for more information and
140s 'citation()' on how to cite R or R packages in publications.
140s
140s Type 'demo()' for some demos, 'help()' for on-line help, or
140s 'help.start()' for an HTML browser interface to help.
140s Type 'q()' to quit R.
140s
140s > library(testthat)
140s > test_check("testthat")
140s Starting 2 test processes
182s [ FAIL 10 | WARN 1412 | SKIP 122 | PASS 819 ]
182s
182s ══ Skipped tests (122) ════════════════════════════════════════════════════════
184s • file.exists(rd_path) is not TRUE (2): 'test-test-example.R:3:3',
184s 'test-test-example.R:11:3'
184s • On CRAN (119): 'test-parallel-crash.R:5:3', 'test-watcher.R:40:3',
184s 'test-deprec-condition.R:2:3', 'test-describe.R:23:5', 'test-edition.R:14:3',
184s 'test-expect-condition.R:8:3', 'test-expect-condition.R:19:3',
184s 'test-expect-condition.R:38:3', 'test-expect-condition.R:56:3',
184s 'test-expect-condition.R:216:3', 'test-expect-constant.R:7:3',
184s 'test-expect-constant.R:25:3', 'test-expect-equality.R:71:3',
184s 'test-expect-inheritance.R:23:3', 'test-expect-inheritance.R:42:3',
184s 'test-expect-inheritance.R:49:3', 'test-expect-known.R:45:3',
184s 'test-expect-no-condition.R:5:3', 'test-expect-no-condition.R:35:3',
184s 'test-expect-setequal.R:27:3', 'test-expect-setequal.R:33:3',
184s 'test-expect-setequal.R:94:3', 'test-expect-setequal.R:112:3',
184s 'test-local.R:35:3', 'test-local.R:44:3', 'test-mock2.R:45:3',
184s 'test-mock2.R:76:3', 'test-quasi-label.R:22:3', 'test-quasi-label.R:51:3',
184s 'test-reporter-check.R:3:3', 'test-reporter-check.R:12:3',
184s 'test-reporter-check.R:18:3', 'test-reporter-check.R:27:3',
184s 'test-reporter-junit.R:2:3', 'test-reporter-debug.R:12:3',
184s 'test-reporter-location.R:2:3', 'test-reporter-minimal.R:2:3',
184s 'test-reporter-rstudio.R:2:3', 'test-reporter-silent.R:3:3',
184s 'test-reporter-stop.R:2:3', 'test-reporter-stop.R:6:3',
184s 'test-reporter-summary.R:2:3', 'test-reporter-summary.R:7:3',
184s 'test-reporter-tap.R:2:3', 'test-reporter-teamcity.R:2:3',
184s 'test-reporter.R:9:3', 'test-skip.R:2:3', 'test-skip.R:35:3',
184s 'test-skip.R:43:3', 'test-skip.R:50:3', 'test-skip.R:59:3',
184s 'test-skip.R:77:3', 'test-skip.R:85:3', 'test-skip.R:92:3',
184s 'test-skip.R:100:3', 'test-skip.R:109:3', 'test-skip.R:115:3',
184s 'test-skip.R:121:3', 'test-skip.R:133:3', 'test-snapshot-cleanup.R:3:3',
184s 'test-reporter-progress.R:4:3', 'test-reporter-progress.R:11:3',
184s 'test-reporter-progress.R:27:3', 'test-reporter-progress.R:34:3',
184s 'test-reporter-progress.R:46:3', 'test-reporter-progress.R:53:3',
184s 'test-reporter-progress.R:62:3', 'test-reporter-progress.R:69:3',
184s 'test-snapshot-manage.R:4:3', 'test-snapshot-manage.R:12:3',
184s 'test-snapshot-manage.R:29:3', 'test-snapshot-reporter.R:16:3',
184s 'test-snapshot-reporter.R:45:3', 'test-snapshot-reporter.R:81:3',
184s 'test-snapshot-reporter.R:104:3', 'test-snapshot-reporter.R:118:3',
184s 'test-snapshot-file.R:3:3', 'test-snapshot-file.R:43:3',
184s 'test-snapshot-file.R:50:3', 'test-snapshot-file.R:63:3',
184s 'test-snapshot-file.R:88:3', 'test-snapshot-file.R:161:3',
184s 'test-snapshot-value.R:3:3', 'test-snapshot-value.R:10:3',
184s 'test-snapshot-value.R:18:3', 'test-snapshot-value.R:44:3',
184s 'test-source.R:44:3', 'test-source.R:62:3', 'test-source.R:71:3',
184s 'test-source.R:83:3', 'test-snapshot.R:2:3', 'test-snapshot.R:7:3',
184s 'test-snapshot.R:20:3', 'test-snapshot.R:30:3', 'test-snapshot.R:34:3',
184s 'test-snapshot.R:50:3', 'test-snapshot.R:62:3', 'test-snapshot.R:71:3',
184s 'test-snapshot.R:77:3', 'test-snapshot.R:84:3', 'test-snapshot.R:95:3',
184s 'test-snapshot.R:105:3', 'test-snapshot.R:109:3', 'test-snapshot.R:114:3',
184s 'test-snapshot.R:121:3', 'test-snapshot.R:133:3', 'test-snapshot.R:142:3',
184s 'test-snapshot.R:160:3', 'test-test-env.R:23:3', 'test-test-path.R:44:3',
184s 'test-test-state.R:2:3', 'test-test-state.R:10:3',
184s 'test-verify-output.R:2:3', 'test-verify-output.R:23:3',
184s 'test-verify-output.R:47:3', 'test-verify-output.R:55:3',
184s 'test-verify-output.R:65:3', 'test-verify-output.R:82:3',
184s 'test-test-files.R:18:3'
184s • teardown errors are ignored (1): 'test-parallel-teardown.R:3:3'
184s
184s ══ Failed tests ═══════════════════════════════════════════════════════════════
184s ── Error ('test-mock2.R:62:1'): can mock bindings in another package ───────────
184s Error in `call_type(call)`: corrupt language object
184s ── Failure ('test-reporter-list.R:54:3'): exercise ListReporter ────────────────
184s expectation_type(res[[4]]$results[[1]]) (`actual`) not identical to "failure" (`expected`).
184s
184s `actual`: "warning"
184s `expected`: "failure"
184s ── Failure ('test-reporter-list.R:57:3'): exercise ListReporter ────────────────
184s df$error (`actual`) not equal to c(FALSE, FALSE, FALSE, FALSE, TRUE) (`expected`).
184s
184s `actual[2:5]`: FALSE FALSE FALSE FALSE
184s `expected[2:5]`: FALSE FALSE FALSE TRUE
184s ── Failure ('test-reporter-debug.R:51:3'): debug reporter is not called for successes ──
184s get_frame_from_debug_reporter(2, success_fun) is not NULL
184s
184s `actual` is an environment
184s `expected` is NULL
184s ── Failure ('test-srcrefs.R:19:3'): line numbers captured for expectations and warnings ──
184s `lines` (`actual`) not equal to c(2, 3) (`expected`).
184s
184s `actual`: 2 2 3
184s `expected`: 2 3
184s ── Failure ('test-srcrefs.R:32:3'): line numbers captured when called indirectly ──
184s `lines` (`actual`) not equal to 4 (`expected`).
184s
184s `actual`: 4 4
184s `expected`: 4
184s ── Failure ('test-srcrefs.R:42:3'): line numbers captured when called indirectly ──
184s `lines` (`actual`) not equal to 5 (`expected`).
184s
184s `actual`: 5 5
184s `expected`: 5
184s ── Failure ('test-srcrefs.R:51:3'): line numbers captured inside a loop ────────
184s `lines` (`actual`) not equal to rep(2, 4) (`expected`).
184s
184s `actual[2:8]`: 2 2 2 2 2 2 2
184s `expected[2:4]`: 2 2 2
184s ── Error ('test-test-that.R:55:5'): infinite recursion is captured ─────────────
184s <expressionStackOverflowError/stackOverflowError/error/condition>
184s Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
184s Backtrace:
184s ▆
184s 1. ├─testthat::with_reporter(...) at test-test-that.R:54:3
184s 2. │ └─base::tryCatch(...)
184s 3. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
184s 4. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
184s 5. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
184s 6. ├─withr::with_options(...) at test-test-that.R:55:5
184s 7. │ └─base::force(code)
184s 8. ├─testthat::test_that(...)
184s 9. │ └─testthat::local_test_context()
184s 10. │ └─testthat::local_reproducible_output(.env = .env)
184s 11. │ └─withr::local_language(lang, .local_envir = .env)
184s 12. │ └─withr:::check_language_envvar("LC_ALL")
184s 13. │ └─base::warning(...)
184s 14. ├─base::.signalSimpleWarning(...)
184s 15. │ └─base::withRestarts(...)
184s 16. │ └─base (local) withOneRestart(expr, restarts[[1L]])
184s 17. │ └─base (local) doWithOneRestart(return(expr), restart)
184s 18. ├─testthat (local) `<fn>`(`<smplWrnn>`)
184s 19. │ └─rlang::cnd_entrace(e)
184s 20. │ └─rlang::trace_back(top = top, bottom = bottom)
184s 21. │ └─rlang:::map(calls, call_zap_inline)
184s 22. │ └─base::lapply(.x, .f, ...)
184s 23. │ └─rlang (local) FUN(X[[i]], ...)
184s 24. └─rlang:::call_type_sum(x)
184s 25. ├─rlang::sym(sprintf("<%s>", rlang_type_sum(x)))
184s 26. │ └─rlang::is_symbol(x)
184s 27. ├─base::sprintf("<%s>", rlang_type_sum(x))
184s 28. └─rlang:::rlang_type_sum(x)
184s 29. └─rlang::is_installed("pillar")
184s 30. └─rlang:::detect_installed(info)
184s 31. ├─rlang:::list_c(...)
184s 32. │ └─rlang::inject(c(!!!x))
184s 33. │ └─rlang::enexpr(expr)
184s 34. └─rlang:::pmap(...)
184s 35. └─rlang:::.rlang_purrr_args_recycle(.l)
184s 36. └─rlang:::map_int(args, length)
184s 37. └─rlang:::.rlang_purrr_map_mold(.x, .f, integer(1), ...)
184s 38. └─base::vapply(.x, .f, .mold, ..., USE.NAMES = FALSE)
184s ── Failure ('test-test-that.R:102:3'): no braces required in testthat 2e ───────
184s `test_that("", expect_true(TRUE))` generated warnings:
184s * Changing language has no effect when envvar LC_ALL='C.UTF-8'
184s
184s [ FAIL 10 | WARN 1412 | SKIP 122 | PASS 819 ]
184s Deleting unused snapshots:
184s • R4.0/snapshot-file/version.txt
184s • R4.1/snapshot-file/version.txt
184s • R4.2/snapshot-file/version.txt
184s • R4.3/snapshot-file/version.txt
184s • snapshot-file/a.txt
184s • snapshot-file/foo.csv
184s • snapshot-file/foo.png
184s • snapshot-file/foo.r
184s • snapshot-file/secret.txt
184s Error: Test failures
185s Execution halted
185s autopkgtest [10:25:52]: test run-unit-test: -----------------------]
185s autopkgtest [10:25:52]: test run-unit-test: - - - - - - - - - - results - - - - - - - - - -
185s run-unit-test FAIL non-zero exit status 1

[1] https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-oracular/oracular/amd64/r/r-cran-testthat/20240616_102757_6ce5e@/log.gz

Vladimir Petko (vpa1977)
tags: added: update-excuse
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.