Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests break on Windows #101

Closed
eddelbuettel opened this issue Jul 8, 2020 · 18 comments
Closed

Tests break on Windows #101

eddelbuettel opened this issue Jul 8, 2020 · 18 comments

Comments

@eddelbuettel
Copy link
Owner

@FelixErnst I was just about to wrap this up for a 0.1.7 release when I noticed that ... Windows tests are not happy.

I think I would be happy to just skip tests on Windows. Do you want to take a deeper dive? I keep forgetting if you mostly live on macOS or Linux, or Windows. Any inisghts?

I can share the win-builder links which will be good another day or two or so...

@eddelbuettel
Copy link
Owner Author

Turns out it less dramatic. Win-builder only broke on r-devel, maybe for lack of git2r. It was a simple issue of checking the return code of the first test function. Should now be better.

@FelixErnst
Copy link
Contributor

I tested on Windows and Linux, but on r-release. So it should work. Do you have a link to a broken build report, because the last ones here on Github are fine, aren't they?

@eddelbuettel
Copy link
Owner Author

Yep. Windows r-devel came back first and "surprised me". r-release was fine. Logs from r-devel are below but I should have a fix for this and am just waiting for a second run.

Dear package maintainer,

this notification has been generated automatically.
Your package drat_0.1.7.tar.gz has been built (if working) and checked for Windows.
Please check the log files and (if working) the binary package at:
https://win-builder.r-project.org/39Ce8HruAt3i
The files will be removed after roughly 72 hours.
Installation time in seconds: 6
Check time in seconds: 124
Status: 2 ERRORs
R Under development (unstable) (2020-07-03 r78775)

All the best,
Uwe Ligges
(CRAN maintainer of binary packages for Windows

@FelixErnst
Copy link
Contributor

Ok let me know. I have r-devel on Windows set up in a VM...

@eddelbuettel
Copy link
Owner Author

eddelbuettel commented Jul 8, 2020

Thanks for the offer. Looks like we're better now: False alert.

Dear package maintainer,

this notification has been generated automatically.
Your package drat_0.1.7.tar.gz has been built (if working) and checked for Windows.
Please check the log files and (if working) the binary package at:
https://win-builder.r-project.org/R4Hd3ry38Rx0
The files will be removed after roughly 72 hours.
Installation time in seconds: 7
Check time in seconds: 138
Status: 1 NOTE
R version 4.0.2 (2020-06-22)

All the best,
Uwe Ligges
(CRAN maintainer of binary packages for Windows)

The one nag is the usual "yo you hit your GH API hits limit" following links to GitHub URLs. I think I'll ship 0.1.7 -- thanks again for all your patient help!

@eddelbuettel
Copy link
Owner Author

eddelbuettel commented Jul 8, 2020

It still breaks on r-devel, so I finally put a print() (or, rather, cat(), in). We are missing a path normalization, I think:

  > cat("****** repodir is: '", repodir, "'\n", sep="")
  ****** repodir is: 'D:\temp\RtmpY3pa34/working_dir\Rtmpq8vS13/drat'
  > if (length(repodir) > 0L) testRepoActions(repodir)
  Error in testRepoActions(repodir) : Wrong package files found
  Execution halted

I don't really have access to Windows. Do you think you can maybe take a stab at this? I suspect it fails over the non-standard forward and backward slashes.

Edit: I gave it a shot but had bad luck with win-builder which seems to have it a pothole as it doesn't now and again.

Edit 2: And I guess thinks don't "generally" break but under "some situation" -- maybe once we cross drives on Windows as above with d:\temp. A general build on rhub's windows machine passed again.

@FelixErnst
Copy link
Contributor

FelixErnst commented Jul 9, 2020

I will have a look at it later.

edit: do you have a revision number for r-devel?

@eddelbuettel
Copy link
Owner Author

Thanks for looking into it. We probably want to cover this is several spots whereever pieces of a path are computed or recalled.

As for the revision number: what do you mean? R-devel I don't control, I just submit to the builder. For the local tarball I was optimisitic earlier and thought I was near a release so I had 0.1.7. I then needed to differentiate between runs hence 0.1.7.0.x, and then realized > 0.1.7 was a bad idea. In short, it is "just" in the local DESCRIPTION so far.

@FelixErnst
Copy link
Contributor

I guess the only place a path could go wrong for pruneRepo/getRepoInfo is contrib.url2. I will test it later, when I have time, but if you want to go ahead, have a look here:

paste0("contrib/",

a call to file.path instead of paste0 is more idiomatic anyway, but here might make the difference.

@eddelbuettel
Copy link
Owner Author

That's a good one, trying that. Something is a corner case anyway because "some" of the machines build (rhub, win-builder r-release) and only some do not (win-builder r-devel) so it seems input-dependent too, i.e. we still have a buglet somewhere not cleaning an input value from somewhere.

@FelixErnst
Copy link
Contributor

FelixErnst commented Jul 9, 2020

From previous experience, it sounds like a bug in an r revision. I had the problem, when updating ROCR, that the build failed for CRAN builds on Windows, but I couldn't reproduce it locally since a newer revision didn't have the bug.

So to recap: On CRAN it works for 4.0.2 (#101 (comment)) but not for r78775 (#101 (comment)). So what version of r-devel is rhub running? If it is >r78775, I would guess the error was fixed in later revisions (Current is r78794) and the builds on CRAN should clear hopefully.

edit: can you link the output of the rhub builds? (Never used it, so I don't if that is an option)

@eddelbuettel
Copy link
Owner Author

eddelbuettel commented Jul 9, 2020

Err, hold on. I never laid blame on r-devel. I have r-devel here. I have seen repeated predictable errors clearly blaming us for generating non-portable paths. I think you are extrapolating.

The main problem right now is that the box I could produce errors on --- r-devel at win-builder --- appears to not run now.

@FelixErnst
Copy link
Contributor

🤦🤦🤦

versions for the tests were not fixed. See #102

@eddelbuettel
Copy link
Owner Author

And whooooopsies. Looks like I didn't test too well on r-devel here either. (Oh, now I now: my r-devel balked on not having git2r and I gave it an ahh shucks. Dang. Still no free lunch.)

Thanks for cleaning up here! I may not get to it for the rest of the day but hopefully tomorrow...

@eddelbuettel
Copy link
Owner Author

(Do we then have to always fix the test versions to "actual" values of R current, past, next, ... ?)

@FelixErnst
Copy link
Contributor

Nope, shouldn't be the case now. I checked all the function calls and the ones who need it have a fixed version statement.

@eddelbuettel
Copy link
Owner Author

And tests came back late yesterday so I'll fold this in now, look it over one more and then we're good too. Penny also dropped that the "version" here is driven by the file not the R moving the file around. Doh.

@eddelbuettel
Copy link
Owner Author

Fixed in #102.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants