You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[wasm] running tests on NodeJs fails with globalThis is not defined #65485
[01:27:29] fail: /datadisks/disk1/work/A3DA08F7/w/B1B30976/e/test-main.js:97
[01:27:29] fail: if (typeof globalThis.crypto === 'undefined') {
[01:27:29] fail: ^
[01:27:29] fail:
[01:27:29] fail: ReferenceError: globalThis is not defined
[01:27:29] fail: at Object.<anonymous> (/datadisks/disk1/work/A3DA08F7/w/B1B30976/e/test-main.js:97:1)
[01:27:29] fail: at Module._compile (internal/modules/cjs/loader.js:778:30)
[01:27:29] fail: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
[01:27:29] fail: at Module.load (internal/modules/cjs/loader.js:653:32)
[01:27:29] fail: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
[01:27:29] fail: at Function.Module._load (internal/modules/cjs/loader.js:585:3)
[01:27:29] fail: at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
[01:27:29] fail: at startup (internal/bootstrap/node.js:283:19)
[01:27:29] fail: at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
[01:27:29] info: Process node exited with 1
The new emscripten has a newer version of node, which is in different folder (14.15.5_64bit -> 14.18.2_64bit) and we have the path hardcoded in the sendtohelix-wasm.targets. I have pushed this change to the PR branch.
Activity
[wasm] Disable nodejs tests
lewing commentedon Feb 17, 2022
I'm not sure what is happening here but it looks like a node specific case at this point, @maraf please work with @radekdoulik to look into it
pavelsavara commentedon Feb 17, 2022
This looks like the new nodeJS version (which we get from emsdk) is not used. Why ?
maraf commentedon Feb 17, 2022
The new emscripten has a newer version of node, which is in different folder (
14.15.5_64bit->14.18.2_64bit) and we have the path hardcoded in thesendtohelix-wasm.targets. I have pushed this change to the PR branch.radekdoulik commentedon Feb 17, 2022
Could we avoid hardcoding the version number?
pavelsavara commentedon Feb 17, 2022
Also please add something like this to
test-main.jsSo that we don't have think about why, next time.
maraf commentedon Feb 18, 2022
I'll try to read it from filesystem in #65514.
In PR #65549.
radical commentedon Feb 18, 2022
Just a heads up, that we are now running tests on nodejs only on PRs. Once this is fixed, we could enable that for rolling builds.
maraf commentedon Feb 18, 2022
Both PRs I mentioned are merged. I think we can close this one.