Skip to content

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

Merged
robdiciuccio merged 3 commits into
apache:masterfrom
preset-io:rd/load-example-data
Feb 2, 2021
Merged

build: Skip loading example data from configs in CI#12610
robdiciuccio merged 3 commits into
apache:masterfrom
preset-io:rd/load-example-data

Conversation

@robdiciuccio

@robdiciuccio robdiciuccio commented Jan 19, 2021

Copy link
Copy Markdown
Member

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

codecov-io commented Jan 19, 2021

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 30.00000% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.25%. Comparing base (deebd6f) to head (2d0bab4).
⚠️ Report is 12894 commits behind head on master.

Files with missing lines Patch % Lines
superset/examples/utils.py 42.85% 4 Missing ⚠️
superset/cli.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            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.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@junlincc

Copy link
Copy Markdown
Member

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

@robdiciuccio

Copy link
Copy Markdown
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 First shipped in 1.2.0 labels Mar 12, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
* Skip loading example data from configs in CI

* Use .test suffix for example data required by e2e tests

* Address linting error with regex
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 First shipped in 1.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants