Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR proposes to update
plotly.js
to v1.54.1, released on 2020-05-04, using the zipfile available at https://api.github.com/repos/plotly/plotly.js/releases/26163877.The schema has been regenerated using
plotlyjs.R
.shinytest
baselines were updated, and visual baselines were also updated as suggested here.• Initial issues running visual tests
I was not able to get the Docker image located here to run the visual tests (strangely, I kept seeing a lazy-load package database error). I managed to avoid this problem by splitting the
CMD
line into two separate statements.I also noticed that the image is using a version of
orca
that is almost two years old, so I created my own Dockerfile based largely on the one above usingorca
v1.3.1 with axenial
base image (as we currently do for theorca
Docker image). (This variation does not usefuse
, so Docker can be run without passing--privileged
.)Dockerfile
On my system, Docker ends up running the tests as
root
within the container, so I also made a minor modification to thebash
script which runsorca
so that it inserts the--no-sandbox
argument when it is not present, and the tests run as expected now:This may be related to a configuration issue on my own computer, but avoids edits to any code within the
plotly
package itself. I believe the issue is that runningorca -h
ororca --version
asroot
will currently result in a core dump unless--no-sandbox
is also provided.I have not committed these changes, but I can do so if it would be helpful.
• Output of visual tests
There were a couple "failures", but they all appear to be related to
pandoc
. I visually inspected all the errors using the Shiny app (the toggle and slider modes are great), and every single one was the result of a very tiny shift in the plots, some of which were visually undetectable.All plots and legends which I reviewed rendered correctly.
Visual test summary
@cpsievert @nicolaskruchten