-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Update visual tests for scales 1.0.0 #2842
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They all look fine, although in scales we should look into why numeric-log.svg
has changed for the worst (IMO)
Build is passing everywhere but R 3.2 strangely. Could that be a configuration problem? Yeah, the additional breaks produced by new |
How do we proceed? I would suggest merging these changes so we can at least locally run tests again, and then look into R 3.2 as a separate issue. |
I agree I think this should be merged but travis builds will continue to fail until we sort out 3.2. From the log, 3.2 is failing 38 visual tests, many of which are not necessarily scales related. |
This morning, I speculated that it may not be possible to have one single reference image for all R versions on which ggplot2 is tested. However, from a quick glance at everything I can't tell what might be the cause. Unfortunately I won't be able to dig further at this time. |
I think we should probably move to just running the visual tests with the released version of R |
@hadley Is there a simple way to make sure vdiffr runs on the currently released version, rather than on some hardcoded version (e.g. "3.5")? The latter would require constant manual updating. @dpseidel Alternatively, you could add something like the following: if (paste(R.Version()$major, R.Version()$minor, sep = ".") < "3.3.0") {
enable_vdiffr <- FALSE
} at this location: In this way, vdiffr won't run on R versions that are too old, and we could slowly increase the minimum required version as problems develop with older versions. |
Sure, that's simple - I will add that in now. What's curious to me is that 3.1 is passing while 3.2 is failing but looking over the the travis logs I can't tell exactly what might be the problem. |
As far as I can tell, for 3.1 it's been skipping the visual tests already because no sufficiently recent vdiffr is available. |
Yay, success! |
Ahh that makes sense! Looks like we are passing now. I'll merge this and if we eventually decide to run vdiffr on just the released version of R, we can make that change in a separate PR. Thanks @clauswilke for your help! |
@clauswilke the easiest thing would be set a env var just for |
@hadley I see. The advantage of the env var is also that it won't be set on CRAN and hence we won't have sudden failure of tests because some package changes. The disadvantage is going to be that we'll have to set the same on our local machines for manual testing. Broadly related question: Is there any way to get output printed to the terminal during the testing process? It would be really helpful if we could see in the log whether |
I think the visual tests should be run when:
This way they are always run locally if you use devtools. |
@lionel- Just to make sure we're on the same page: You are saying the visual tests should be run if (a specific envvar is set) OR (NOT_CRAN is set). Either of these conditions alone will trigger the tests. Correct? |
Yes, sorry for the imprecise bullet list ;) |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Closes #2824