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

fix: Flaky test_explore_json_async test #26059

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

michael-s-molina
Copy link
Member

SUMMARY

This PR fixes the following flaky CI error:

FAILED tests/integration_tests/core_tests.py::TestCore::test_explore_json_async
- AssertionError: 200 != 202

The problem is that the response status will vary if the results are cached which depends on the tests execution order. Given that both 200 and 202 are valid response status for this endpoint, I updated the test to reflect that.

TESTING INSTRUCTIONS

CI should be sufficient.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Copy link

codecov bot commented Nov 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1af5fbb) 69.08% compared to head (853219c) 69.10%.
Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #26059      +/-   ##
==========================================
+ Coverage   69.08%   69.10%   +0.01%     
==========================================
  Files        1941     1940       -1     
  Lines       75882    75869      -13     
  Branches     8443     8443              
==========================================
+ Hits        52423    52426       +3     
+ Misses      21284    21268      -16     
  Partials     2175     2175              
Flag Coverage Δ
hive 53.68% <ø> (+<0.01%) ⬆️
mysql 78.16% <ø> (+<0.01%) ⬆️
postgres 78.26% <ø> (+<0.01%) ⬆️
presto 53.64% <ø> (+<0.01%) ⬆️
python 82.95% <ø> (+0.03%) ⬆️
sqlite 76.91% <ø> (+<0.01%) ⬆️
unit 55.79% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Member

@john-bodley john-bodley left a comment

Choose a reason for hiding this comment

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

One small comment, but otherwise LGTM.

Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com>
@michael-s-molina michael-s-molina merged commit 2b88225 into apache:master Nov 22, 2023
30 checks passed
@michael-s-molina michael-s-molina added the v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch label Nov 22, 2023
michael-s-molina added a commit that referenced this pull request Dec 4, 2023
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com>
(cherry picked from commit 2b88225)
josedev-union pushed a commit to Ortege-xyz/studio that referenced this pull request Jan 22, 2024
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com>
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com>
@mistercrunch mistercrunch added 🍒 3.0.3 🍒 3.0.4 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.1.0 labels Mar 8, 2024
sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch 🍒 3.0.3 🍒 3.0.4 🚢 3.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants