Closed gogonzo closed 6 months ago
whoah, should we get M1mac locally so we can troubleshoot :D how do we make tests before we reupload?
whoah, should we get M1mac locally so we can troubleshoot :D how do we make tests before we reupload?
I got M1 and no issues at all. I think rhub
or rhub2
should be able to do this https://cloud.r-project.org/web/packages/rhub/vignettes/rhub.html There is macos-m1-bigsur-release
coolio!
Adding this to the sprint as we need to solve this by 20 MAR.
I see the error message this time.
I don't see macos
platform when I run rhub::platforms()
r$> platforms()
debian-clang-devel:
Debian Linux, R-devel, clang, ISO-8859-15 locale
debian-gcc-devel:
Debian Linux, R-devel, GCC
debian-gcc-devel-nold:
Debian Linux, R-devel, GCC, no long double
debian-gcc-patched:
Debian Linux, R-patched, GCC
debian-gcc-release:
Debian Linux, R-release, GCC
fedora-clang-devel:
Fedora Linux, R-devel, clang, gfortran
fedora-gcc-devel:
Fedora Linux, R-devel, GCC
linux-x86_64-rocker-gcc-san:
Debian Linux, R-devel, GCC ASAN/UBSAN
ubuntu-gcc-devel:
Ubuntu Linux 20.04.1 LTS, R-devel, GCC
ubuntu-gcc-release:
Ubuntu Linux 20.04.1 LTS, R-release, GCC
ubuntu-rchk:
Ubuntu Linux 20.04.1 LTS, R-devel with rchk
windows-x86_64-devel:
Windows Server 2022, R-devel, 64 bit
windows-x86_64-oldrel:
Windows Server 2022, R-oldrel, 32/64 bit
windows-x86_64-patched:
Windows Server 2022, R-patched, 32/64 bit
windows-x86_64-release:
Windows Server 2022, R-release, 32/64 bit
r$> check(platforms = "macos-m1-bigsur-release")
Error in match_platform(platforms) :
Unknown R-hub platform, see rhub::platforms() for a list
We have a new error message. https://www.stats.ox.ac.uk/pub/bdr/M1mac/teal.reporter.out
* checking tests ...
Running ‘testthat.R’
ERROR
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> pkg_name <- "teal.reporter"
> library(pkg_name, character.only = TRUE)
> testthat::test_check(pkg_name)
Attaching package: 'testthat'
The following object is masked from 'package:teal.reporter':
Reporter
Error in (function (card) : ARTIFICIAL ERROR
Error in (function (card, comment) : ARTIFICIAL ERROR
Error in (function () : ARTIFICIAL ERROR
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 344 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-DownloadReportModule.R:130:3'): report_render_and_compress - render an html document ──
any(grepl("[.]Rmd", files)) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-DownloadReportModule.R:131:3'): report_render_and_compress - render an html document ──
any(grepl("[.]html", files)) is not TRUE
`actual`: FALSE
`expected`: TRUE
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 344 ]
Error: Test failures
Execution halted
Solutions are to remove this testthat test, or to add skip on CRAN (testthat::skip_on_cran()), or it will disappear itself shortly. For me looks like a random error as "download_report_button_srv - subset of rmd_yaml_args" test is passing so this one should too.
Or we do
if (platform == 'M1mac') {
skip_on_cran()
} else {
run_test
}
so that we only skip this test on CRAN for this paltform.
Or we do
if (platform == 'M1mac') { skip_on_cran() } else { run_test }
so that we only skip this test on CRAN for this paltform.
Please be careful with that. Please check out the check page and that mac-arm64 is there and we passing on it. Teal.reporter is not passing on additional mac-arm64. What if they will update the software and the condition will be too specific.
Then we will get another e-mail from CRAN and will do a review ;)
All the tests pass when testing using GitHub's M1 CI image (os: macos-14
)
https://github.com/averissimo/teal.reporter/actions/runs/8235572786/job/22521696256
edit: note that one of the other runs fails, but that's due to R setup action for an intel arch
The same error occurs in checks of the v0.3.0 on insighsengineering image. Current main doesn't throw this error. I suggest we release current teal.reporter
, this should fix the problem.
see failing release version https://github.com/insightsengineering/teal.reporter/pull/263
What happened?
Message from CRAN: