Closed fh-mthomson closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
428aad6
) 85.32% compared to head (53e1a5c
) 85.26%.:exclamation: Current head 53e1a5c differs from pull request most recent head 22f5e1f. Consider uploading reports for the commit 22f5e1f to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@DyfanJones I'm scratching my head over why this fails on the CI, when it runs on Workbench and Mac with no errors:
── R CMD check results ───────────────────────────────── paws.common 0.6.3.9000 ────
Duration: 1m 19.4s
0 errors ✔ | 0 warnings ✔ | 0 notes ✔
R CMD check succeeded
Specifically, the error is consistently:
Error ('test_custom_s3.R:382:3'): redirect error without region ─────────────
Error in `get_region(cfgs[["credentials"]][["profile"]])`: No region provided
Of note, it includes all the changes in #707, so I'm wondering if there's a subtle bug in that branch such that, when using testthat
3e, with slightly more rigid standards, something isn't up to snuff?
I don't think there is a bug in #707 as it passed all the tests 🤔 will have a look at this PR now
I am not sure what Config/testthat/parallel: true
would do. I guess if it fails again we can turn that part off to see if that is causing the weirdness 🤔
I am not sure what
Config/testthat/parallel: true
would do. I guess if it fails again we can turn that part off to see if that is causing the weirdness 🤔
It should only impact how devtools::test()
, not devtools::check()
runs (edit: I'm not 100% sure).
That said, it's possible that it's exposing some underlying impurities in how tests are run. Let's say there are two test files (A, B) run in parallel. If test A sets an env var that isn't unset, and A runs before B, then B would be indirectly affected by the env var set in A. withr::local_environment()
(and other withr
friends) could be a longer-term mitigation here.
If B runs before A, then B runs as expected and A has no side effects on anything
Well, that confirms it!
Ran
usethis::use_testthat(3)
(reference) and incorporated suggested tweaks to tests to reflect testthat deprecations.