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
GitHub Actions: Revdep error for 'furrr' on 'Snapshot of code has changed' #85
Comments
You might need an updated version of {lifecycle} locally. I'd need to rerun the snapshot tests locally and push updated ones to github to clear this up. Does this check of yours use the dev version of furrr? Or would i need to send in a patch release to CRAN for you? |
Locally, I have everything up-to-date per CRAN and Bioconductor. Are you thinking this is only happens on GitHub Actions right now, because there's a devel version of lifecycle might be used?
No, I test towards the CRAN source tarball.
I'm not sure if I follow, probably because I don't understand how testthat snapshots work, but wouldn't I have a problem when I submit to CRAN, if you don't update there? I've just add a job to test against furrr devel (v0.3.1-9000), but it also gives this error, cf. https://github.com/HenrikBengtsson/globals/actions/runs/3414650319/jobs/5682882329. |
No, snapshot tests aren't ever run by CRAN. They are run in two main circumstances:
Snapshot tests are useful, but are by their very nature a bit fragile, which is why they aren't run on CRAN. We mainly use them to check against error messages that we don't own in that package (like how the lifecycle message is being thrown from furrr), so if the error message gets tweaked a bit upstream, we don't want to have to immediately fix all of the downstream packages. So generally we just update the snapshot tests when we get back around to working on that package to account for any changes that might have occurred in upstream packages since the last release. Are you running the tests locally with |
I see. So, it sounds like I need to find a way to disable the snapshot checks on GitHub Actions? But does it also mean you need to regenerate the snapshots on furrr* devel, since that fails for me, and I guess anyone else who tries the same.
I'm using |
Yea, but I think my recommendation for you is that you should try and make your reverse dependency GitHub Actions workers "look like CRAN", and that will automatically disable snapshot test checking. The way to do that is to set
https://github.com/r-lib/actions/blob/50d1eae9b8da0bb3f8582c59a5b82225fa2fe7f2/setup-r/src/installer.ts#L678 Give that a try and see if it "just works" As mentioned before, we typically want our CI to look like our local workflow, i.e. "not CRAN", so that is why
Yes, eventually, when I come back around to work on furrr again that will be the first thing I do. But the idea behind all this is to prevent us from having to rush back to a package and perform some kind of update as soon as a fragile snapshot test starts failing. |
Thank you. This solved the problem (cf. https://github.com/HenrikBengtsson/globals/actions/runs/3457263520/jobs/5770573078) |
I've been getting the following reverse-dependency check errors for furrr on GitHub Actions for a long time now. It happens also over on the future repository:
I've fully cleared the GitHub Action Caches (https://github.com/HenrikBengtsson/globals/actions/caches), but the above still shows up.
I do not get this when I run
R CMD check --as-cran furrr_0.3.1.tar.gz
locally.@DavisVaughan, do you happen to know how I fix this?
The text was updated successfully, but these errors were encountered: