-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Image tests using orca #2615
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
Image tests using orca #2615
Conversation
- something I forgot to do in #2572
Even with a 0.1 pixel-comparison threshold, I can't get Can anyone try on their machine:
|
I'm really not happy about the idea of anything less than perfect matching. There have been quite a few cases of very small changes in the image output being the only evidence of a real bug. I'm open to discussing it though. |
Something is really off on CI. It can't even generate the same pixels run to tun. We get off fcdb9b9 which has ci-generated baselines. |
Writing down some observations I made during my last few attempts: The main question we're trying to answer is: why is CI generating different pixels than locally? I first tried to isolate the problem further by bringing back For those interested in why Then, I tried tweaking the Then, I tried to find out if a tolerance of So, we still don't know why the same docker container generates different images locally vs on ci. The proposed workaround (of switching back gm with a 0.001 tolerance) isn't feasible. So what's next?
|
This doesn't appear to be the answer using plotly/orca@single-entry...graphicsmagick Given up on this until next week. 😡 In the meantime, if someone could try this branch out (as described in #2615 (comment)), this would help me a lot. Thanks! |
in 265a882 I changed
Which people seem to indicate is a permissions issue, but AFAICT |
@alexcjohnson what if you try
|
same error |
Small update: I tried bumping the electron version (to v2.0.2), but to no avail we still get different pixels to render on CI vs my laptop. |
Next stop (unless someone has a better idea), try travis ci: https://docs.travis-ci.com/user/docker/ |
Time to close this thing. We're still a long way off from using |
Supersedes #1972
In brief, this PR brings:
electron
based image testing (bye byenw.js
)pixelmatch
andpngjs
. That means bye-byegm
andgraphicsmagick
npm run test-image
runs in under 1:30 minute (N.B. that's over 400 mocks folks)LOCAL_ELECTRON
environment variableNow, a few things have changed since my first attempt back in the fall of 2017:
plotly.js/tasks/docker.js
Lines 26 to 31 in 93009aa
A few things that are still not perfect:
npm run test-image
doesn't behave consistently locally (i.e. on my laptop) vs on CircleCI. That is, we currently can't use the same baselines to makenpm run test-image
pass locally and on CI. Perhaps, we could solve this by reducing the pixel-comparison threshold. Or maybe something is wrong (e.g. a race condition) in the pixel-comparison script.cc @alexcjohnson @dy @nicolaskruchten