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

Rewrite flaky test_compute for Interaction plot #3116

Closed
wants to merge 1 commit into from

Conversation

mpolson64
Copy link
Contributor

Summary:
Unfortunately we cannot count the number of subplots present by taking the length of fig.data because data holds the TRACES not the subplots themselves, and each subplot may hold one or more traces. This was causing the test to be flaky.

Instead now we are just checking that at least one trace came from a bar plot and that the other plots were either Scatter (slice) or Contour

Reviewed By: paschai

Differential Revision: D66472847

Summary:
Unfortunately we cannot count the number of subplots present by taking the length of fig.data because data holds the *TRACES* not the subplots themselves, and each subplot may hold one or more traces. This was causing the test to be flaky.

Instead now we are just checking that at least one trace came from a bar plot and that the other plots were either Scatter (slice) or Contour

Reviewed By: paschai

Differential Revision: D66472847
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Nov 25, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66472847

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.43%. Comparing base (7f2c4a0) to head (2a73be2).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3116   +/-   ##
=======================================
  Coverage   95.43%   95.43%           
=======================================
  Files         503      503           
  Lines       50264    50279   +15     
=======================================
+ Hits        47967    47982   +15     
  Misses       2297     2297           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 454cb9a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants