Description
Within the Node test environment, subprocesses opened as separate shells can't be killed (e.g. with spawnedProcess.kill( 'SIGKILL' ). For this reason, the WASM executors (which have to be run in shells) are now run in a double-wrapped subprocess, with the inner subprocess not detached from the outer.
The timeout command also doesn't work on spawned subprocesses within Node tests. Among other things, attempting to use timeout when spawning the WASM executor subprocesses causes a strange error in wasmedge's Rust layer.
If we investigated the causes of these issues, we could mitigate the confusion in the current subprocess layout.
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist