### Test js-native-api/test_cannot_run_js/test ### Platform Linux ARM64, Linux x64, macOS ARM64, macOS x64 ### Console output ```console crashed (-6) ``` ``` --- duration_ms: 509.947 exitcode: -6 severity: crashed ... ``` ### Build links See reliability report: https://github.com/nodejs/reliability/issues/576 Here's one example: https://ci.nodejs.org/job/node-test-binary-armv7l/5897/RUN_SUBSET=native,nodes=ubuntu2004-armv7l/testReport/junit/js-native-api/test_cannot_run_js/test/ ### Additional information Newly added in https://github.com/nodejs/node/pull/47986 Probably comes from this abort statement: https://github.com/nodejs/node/blob/847b9e08849f391ac3c21a73fd375e86b97605b8/test/js-native-api/test_cannot_run_js/test_cannot_run_js.c#L18 Could not reproduce locally with test.py. Weirdly it reproduces every time when run without test.py: ```bash ./node test/js-native-api/test_cannot_run_js/test.js ```
Activity
test: mark test_cannot_run_js as flaky
test: mark test_cannot_run_js as flaky
test: mark test_cannot_run_js as flaky
test: mark test_cannot_run_js as flaky
test: mark test_cannot_run_js as flaky
test: mark test_cannot_run_js as flaky
abmusse commentedon Feb 23, 2024
I think this issue is showing up again I've seen it on the following platforms:
AIX: https://ci.nodejs.org/view/All/job/node-test-commit-aix/50418/nodes=aix72-ppc64/testReport/js-native-api/test_cannot_run_js/test_/
IBM i : https://ci.nodejs.org/job/node-test-commit-ibmi/nodes=ibmi73-ppc64/1466/testReport/js-native-api/test_cannot_run_js/test_/
richardlau commentedon Feb 26, 2024
This issue should not have been closed -- #48181 merely marked the test as flaky.
abmusse commentedon Feb 27, 2024
I've added a log to check what the actual and expected values are before we abort.
This was done on IBM i:
node/test/js-native-api/test_cannot_run_js/test_cannot_run_js.c
Lines 15 to 19 in 847b9e0
Looks like the actual napi_status value is
0but the expected status is10. 🤔From the docs napi_status is a enum an 0 should map to -> napi_ok and 10 would map to -> napi_pending_exception
ref: https://nodejs.org/api/n-api.html#napi_status