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

feat: upgraded to node v18, added .nvmrc and updated workflows #317

Merged
merged 10 commits into from
May 23, 2023

Conversation

BilalQamar95
Copy link
Contributor

@BilalQamar95 BilalQamar95 commented Mar 15, 2023

Ticket

Upgrade Node Js from 16 to 18

Description

  • Added support for node v18, updated .nvmrc and workflows.
  • Updated frontend-platform & frontend-build versions

edx-internal PR

https://github.com/edx/edx-internal/pull/8338
This needs to be merged together.

Developer Checklist

  • Test suites passing
  • Documentation and test plan updated, if applicable
  • Received code-owner approving review
  • Bumped version number package.json

Testing Instructions

[ How should a reviewer test this PR? ]

Reviewer Checklist

Collectively, these should be completed by reviewers of this PR:

  • I've done a visual code review
  • I've tested the new functionality

FYI: @openedx/content-aurora

@BilalQamar95 BilalQamar95 self-assigned this Mar 15, 2023
@codecov
Copy link

codecov bot commented Mar 15, 2023

Codecov Report

Patch coverage has no change and project coverage change: -4.56 ⚠️

Comparison is base (ae1702d) 100.00% compared to head (0f5fd7d) 95.44%.

Additional details and impacted files
@@             Coverage Diff             @@
##            master     #317      +/-   ##
===========================================
- Coverage   100.00%   95.44%   -4.56%     
===========================================
  Files          123      124       +1     
  Lines         1274     1338      +64     
  Branches       250      271      +21     
===========================================
+ Hits          1274     1277       +3     
- Misses           0       53      +53     
- Partials         0        8       +8     

see 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@BilalQamar95 BilalQamar95 marked this pull request as ready for review April 5, 2023 11:44
@BilalQamar95 BilalQamar95 requested a review from a team as a code owner April 5, 2023 11:44
@Mashal-m Mashal-m marked this pull request as draft April 20, 2023 11:47
@BilalQamar95 BilalQamar95 marked this pull request as ready for review April 25, 2023 12:04
@BilalQamar95 BilalQamar95 marked this pull request as draft April 25, 2023 12:35
@BilalQamar95 BilalQamar95 marked this pull request as ready for review May 10, 2023 13:13
@@ -9,7 +9,7 @@ const courseId = 'a-fake-course-id';
const category = 'AFakeCategory';
describe('segment service utils', () => {
beforeAll(() => {
global.window = Object.create(window);
global.window ??= Object.create(window);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this statement? The goal here is explicitly to replace the global window

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was to resolve TypeError: Cannot redefine property: window. This appeared to be a bug which was fixed by #46615 and back-ported to node v18.15 however it is still failing for node v18.16. For now I have pinned the node version to v18.15.

@abdullahwaheed
Copy link
Contributor

@muselesscreator could you please review it again

Copy link
Contributor

@muselesscreator muselesscreator left a comment

Choose a reason for hiding this comment

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

lgtm

@abdullahwaheed abdullahwaheed merged commit 3be81e0 into master May 23, 2023
@abdullahwaheed abdullahwaheed deleted the bilalqamar95/node-v18-upgrade branch May 23, 2023 14:11
abdullahwaheed pushed a commit that referenced this pull request May 26, 2023
* Merge branch 'master' of github.com:edx/frontend-app-gradebook

* feat: upgraded to node v18, added .nvmrc and updated workflows

* build: updated frontend-build, frontend-platform, component-footer & component-header packages

* refactor: updated packages

* fix: resolved test case failure window redefine issue

* Merge branch 'master' of github.com:edx/frontend-app-gradebook into bilalqamar95/node-v18-upgrade

* refactor: pinned node to v18.15 in nvmrc
mtyaka pushed a commit that referenced this pull request Jun 9, 2023
* Merge branch 'master' of github.com:edx/frontend-app-gradebook

* feat: upgraded to node v18, added .nvmrc and updated workflows

* build: updated frontend-build, frontend-platform, component-footer & component-header packages

* refactor: updated packages

* fix: resolved test case failure window redefine issue

* Merge branch 'master' of github.com:edx/frontend-app-gradebook into bilalqamar95/node-v18-upgrade

* refactor: pinned node to v18.15 in nvmrc
moonesque pushed a commit to edSPIRIT/frontend-app-gradebook that referenced this pull request Nov 11, 2023
…dx#317)

* Merge branch 'master' of github.com:edx/frontend-app-gradebook

* feat: upgraded to node v18, added .nvmrc and updated workflows

* build: updated frontend-build, frontend-platform, component-footer & component-header packages

* refactor: updated packages

* fix: resolved test case failure window redefine issue

* Merge branch 'master' of github.com:edx/frontend-app-gradebook into bilalqamar95/node-v18-upgrade

* refactor: pinned node to v18.15 in nvmrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants