Skip to content

DPI-5056: Skip cloud tests instead of aborting when offline - #27

Draft
instantepiphany wants to merge 1 commit into
masterfrom
DPI-5056-test-fixes
Draft

instantepiphany wants to merge 1 commit into
masterfrom
DPI-5056-test-fixes

Conversation

@instantepiphany

@instantepiphany instantepiphany commented Nov 3, 2026 •

Copy link
Copy Markdown

tests/testthat/helper-skip.R calls rversions::r_release() while the test helpers load, which fetches from svn.r-project.org. Without network access it errors, and testthat aborts before running any test.

The lookup is now wrapped in tryCatch(). Offline, is_release becomes FALSE, which only makes the cloud tests skip, as they already do without plotly credentials. Three other tests that download from GitHub and cdn.plot.ly still fail offline; they're left as they are. plotly has no CI that runs its tests today, so running the rest in Nix, even with those three failing, still adds a lot of coverage: 1,445 tests now pass.

Part of DPI-5056, which moves the R package tests from CircleCI to Nix, where they run without network access.

Please do not merge this PR when approving, it will be merged in bulk with other PRs for DPI-5056.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant