Skip to content
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

Label flaky tests and add early returns in setTimeout functions to bypass undefined fullLayouts #5482

Merged
merged 7 commits into from
Feb 9, 2021

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Feb 9, 2021

The goal of this PR is improving the success rate of test-jasmine container mainly by tagging flaky test so that they run test-jasmine3 container and reduce overall failures.

@plotly/plotly_js

@archmoj archmoj added bug something broken type: maintenance labels Feb 9, 2021
@archmoj archmoj added this to the NEXT milestone Feb 9, 2021
@@ -126,6 +126,7 @@ exports.finalizeSubplots = function(layoutIn, layoutOut) {
*/
exports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {
var fullLayout = gd._fullLayout;
if(!fullLayout._subplots) return;
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's this about? When do we encounter this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sometimes happen at the end of transition_test with an error similar to the image below:
undefinedSubplot

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@archmoj archmoj requested a review from alexcjohnson February 9, 2021 19:40
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

Very nice! 💃

@archmoj archmoj changed the title Label flaky tests Label flaky tests and add early returns in setTimeout functions to bypass undefined fullLayouts Feb 9, 2021
@archmoj archmoj merged commit 352f4e4 into master Feb 9, 2021
@archmoj archmoj deleted the label-flaky-tests branch February 9, 2021 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants