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

fix(nms): Make sure hot module replacement works for the e2e test #13572

Merged

Conversation

thmsschmitt
Copy link
Contributor

@thmsschmitt thmsschmitt commented Aug 10, 2022

Summary

This re-enables the hot module replacement as it was initially configured here #13559
The e2e tests were broken because there was an unhandled exception that lead to an overlay that blocked the UI. This has been fixed.

Test Plan

@pull-request-size pull-request-size bot added the size/L Denotes a Pull Request that changes 100-499 lines. label Aug 10, 2022
@github-actions
Copy link
Contributor

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: nms NMS-related issue label Aug 10, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Aug 10, 2022

dp-workflow

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 52baf15.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 10, 2022

nms-workflow

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 52baf15.

♻️ This comment has been updated with latest results.

@thmsschmitt thmsschmitt force-pushed the nms/hot-module-replacement-take-2 branch from 33263a7 to 8a8a092 Compare August 10, 2022 15:39
@thmsschmitt thmsschmitt changed the title fix(nms): Repair hot module replacement again fix(nms): Re-enable hot module replacement and make sure it work for the e2e test Aug 11, 2022
@thmsschmitt thmsschmitt changed the title fix(nms): Re-enable hot module replacement and make sure it work for the e2e test fix(nms): Makes sure hot module replacement works for the e2e test Aug 11, 2022
@thmsschmitt thmsschmitt changed the title fix(nms): Makes sure hot module replacement works for the e2e test fix(nms): Make sure hot module replacement works for the e2e test Aug 11, 2022
@@ -12,7 +12,7 @@
*/

function isWebpack(caller) {
return !!(caller && caller.name === 'web');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

caller.target was web so the plugin was never enabled. Somehow it work without, but I kept it because the docs say you should use it.

};

void fetchNmsVersion();
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

prevent unnecessary requests

@thmsschmitt thmsschmitt marked this pull request as ready for review August 11, 2022 06:36
@thmsschmitt thmsschmitt requested review from a team and andreilee August 11, 2022 06:36
@thmsschmitt thmsschmitt requested review from Neudrino and HannaFar and removed request for andreilee August 11, 2022 09:07
@magma magma deleted a comment from github-actions bot Aug 11, 2022
magma#13559)"

Signed-off-by: Thomas Schmitt <thomas.schmitt@tngtech.com>

This reverts commit b2680c8.
Signed-off-by: Thomas Schmitt <thomas.schmitt@tngtech.com>
@thmsschmitt thmsschmitt force-pushed the nms/hot-module-replacement-take-2 branch from 8a8a092 to ea2377f Compare August 11, 2022 10:31
Signed-off-by: Thomas Schmitt <thomas.schmitt@tngtech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: nms NMS-related issue size/L Denotes a Pull Request that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants