-
Notifications
You must be signed in to change notification settings - Fork 65
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
Failing package test on single-core machines #513
Comments
Thanks for this, @HenrikBengtsson ! I'm not really sure how to track this test down, do you know which test in particular fails? |
Sorry, I don't see more then the above either*. You should be able to reproduce it by setting environment variable:
before loading parallelly the first time, i.e. before running the tests. (*) This is actually the main reason why I still don't use modern unit test frameworks like testthat, RUnit, tidytest myself. With them, |
I've tried to create a GH action to add this environment variable to R CMD check, this felt like a somewhat decent way to check that across multiple systems? Specifically, added this code to the R-CMD-check.yml - name: Check on single core machine
if: runner.os != 'Windows'
env:
R_PARALLELLY_AVAILABLE_CORES: 1
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran", "--no-multiarch"))
shell: Rscript {0} |
That looks correct to me. |
OK awesome - I think I'm going to close this issue with PR #538 then, as all tests are passing now :) |
Hi, I'm running conservative revdep checks on parallelly and future, where I check if they work on single-core machines, which might be the case on cloud CI services, free RStudio Cloud accounts, etc. I use
export R_PARALLELLY_AVAILABLE_CORES=1
to emulate this. Doing this, I spotted greta failing with:Source: https://github.com/HenrikBengtsson/parallelly/blob/71e60044d1b6daf83f66f424ff380a004147155b/revdep/R_PARALLELLY_AVAILABLECORES_SYSTEM%3D1/problems.md#greta
I haven't tracked this down further, but it could be an assumption that
plan(multisession)
will producemultisession
futures, but ifavailableCores() == 1
, then they'll becomesequential
futures.The text was updated successfully, but these errors were encountered: