-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
refactor: migrate to ESM #7331
refactor: migrate to ESM #7331
Conversation
this is where the fun begins
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #7331 +/- ##
==========================================
- Coverage 55.74% 55.65% -0.10%
==========================================
Files 656 656
Lines 26194 26192 -2
Branches 2546 2546
==========================================
- Hits 14602 14576 -26
- Misses 10890 10918 +28
+ Partials 702 698 -4
... and 6 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
this was manual. I'm committing this because I'm about to try the `cjstoesm` tool
@@ -3,7 +3,7 @@ | |||
// @ts-check | |||
|
|||
// eslint-disable-next-line no-unused-vars | |||
const { devices } = require('@playwright/test'); | |||
import { devices } from '@playwright/test'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
@@ -3,7 +3,7 @@ | |||
// @ts-check | |||
|
|||
// eslint-disable-next-line no-unused-vars | |||
const { devices } = require('@playwright/test'); | |||
import { devices } from '@playwright/test'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
e2e/tests/functional/plugins/importAndExportAsJSON/exportAsJson.e2e.spec.js
Fixed
Show fixed
Hide fixed
e2e/tests/functional/plugins/importAndExportAsJSON/importAsJson.e2e.spec.js
Fixed
Show fixed
Hide fixed
@@ -22,7 +22,7 @@ | |||
|
|||
// FIXME: Remove this eslint exception once tests are implemented | |||
// eslint-disable-next-line no-unused-vars | |||
const { test, expect } = require('../../../../baseFixtures'); | |||
import { expect, test } from '../../../../baseFixtures.js'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note test
@@ -26,7 +26,7 @@ | |||
|
|||
// FIXME: Remove this eslint exception once tests are implemented | |||
// eslint-disable-next-line no-unused-vars | |||
const { test, expect } = require('../../../../baseFixtures'); | |||
import { expect, test } from '../../../../baseFixtures.js'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note test
@@ -26,7 +26,7 @@ | |||
|
|||
// FIXME: Remove this eslint exception once tests are implemented | |||
// eslint-disable-next-line no-unused-vars | |||
const { test, expect } = require('../../../../baseFixtures'); | |||
import { expect, test } from '../../../../baseFixtures.js'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note test
Current Playwright Test Results Summary✅ 166 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 12/31/2023 04:23:35am UTC)
|
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Telemetry Table unpauses and filters data when paused by button and user changes bounds
Retry 1 • Initial Attempt |
5.71% (2)2 / 35 runsfailed over last 7 days |
14.29% (5)5 / 35 runsflaked over last 7 days |
📄 functional/plugins/plot/logPlot.e2e.spec.js • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Log plot tests Log Plot ticks are functionally correct in regular and log mode and after refresh
Retry 1 • Initial Attempt |
0% (0)0 / 44 runsfailed over last 7 days |
25% (11)11 / 44 runsflaked over last 7 days |
📄 functional/plugins/notebook/restrictedNotebook.e2e.spec.js • 2 Flakes
Top 1 Common Error Messages
|
2 Test Cases Affected |
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Restricted Notebook with a page locked and with an embed @addinit Allows embeds to be deleted if page unlocked @addinit
Retry 1 • Initial Attempt |
0% (0)0 / 36 runsfailed over last 7 days |
50% (18)18 / 36 runsflaked over last 7 days |
Restricted Notebook with a page locked and with an embed @addinit Disallows embeds to be deleted if page locked @addinit
Retry 1 • Initial Attempt |
2.78% (1)1 / 36 runfailed over last 7 days |
66.67% (24)24 / 36 runsflaked over last 7 days |
📄 functional/planning/timelist.e2e.spec.js • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Time List Create a Time List, add a single Plan to it and verify all the activities are displayed with no milliseconds
Retry 1 • Initial Attempt |
5.56% (2)2 / 36 runsfailed over last 7 days |
55.56% (20)20 / 36 runsflaked over last 7 days |
I have no clue why that test is failing - and it's definitely not flaky, I can reproduce the same behavior locally. I probably made a mistake when converting. I'll look through this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. This is amazing work. In terms of review, everything looks correct.
We will need to review the impact this will have to projects which treat open mct as a npm dependency and also build it from source (like akhenry/openmct-yamcs)
I didn't quite think of that - it does modify the EDIT: However, if they use |
I'll go ahead and do some cursory testing against some of the consuming projects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks great! Tested this against some projects that use Open MCT as a dependency and everything just works. Thank you so much for taking this on! 🚀🚀🚀
Closes
Describe your changes:
Fixes #7330 (and continues the spirit of https://github.com/nasa/openmct/tree/esm), to hopefully unblock a few pending issues. I'm opening this now to test its effects on CI as I work on this. Import transformations were done via codemods 👍
All Submissions:
Author Checklist
type:
label? Note: this is not necessarily the same as the original issue.Reviewer Checklist