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: Use production build config for cypress tests and fix webpack #16978

Merged
merged 2 commits into from
Oct 5, 2021

Conversation

etr2460
Copy link
Member

@etr2460 etr2460 commented Oct 5, 2021

SUMMARY

Recently we had an issue that only reproed with production build assets. I suspect this would've been caught with cypress, but we build assets in development mode for cypress, so it wasn't caught. This PR should run cypress on prod assets instead of dev ones.

This pr also further resolves the webpack bugs by setting usedExports to globa.

TESTING INSTRUCTIONS

CI

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

to: @eschutho @michael-s-molina @rusackas

@codecov
Copy link

codecov bot commented Oct 5, 2021

Codecov Report

Merging #16978 (c5a85d2) into master (93ebe3d) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16978      +/-   ##
==========================================
- Coverage   76.93%   76.93%   -0.01%     
==========================================
  Files        1030     1030              
  Lines       55019    55019              
  Branches     7465     7465              
==========================================
- Hits        42331    42330       -1     
- Misses      12434    12435       +1     
  Partials      254      254              
Flag Coverage Δ
javascript 70.91% <ø> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
...eFilters/FiltersConfigModal/FiltersConfigModal.tsx 88.46% <0.00%> (-0.97%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93ebe3d...c5a85d2. Read the comment docs.

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for this!

Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

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

LGTM

@etr2460 etr2460 merged commit 2757b93 into apache:master Oct 5, 2021
@etr2460 etr2460 changed the title fix: Use production build config for cypress tests fix: Use production build config for cypress tests and fix webpack Oct 5, 2021
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
* fix: Use production build config for cypress tests

* set usedExports to global
@AAfghahi
Copy link
Member

🏷 v1.4

eschutho pushed a commit that referenced this pull request Nov 22, 2021
* fix: Use production build config for cypress tests

* set usedExports to global

(cherry picked from commit 2757b93)
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
* fix: Use production build config for cypress tests

* set usedExports to global
@mistercrunch mistercrunch added 🍒 1.4.0 🍒 1.4.1 🍒 1.4.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0 labels Mar 13, 2024
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 v1.4 🍒 1.4.0 🍒 1.4.1 🍒 1.4.2 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants