Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork219
Skip one more test on macOS#1324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Enchufa2 left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Weird. Especially because the max version, right below, seems to work fine.
eddelbuettel commentedAug 20, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Do you happen to have suitable hardware to test this? It could well be that |
Enchufa2 commentedAug 20, 2024
No, I don't. There's a Mac at home that I could borrow, but unfortunately it's Intel. |
eddelbuettel commentedAug 20, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
We'll find a creative solution. |
jeroen commentedAug 20, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@Enchufa2 note that this test is not executed for the "release" versions of Rcpp, but only for the I have confirmed manually that when we force Lines 12 to 21 in26fcdb2
|
eddelbuettel commentedAug 20, 2024
Looks like this worked with an additional CI runner for macOS. Yay. (And thanks for the suggestion earlier,@jeroen) |
Enchufa2 commentedAug 20, 2024
@jeroen Yes, I noted that. I was referring to line 1574, which has a similar test but with |
eddelbuettel commentedAug 20, 2024
Don't we die immediately? So it may not get to that line? |
Enchufa2 commentedAug 20, 2024
AFAIK, unless the session aborts or something, everything runs. E.g., put the following into a test file: library(tinytest)expect_true(FALSE)expect_true(TRUE)expect_true(FALSE) Then: $ Rscript -e'tinytest::run_test_file("test.R")'test.R........................ 3 tests 2 fails 25ms----- FAILED[data]: test.R<2--2> call| expect_true(FALSE) diff| Expected TRUE, got FALSE ----- FAILED[data]: test.R<4--4> call| expect_true(FALSE) diff| Expected TRUE, got FALSE Showing 2 out of 3 results: 2 fails, 1 passes (25ms) |
eddelbuettel commentedAug 20, 2024
Yes you are correct. I think I confused myself mentally comparing with "another popular flavour" for unit tests which we still use in another package that keeps me busy at work. |
kevinushey commentedAug 20, 2024
Looking at the sugar code, we try to cast Rcpp/inst/include/Rcpp/sugar/functions/min.h Lines 62 to 63 in9db1de4
Distilling this into a smaller example, I used: On my ARM macOS machine: And on an x86_64 Docker image: And some StackOverflow searching suggests that attempting to cast To wit -- should we just return |
eddelbuettel commentedAug 20, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Yes. That seems like a bit of logic error / thinko given >Inf [1]Inf> as.integer(Inf) [1]NAWarningmessage:NAsintroducedbycoerciontointegerrange> Should we warn just like R does here? |
kevinushey commentedAug 20, 2024
Perhaps... I'm not sure how closely we try to model the base R equivalents in the sugar functions. It is a little awkward for us that |
eddelbuettel commentedAug 20, 2024
Hoh boy. Isn't |
We are seeing an additional (new) failure on macOS and arm64 at r-universe (recent build log). We already skip a number of
NArelated tests on that platform so I added one. I cannot test this locally -- anybody reading this who has an arm64 mac and theclangthat@jeroen reports, namelyChecklist
R CMD checkstill passes all tests