Skip to content

Commit bbf6b21

Browse files
committed
chore: fix runtime-driver test glob and catalog pre-existing test failures
1 parent fa2559d commit bbf6b21

2 files changed

Lines changed: 60 additions & 1 deletion

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Pre-existing test failures
2+
3+
Cataloged 2026-03-30. None are release blockers — all are implementation gaps or test fixture issues.
4+
5+
## @secure-exec/core (36 failures)
6+
7+
**socket-shutdown tests**`test/kernel/socket-shutdown.test.ts`
8+
9+
All 36 failures: `SocketTable` constructed without `networkCheck` fixture. Deny-by-default rejects `listen()` with `EACCES`. Fix by providing an explicit `networkCheck` that allows loopback in test setup.
10+
11+
## @secure-exec/nodejs (4 failures)
12+
13+
**VFS error codes**`test/kernel-runtime.test.ts` (3 failures)
14+
15+
Tests expect `EACCES` for `/etc/passwd` reads, symlink traversal, and path traversal. VFS correctly returns `ENOENT` — file doesn't exist in sandbox. Update expectations to `ENOENT`.
16+
17+
**stdin piping**`test/kernel-runtime.test.ts` (1 failure)
18+
19+
Writes to stdin, expects output containing `hello from stdin`. Investigate whether stdin bridge drops data or test timing is off.
20+
21+
## @secure-exec/typescript (2 failures)
22+
23+
**VFS directory setup**`tests/typescript-tools.integration.test.ts`
24+
25+
`filesystem.mkdir("/root/src")` fails with `ENOENT` because `/root` doesn't exist. Fix with `{ recursive: true }` or bootstrap `/root` in test setup.
26+
27+
## secure-exec (83 + 5 failures)
28+
29+
**test:runtime-driver script glob**`package.json` (fixed, ready to commit)
30+
31+
Glob `tests/runtime-driver/*.test.ts` didn't match `tests/runtime-driver/node/*.test.ts`. Updated to `tests/runtime-driver/node/`.
32+
33+
**stream polyfills**`tests/test-suite/node/polyfills.ts` (5 failures)
34+
35+
Missing or incomplete `node:stream` bridge implementation.
36+
37+
**disposeSharedV8Runtime**`tests/runtime-driver/node/v8-lifecycle.test.ts` (3 failures)
38+
39+
`disposeSharedV8Runtime` imported but not exported from the package. Wire the export.
40+
41+
**bridge hardening**`tests/runtime-driver/node/bridge-hardening.test.ts` (9 failures)
42+
43+
- FD table limit enforcement (EMFILE at 1024, reopen after close)
44+
- `process.chdir` to existing directory
45+
- Module cache isolation in `__unsafeCreateContext`
46+
- `process.nextTick` / `setTimeout` error routing through `uncaughtException`
47+
- `process.kill(process.pid, 'SIGTERM')` handler dispatch
48+
- HTTP body buffering cap (50MB via repeated `write()`)
49+
50+
**runtime-driver implementation gaps** — multiple files (~68 failures)
51+
52+
- `index.test.ts` (49) — Promise subclass methods, HTTP/2 allowHTTP1 fallback, Node API parity
53+
- `payload-limits.test.ts` (7) — payload size enforcement edge cases
54+
- `resource-budgets.test.ts` (6) — resource budget enforcement
55+
- `module-access.test.ts` (5) — module resolution edge cases
56+
- `context-snapshot-behavior.test.ts` (1) — context snapshot edge case
57+
- `ssrf-protection.test.ts` (1) — SSRF protection edge case
58+
- `module-access-compat.test.ts` (1) — module compat edge case
59+
- `hono-fetch-external.test.ts` (1) — external fetch edge case

packages/secure-exec/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"check-types:test": "vitest --typecheck --run tests/types/",
2727
"build": "tsc",
2828
"test:test-suite": "vitest run tests/test-suite/node.test.ts",
29-
"test:runtime-driver": "vitest run tests/runtime-driver/*.test.ts",
29+
"test:runtime-driver": "vitest run tests/runtime-driver/node/",
3030
"test:integration:node": "pnpm run test:test-suite && pnpm run test:runtime-driver",
3131
"test:project-matrix": "vitest run tests/project-matrix.test.ts",
3232
"test:e2e-docker": "vitest run tests/e2e-docker.test.ts",

0 commit comments

Comments
 (0)