Repository navigation
Commit ab28b3b
committed
test(hosting): run the unit tests in one process
The hosting unit tests run in the slowest unit test shard (shard 3, usually
the last local job). node --test spawned one process per test file, each
reloading the package and its dependencies; with
--experimental-test-isolation=none the ~1,700 tests share one process:
125 s -> 70 s on 4 cores, all passing, 3/3 runs (UnitBench). Only hosting:
core gets slower that way and bb-data hangs.
It also stops the parent runner from parsing a test file's stdout, which
is where dist/secret-cli.test.js failed 2 of 3 runs in one fork
experiment with "Unable to deserialize cloned data due to invalid or
unsupported version" (nodejs/node#64061: child stdout bytes that look like
a runner frame).1 parent 4757b80 commit ab28b3b
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments