-
Notifications
You must be signed in to change notification settings - Fork 8
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
How much testing should happen in the repository? #4
Comments
Putting my developer hat on: I think it's most important to have tests running on the core repo that exercise your dependencies, because having them change underneath you is what will break core features of your package. The newer or faster-moving a dependency is, the more thorough you should be about testing code involving it on the core repository. |
Answering from my perspective as tidyverse developer (i.e. this is the advice I'd give to my team, although they might not 100% agree with it):
|
Taking a step back here, I think the underlying competing pressures would be greatly mitigated by the possible collaboration with R-hub. Thinking about an ideal world where every single CRAN machine is a container image that everyone else can access (including the Dockerfile). I think that would take out a lot of the guesswork in terms of figuring out what to test. |
I raise this as something that the community could benefit from hearing CRAN's perspective on, but also a high level question for future top-level repositories.
CRAN's current policy settings and activities seem to discourage exhaustive testing as part of CRAN's checks. This is because even a single test failure for trivial functionality on one uncommon platform can trigger a two-week "fix or be archived" ultimatum from CRAN. See {lubridate} for a recent example.
When these ultimatums land at inconvenient times, they can create stress for maintainers. There are many anecdotal reports, even from people in this working group, of skipping selected tests on CRAN to avoid the inconvenience.
CRAN's policy does not have much to say on the matter, except that:
So the question is how much testing is appropriate for a core repository?
The text was updated successfully, but these errors were encountered: