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

chore: upgrading cypress to version 9 #18606

Closed

Conversation

sadpandajoe
Copy link
Member

@sadpandajoe sadpandajoe commented Feb 7, 2022

SUMMARY

Upgrading cypress to the latest version following their (migration guide)[https://docs.cypress.io/guides/references/migration-guide#Migrating-from-cypress-file-upload-to-selectFile].

  • Bumping version to 9
  • Removing flag --headless as it's default with Cypress 8
  • No other test updates are required as part of the migration

Here is the change log of all the changes made.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

  • Run all tests to ensure they are passing

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

@sadpandajoe sadpandajoe changed the title Preset io/joe/cypress 9 migration chore:upgrading cypress to version 9 Feb 7, 2022
@sadpandajoe sadpandajoe changed the title chore:upgrading cypress to version 9 chore: upgrading cypress to version 9 Feb 8, 2022
@amitmiran137 amitmiran137 marked this pull request as ready for review February 8, 2022 06:32
@codecov
Copy link

codecov bot commented Feb 8, 2022

Codecov Report

Merging #18606 (468a34a) into master (5f3e73c) will decrease coverage by 0.40%.
The diff coverage is n/a.

❗ Current head 468a34a differs from pull request most recent head 243e4f0. Consider uploading reports for the commit 243e4f0 to get more accurate results

@@            Coverage Diff             @@
##           master   #18606      +/-   ##
==========================================
- Coverage   66.52%   66.12%   -0.41%     
==========================================
  Files        1714     1624      -90     
  Lines       65046    63149    -1897     
  Branches     6722     6505     -217     
==========================================
- Hits        43274    41755    -1519     
+ Misses      20060    19711     -349     
+ Partials     1712     1683      -29     
Flag Coverage Δ
javascript 51.33% <ø> (+0.08%) ⬆️
unit ?

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

Impacted Files Coverage Δ
...in-chart-echarts/src/MixedTimeseries/buildQuery.ts 0.00% <0.00%> (-100.00%) ⬇️
superset/db_engine_specs/__init__.py 46.15% <0.00%> (-38.47%) ⬇️
superset/migrations/shared/utils.py 0.00% <0.00%> (-36.18%) ⬇️
superset/connectors/sqla/views.py 64.01% <0.00%> (-27.04%) ⬇️
...perset-frontend/src/explore/components/Control.tsx 53.84% <0.00%> (-17.59%) ⬇️
...uperset-frontend/src/explore/exploreUtils/index.js 63.90% <0.00%> (-17.12%) ⬇️
...rontend/src/components/Select/DeprecatedSelect.tsx 37.33% <0.00%> (-16.00%) ⬇️
...-frontend/src/components/CronPicker/CronPicker.tsx 85.71% <0.00%> (-14.29%) ⬇️
superset-frontend/src/components/Select/styles.tsx 67.92% <0.00%> (-13.21%) ⬇️
...chart-echarts/src/MixedTimeseries/controlPanel.tsx 80.00% <0.00%> (-12.86%) ⬇️
... and 516 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 5f3e73c...243e4f0. Read the comment docs.

@sadpandajoe sadpandajoe closed this Feb 8, 2022
@sadpandajoe sadpandajoe reopened this Feb 8, 2022
@sadpandajoe sadpandajoe reopened this Feb 11, 2022
@zhaoyongjie zhaoyongjie reopened this Apr 28, 2022
@zhaoyongjie
Copy link
Member

@sadpandajoe Could you rebase the latest master to your branch? Thanks!

@sadpandajoe
Copy link
Member Author

@zhaoyongjie done.

@zhaoyongjie
Copy link
Member

zhaoyongjie commented Apr 30, 2022

@sadpandajoe, thanks!
The CI is blocked by an npm compatible error. I think we just need to remove the engines declaration to fix it.

diff --git a/superset-frontend/tools/eslint-plugin-translation-vars/package.json b/superset-frontend/tools/eslint-plugin-translation-vars/package.json
index d4353a88d..83e8c184d 100644
--- a/superset-frontend/tools/eslint-plugin-translation-vars/package.json
+++ b/superset-frontend/tools/eslint-plugin-translation-vars/package.json
@@ -12,9 +12,5 @@
   "dependencies": {},
   "peerDependencies": {
     "eslint": ">=0.8.0"
-  },
-  "engines": {
-    "node": "^16.9.1",
-    "npm": "^7.5.4"
   }
 }

@sadpandajoe
Copy link
Member Author

@zhaoyongjie this was added by @stephenLYZ in this PR: https://github.com/apache/superset/pull/19828/files. I want to confirm that it's ok with them before editing that file as I don't want to break other things.

@zhaoyongjie
Copy link
Member

@stephenLYZ Could you confirm that this modification is safe?

@sadpandajoe
Copy link
Member Author

closing for now

@rusackas
Copy link
Member

@sadpandajoe looks like you intended to close this. I'll do ya the favor, but please feel free to reopen if warranted.

@rusackas rusackas closed this Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants