-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
test: migrate messages v8 tests from Python to JS #51534
base: main
Are you sure you want to change the base?
Conversation
Migrated messages v8 tests from Python to JavaScript. This change is part of an effort to enhance maintainability and consistency in the test suite. All relevant test files and dependencies have been updated accordingly. Refs: nodejs#47707
Hey just wondering, are the failing tests actually related to changes introduced in this PR? |
at Object.<anonymous> (*assert_throws_stack.js:*:*) | ||
at Module._compile (node:internal*modules*cjs*loader:*:*) | ||
at Module._extensions..js (node:internal*modules*cjs*loader:*:*) | ||
at Module.load (node:internal*modules*cjs*loader:*:*) | ||
at Module._load (node:internal*modules*cjs*loader:*:*) | ||
at Function.executeUserEntryPoint [as runMain] (node:internal*modules*run_main:*:*) | ||
at node:internal*main*run_main_module:*:* { |
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.
We need to get all of this out of the snapshot, so that changes to the CommonJS loader don’t break tests such as this one. You can use Error.stackTraceLimit = 1
or similar for this (see the similar tests nearby).
at makeContextifyScript (node:internal*vm:*:*) | ||
at node:internal*process*execution:*:* | ||
at [eval]-wrapper:*:* | ||
at runScript (node:internal*process*execution:*:*) | ||
at evalScript (node:internal*process*execution:*:*) | ||
at node:internal*main*eval_string:*:* |
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.
Same here and below.
Probably not, especially if they happen only on certain platforms. We generally click “resume” a few times to rerun CI because many tests are flaky. Sorry for not getting to this sooner! Thank you for the contribution! |
Migrated messages v8 tests from Python to JavaScript. This change is part of an effort to enhance maintainability and consistency in the test suite. All relevant test files and dependencies have been updated accordingly.
Refs: #47707
Summary
This pull request addresses Issue #47707, which involved migrating messages v8 tests from Python to JavaScript to enhance maintainability and consistency in the test suite.
Changes Made
Additional Notes
Tests affected:
Related Issues
Improves: Issue #47707
Checklist