Skip to content

Flaky image tests #4321

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
Oct 30, 2019
Merged

Flaky image tests #4321

merged 4 commits into from
Oct 30, 2019

Conversation

etpinard
Copy link
Contributor

npm run test-image has been very flaky on CI during the last week or so.

This PR adds a way to flag "flaky" mocks in compare_pixels_test.js. These flaky mocks are skipped on CI in the (main) image) container and they are run in isolating in the image2) container alongside npm run test-export.

This is not a perfect solution by any means, but I hope this will help keep @plotly/plotly_js devs productive until we find a better solution.

exit $EXIT_STATE
;;

image2)
retry npm run test-image -- --just-flaky
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably don't even need to run this in a retry loop, but I thought might as well do this.

Let me know if you think 🔪 that retry would be a better idea.

@archmoj
Copy link
Contributor

archmoj commented Oct 30, 2019

For further investigation:
the problem with the treemap_textposition mock appears to be on the top left graph.

Screenshot from 2019-10-30 12-05-50

@archmoj
Copy link
Contributor

archmoj commented Oct 30, 2019

@etpinard thanks very much for the PR.
This would save us good amount of time.
💃

@etpinard etpinard merged commit 742b83d into master Oct 30, 2019
@etpinard etpinard deleted the test-image-flaky-mocks branch October 30, 2019 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants