Skip to content

Update visual tests with dev vdiffr #2886

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

Merged
merged 4 commits into from
Sep 13, 2018
Merged

Conversation

dpseidel
Copy link
Collaborator

@dpseidel dpseidel commented Sep 8, 2018

This PR regenerates the visual test case files using the development version of vdiffr which now uses ggplot2::theme_test() rather than an internal function to allow for easy editing. The shift changes plot dimensions slightly for all plots for which theme_test() is applied because of minor differences between the theme specifications -- see lionel-/vdiffr#40 for more details.

@hadley hadley requested a review from lionel- September 8, 2018 14:18
@dpseidel
Copy link
Collaborator Author

dpseidel commented Sep 12, 2018

Thanks @lionel-. So, just to confirm, this change will require ggplot2 developers to update their version of vdiffr in order to pass tests. Already as of #2856, visual testing is dependent on the dev version of vdiffr but if a developer downloaded 0.2.3.9000 more than 5 days ago (prior to lionel-/vdiffr#40), their tests will run and break until they update. OK to merge @hadley ?

@lionel-
Copy link
Member

lionel- commented Sep 12, 2018

Good point. I have just bumped the development version, could you make ggplot2 depend on vdiffr >= 0.2.3.9001 please?

@dpseidel
Copy link
Collaborator Author

Done. I bumped it both in the check within the helper-vdiffr.R file and added the version predicate to the description file.

@clauswilke
Copy link
Member

With the changes to vdiffr, are we now in a situation where all Travis runs will break until this is merged? If yes, then we should merge ASAP. And also, is there any reason why the AppVeyor build failed? That seems strange.

@dpseidel
Copy link
Collaborator Author

dpseidel commented Sep 12, 2018

Strange, it looks like it failed to load scales and the proper version of vdiffr: https://ci.appveyor.com/project/tidyverse/ggplot2/build/1.0.1197#L392 may be related to my change of the DESCRIPTION file or possibly just a random Appveyor failure? I can take a better look as soon as I am back to my desktop.

And yes, if Travis is pulling the newest version of vdiffr dev then builds are going to fail. Let's try and get this merged today.

@clauswilke
Copy link
Member

I've sometimes seen random Appveyor breaks. Unfortunately we can't restart the build except by making another commit.

@dpseidel
Copy link
Collaborator Author

Hmm yeah. Appveyor does not like the predicate version number added to the DESCRIPTION file. It's not strictly required so I will remove it.

@dpseidel
Copy link
Collaborator Author

I'm ready to merge this, any concerns @hadley, @lionel- ?

@clauswilke
Copy link
Member

@dpseidel I think you should go ahead and merge. Other PRs are now blocked because of failing vdiffr runs (see e.g. here). If there's anything else that needs to be addressed in regards to vdiffr we can do that later, when we notice it.

@dpseidel dpseidel merged commit 7098630 into tidyverse:master Sep 13, 2018
@lock
Copy link

lock bot commented Mar 12, 2019

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/

@lock lock bot locked and limited conversation to collaborators Mar 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants