You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is the unguarded harp::envvar::set_var("POSITRON_VERSION", value) which talks to R.
This is awkward because there is an R_MAIN but this is an integration test (unlike data_explorer.rs which is an integration test but without an R_MAIN).
So in theory we do want to use an r_task(), but right now IS_TESTING is true so it would just say "oh i guess i can run this right here", but really it can't. It needs to send it to the main R thread, which is probably not the thread the test is running on.
Maybe we can also look at RMain::is_initialized(), but I feel like this still isn't perfect:
R_MAIN could be setting up, but not fully initialized yet
We send an r-task right away
It sees IS_TESTING && (RMain::is_initialized() = false) because it hasn't fully set up yet, so in that case it would still run the r-task on the current thread. Frustrating!
#618 is a patch to get tests reliably passing again, but this still needs a longer term fix because it will be nice to be able to call the R API directly from integration tests
The problem is the unguarded
harp::envvar::set_var("POSITRON_VERSION", value)
which talks to R.This is awkward because there is an
R_MAIN
but this is an integration test (unlikedata_explorer.rs
which is an integration test but without anR_MAIN
).So in theory we do want to use an
r_task()
, but right nowIS_TESTING
istrue
so it would just say "oh i guess i can run this right here", but really it can't. It needs to send it to the main R thread, which is probably not the thread the test is running on.Maybe we can also look at
RMain::is_initialized()
, but I feel like this still isn't perfect:R_MAIN
could be setting up, but not fully initialized yetIS_TESTING && (RMain::is_initialized() = false)
because it hasn't fully set up yet, so in that case it would still run the r-task on the current thread. Frustrating!From https://github.com/posit-dev/ark/actions/runs/11502602809/job/32017966783:
The text was updated successfully, but these errors were encountered: