-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix failing tests under node-canary. NFC #24075
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
One change here is that new versions of node now support navigator.language/languages natively.
@@ -13374,7 +13374,7 @@ def test_split_module(self, customLoader, jspi, opt): | |||
self.emcc_args += ['-g', '-sJSPI_EXPORTS=say_hello'] | |||
self.emcc_args += ['-sEXPORTED_FUNCTIONS=_malloc,_free'] | |||
output = self.do_other_test('test_split_module.c') | |||
if jspi: |
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.
Does node canary support JSPI yet? I guess maybe with a flag, and soon without? Or does it need changes in node in addition to its V8?
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 condition here is not related to JSPI per sey, but more about the fact that d8 cannot write files out to disc.
The if jspi:
condition was really trying to say if d8:
and it worked since we only ever ran JSPI tests under d8 I guess. Running this test with node canary ended up in situation where were both using node and jspi which broke this check.
@@ -13374,7 +13374,7 @@ def test_split_module(self, customLoader, jspi, opt): | |||
self.emcc_args += ['-g', '-sJSPI_EXPORTS=say_hello'] | |||
self.emcc_args += ['-sEXPORTED_FUNCTIONS=_malloc,_free'] | |||
output = self.do_other_test('test_split_module.c') | |||
if jspi: | |||
if self.js_engines == [config.V8_ENGINE]: | |||
# TODO remove this when https://chromium-review.googlesource.com/c/v8/v8/+/4159854 |
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 TODO was landed - can we remove this if?
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.
I think we would need to do some more work there to make it work.
This seems to be failing on MacOS: https://logs.chromium.org/logs/emscripten-releases/buildbucket/cr-buildbucket/8718030851337111473/+/u/Emscripten_testsuite__other_/stdout
So not because of node, but because of Python. |
Interestingly it doesn't reproduce for me on my mac. It must have something to do with the python on the Chromium builders. |
Followup to emscripten-core#24075. This should fix the mac failures we have been seeing
Followup to emscripten-core#24075. This should fix the mac failures we have been seeing
Followup to emscripten-core#24075. This should fix the mac failures we have been seeing
Weird, is there even any code in this change that would cause Python to do anything different wrt getting locale encodings? |
I'm just no longer setting LC_ALL at all. Setting LC_ALL has an effect on all child processes including emcc/python.exe |
Followup to #24075. This should fix the mac failures we have been seeing
Ah, got it, thanks |
One change here is that new versions of node now support navigator.language/languages natively.