also looking at this
test: retain execution lifetime failure observations
#62
10 files
+174
-64
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -25,6 +25,7 @@ for (const mode of ['completed', 'canceled', 'quarantine']) test(`native executi | ||
| 25 | 25 | console.error('LIFETIME_FIXTURE_DEADLINE', JSON.stringify({ mode, pid: running.pid, timeoutMs: 90000, elapsedMs: performance.now() - began, requestedSignal: 'SIGKILL' })) |
| 26 | 26 | }, 90000) |
| 27 | 27 | try { |
| 28 | console.log(JSON.stringify({ oracle: 'lifetime-fixture-start', mode, pid: running.pid, timeoutMs: 90000 })) | |
| 28 | 29 | const [code, stdout, stderr] = await Promise.all([running.exited, new Response(running.stdout).text(), new Response(running.stderr).text()]) |
| 29 | 30 | // eslint-disable-next-line no-console |
| 30 | 31 | for (const line of stdout.split('\n')) if (line.startsWith('{"oracle":')) console.log(line) |