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

Should skip_if_offline() imply skip_on_cran()? Or at least default to that? #1479

Closed
jennybc opened this issue Oct 25, 2021 · 2 comments · Fixed by #1527
Closed

Should skip_if_offline() imply skip_on_cran()? Or at least default to that? #1479

jennybc opened this issue Oct 25, 2021 · 2 comments · Fixed by #1527
Labels
feature a feature request or enhancement skip
Milestone

Comments

@jennybc
Copy link
Member

jennybc commented Oct 25, 2021

I recently learned the hard way that a test for which I have skip_if_offline() can still hit a secondary GitHub API rate limit on CRAN, causing intermittent test failure. Clearly this test also needs skip_on_cran().

This made me think: maybe that is generally true? Or almost always true?

I think it's worth considering if skip_if_offline() should also skip on CRAN or have an argument to control this, defaulting to TRUE.

@hadley
Copy link
Member

hadley commented Oct 25, 2021

I guess I never actually use skip_if_offline(); I just use skip_on_cran(). So I don't have any opinion either way.

@jennybc
Copy link
Member Author

jennybc commented Oct 25, 2021

I think I use them individually in order to be self-documenting and super-clear about intent. But I can't think of a single test that hits the internet that I would want to run on CRAN. I rely on the test data I am getting constantly from GHA for such tests.

@hadley hadley added feature a feature request or enhancement skip labels Dec 20, 2021
@hadley hadley added this to the v3.1.2 milestone Dec 20, 2021
hadley added a commit that referenced this issue Jan 4, 2022
hadley added a commit that referenced this issue Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement skip
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants