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

build: Skip loading example data from configs in CI #12610

Merged
merged 3 commits into from
Feb 2, 2021

Conversation

robdiciuccio
Copy link
Member

@robdiciuccio robdiciuccio commented Jan 19, 2021

SUMMARY

Don't load data for new example dashboards (via examples.load_from_configs) that are not required for e2e tests. Suffix yaml configs required for e2e tests with .test, e.g. Unicode_Cloud.test.yaml.

TEST PLAN

Cypress tests should pass.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov-io
Copy link

codecov-io commented Jan 19, 2021

Codecov Report

Merging #12610 (2d0bab4) into master (deebd6f) will decrease coverage by 4.50%.
The diff coverage is 30.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12610      +/-   ##
==========================================
- Coverage   66.75%   62.25%   -4.51%     
==========================================
  Files        1015     1015              
  Lines       49633    49658      +25     
  Branches     4839     4845       +6     
==========================================
- Hits        33133    30915    -2218     
- Misses      16377    18546    +2169     
- Partials      123      197      +74     
Flag Coverage Δ
cypress ?
javascript 60.74% <ø> (+<0.01%) ⬆️
python 63.24% <30.00%> (-0.73%) ⬇️

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

Impacted Files Coverage Δ
superset/cli.py 33.58% <0.00%> (ø)
superset/examples/utils.py 32.00% <42.85%> (-1.34%) ⬇️
superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/chart/ChartContainer.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/reducers/index.js 0.00% <0.00%> (-100.00%) ⬇️
...et-frontend/src/dashboard/containers/Dashboard.jsx 0.00% <0.00%> (-100.00%) ⬇️
...et-frontend/src/filters/components/Select/types.ts 0.00% <0.00%> (-100.00%) ⬇️
...t-frontend/src/dashboard/containers/SliceAdder.jsx 0.00% <0.00%> (-100.00%) ⬇️
... and 244 more

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 deebd6f...2d0bab4. Read the comment docs.

@junlincc
Copy link
Member

thank you so much for this PR, Rob! This is really helpful! 🙏

@robdiciuccio
Copy link
Member Author

Shaves a minute or two off of the e2e test initialization.

@robdiciuccio robdiciuccio marked this pull request as ready for review January 20, 2021 03:09
@robdiciuccio robdiciuccio merged commit 68dae80 into apache:master Feb 2, 2021
@robdiciuccio robdiciuccio deleted the rd/load-example-data branch February 2, 2021 00:07
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request Feb 3, 2021
* master: (23 commits)
  feat(explore): clear search on dataset change (apache#12909)
  chore: remove SIP-38 feature flag (apache#12894)
  fix: Config for dataset health check (apache#12906)
  fix(chart): allow null for most query object props (apache#12905)
  feat: add separate endpoint to fetch function names for autocomplete (apache#12840)
  chore: add required review on master (apache#12694)
  fix: comment typo (apache#12898)
  Migrates Radio component from Bootstrap to AntD. (apache#12738)
  fix: allow users to reset their passwords (apache#12886)
  fix(explore): missing select when groupby without metrics (apache#12890)
  refactor: dbapi exception mapping for dbapi's (apache#12869)
  feat(style-theme): add support for custom superset themes (apache#12858)
  chore(lint): fix pre-commit error (apache#12884)
  refactor(color-schemes): refactor setting of color schemes (apache#12857)
  feat(native-filters): Add defaultValue for Native filters modal (apache#12199)
  feat(release): add github token to changelog script (apache#12872)
  fix(menu): always show settings dropdown (apache#12877)
  Migrates Label component from Bootstrap to AntD. (apache#12774)
  [Helm] Automate datasource import (apache#10771)
  build: Skip loading example data from configs in CI (apache#12610)
  ...
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels Mar 12, 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 preset-io size/S 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants