ReviewOS

home-lang/home

Port Node N-API conformance corpus module preparation

#201
Closed chris opened this 23 days ago · 119 comments
23 days ago

Parent tracker: #66

The Bun corpus is clean through napi/napi.test.ts (corpus position 4240) after f603f4629. The next exact boundary is:

  • napi/node-napi-tests/test/js-native-api/2_function_arguments/do.test.ts
  • current result: unsupported module syntax

Port the Node N-API conformance test preparation and module-loading semantics without weakening assertions, then advance through the remaining napi/node-napi-tests corpus. Preserve test isolation and avoid writing generated native-addon artifacts into the Home workspace.

23 days ago

Ordered corpus checkpoint: position 3886/4708, js/node/v8/v8-date-parser.test.js, landed in 301f6a055.

  • focused: 5 passed, 0 failed, 0 TODO, 0 unsupported, 0 allowed-empty
  • adjacent 3885–3886: 43 passed, 0 failed/TODO/unsupported/allowed-empty
  • cumulative 3659–3886: 228 files, 949 passed, 41 upstream TODO, 0 failed, 0 unsupported, 165 allowed-empty
  • permanent V8 gate expanded to exact stack/date expectations
  • copied Bun source remains byte-identical

Next ordered position: 3887.

23 days ago

Ordered checkpoint 3887 completed in 6672f8175.

js/node/vm/happy-dom-vm-16277.test.ts now passes from its byte-identical copied source through a reusable happy-dom compatibility module. Focused result: 1/1 passed. Adjacent 3885–3887 result: 44 passed across 3 files with zero failures, TODOs, unsupported files, or allowed-empty files.

Cumulative 3659–3887: 229 files, 950 passed, 41 TODO, 0 failed, 0 unsupported, 165 allowed-empty.

Master status: #66. Debt ledger: #202, unchanged by this checkpoint. Next ordered position is 3888.

23 days ago

Ordered position 3888 completed in 526dc0a2b.

js/node/vm/script-leak.test.ts passes byte-identically and is now part of the permanent node VM lifecycle gate. Positions 3887–3888 are 2/2 passed with zero failure or debt.

Cumulative 3659–3888: 230 files, 951 passed, 41 TODO, 0 failed, 0 unsupported, 165 allowed-empty. See #66 for master status and #202 for debt. Next: 3889.

23 days ago

Ordered position 3889 completed in 4f836d24e.

js/node/vm/sourcetextmodule-leak.test.ts passes byte-identically and its async module link/evaluate RSS contract is now permanent-gated. Cumulative 3659–3889: 231 files, 952 passed, 41 TODO, 0 failed, 0 unsupported, 165 allowed-empty.

Master status: #66. Debt: #202, unchanged. Next: 3890.

23 days ago

Ordered position 3890 completed in 4061ee830.

js/node/vm/sourcetextmodule-link-gc.test.ts passes byte-identically, including the continuous-GC subprocess stress path, and is now permanent-gated. Cumulative 3659–3890: 232 files, 953 passed, 41 TODO, 0 failed, 0 unsupported, 165 allowed-empty.

Master status: #66. Debt: #202, unchanged. Next: 3891.

23 days ago

Ordered position 3891 completed in c50e48ef0.

js/node/vm/vm-script-fetcher-leak.test.ts passes all 4 byte-identical object-lifetime assertions and is now permanent-gated. Cumulative 3659–3891: 233 files, 957 passed, 41 TODO, 0 failed, 0 unsupported, 165 allowed-empty.

Master status: #66. Debt: #202, unchanged. Next: 3892.

23 days ago

Ordered position 3892 completed in eefe17da2.

js/node/vm/vm-sourceUrl.test.ts now passes all 3 byte-identical upstream snapshots. The shared evaluator preserves sourceURL and original callsites for Node-style thrown stacks and Bun-style inspected Error code frames, and the suite is permanent-gated.

Cumulative 3659–3892: 234 files, 960 passed, 41 TODO, 0 failed, 0 unsupported, 165 allowed-empty. Master status: #66. Debt: #202, unchanged. Next: 3893.

23 days ago

Position 3893 is complete in 6fbb7d86e: js/node/vm/vm.test.ts now passes 206 tests with its 68 upstream TODOs preserved and no unsupported coverage.

Ordered cumulative result for 3659–3893: 235 files, 1,166 passed, 109 TODO, 0 failed, 0 unsupported, 165 allowed-empty. The copied source remains byte-identical to Bun, and the file is now part of the permanent VM contract matrix.

23 days ago

Positions 3894–3896 are complete in 07f81ef8a: all three copied Node watch files pass, including the five recursive watcher rewrite contracts.

Cumulative ordered result for 3659–3896: 238 files, 1,173 passed, 109 TODO, 0 failed, 0 unsupported, 165 allowed-empty. The next boundary is position 3897: js/node/watch/fs.watch.test.ts.

23 days ago

Position 3897 is complete in 83c61ec71: js/node/watch/fs.watch.test.ts passes 40 active tests with 2 copied upstream TODOs and no unsupported coverage.

Cumulative ordered result for 3659–3897: 239 files, 1,213 passed, 111 TODO, 0 failed, 0 unsupported, 165 allowed-empty. Next boundary: position 3898, js/node/watch/fs.watchFile.test.ts.

23 days ago

Position 3898 is complete in b788ebf0c: js/node/watch/fs.watchFile.test.ts passes 9 active tests with 2 copied upstream TODOs.

Cumulative ordered result for 3659–3898: 240 files, 1,222 passed, 113 TODO, 0 failed, 0 unsupported, 165 allowed-empty. Next boundary: position 3899, js/node/worker_threads/15787.test.ts.

23 days ago

Positions 3899–3900 are complete in 2717ee337: the existing worker regression and the two active async-disposal contracts pass with no TODO or unsupported coverage.

Cumulative ordered result for 3659–3900: 242 files, 1,225 passed, 113 TODO, 0 failed, 0 unsupported, 165 allowed-empty. Next boundary: position 3901, js/node/worker_threads/worker_destruction.test.ts.

23 days ago

Positions 3901–3902 are complete in 41b760ad2: worker destruction and heap-snapshot GC contracts add 4 passing tests with no TODO or unsupported coverage.

Cumulative ordered result for 3659–3902: 244 files, 1,229 passed, 113 TODO, 0 failed, 0 unsupported, 165 allowed-empty. Next boundary: position 3903, js/node/worker_threads/worker_threads.test.ts, currently requiring module-import lowering before its active contracts can run.

23 days ago

Ordered checkpoint advanced through position 3903 in pushed commit abec8c035. js/node/worker_threads/worker_threads.test.ts is 34/34 green, including module and instance surfaces, eval/data URL workers, FIFO MessagePort receive, environment data, process worker events, heap snapshots, FileHandle rollback/detachment, duplicate transfer rejection, and Map/Set transfer identity.

Cumulative 3659-3903: 245 files / 1,263 passed / 113 upstream TODO / 0 failed / 0 unsupported / 165 allowed-empty. Permanent worker gate: 5 files / 41 passed.

Next ordered target is position 3904, js/node/zlib/bytesWritten.test.ts, tracked in #204. Master status: #66. No new Home-injected TODO or skip was added; see #202.

23 days ago

Ordered corpus boundary advanced through position 3906 in https://github.com/home-lang/home/commit/76d8be478.

Current contiguous result from 3659: 248 files, 1,277 passed, 113 TODO, 0 failed, 0 unsupported, 165 allowed-empty. Newly green: zlib/bytesWritten.test.ts (5), zlib/deflate-streaming.test.ts (1), and zlib/leak.test.ts (8).

Next executable boundary: position 3907, zlib/zlib-estimated-size-gc.test.ts. Its first failing assertion is Brotli estimated native size (176, expected greater than 5,000). See #204.

23 days ago

Ordered corpus boundary advanced through position 3911 in https://github.com/home-lang/home/commit/52b661f39.

Positions 3659-3911: 253 files, 1,306 passed, 113 TODO, 0 failed, 0 unsupported, 165 allowed-empty. This adds 5 green zlib files and 29 passing tests for native footprint, handle bounds/write-state, reset/reentrancy, and global kMaxLength contracts.

Next executable boundary: position 3912, js/node/zlib/zlib.test.js; first failure is the Gzip constructor/prototype inheritance contract. See #204.

23 days ago

Cross-tracker note for 05e1acbf8: the zlib checkpoint extended the shared JSC native bridge with binary file reads plus Brotli/Zstd callbacks, while deliberately excluding the concurrent N-API edits from this commit.

The cumulative gate through position 3912 is green (1,684 passed, 0 failed, 0 unsupported), so the shared bridge remains stable for the N-API work tracked here.

23 days ago

Follow-up from #66: native-plugin.test.ts is logically covered by the deterministic harness and its stale FAIL marker is being removed, but the crash-name path is simulated. Please include real compiled native onBeforeParse execution, ABI/build loading, crash containment, and exact plugin-name propagation in this N-API integration track.

23 days ago

Completed the Node N-API conformance scope in b4ddf3056.

Home now sources its N-API Node version from the same authoritative build option as the runtime environment and process/package-manager paths. The previously failing compiled test/node-api/test_general addon passes in Debug and ReleaseFast and returns 26.3.0, exactly matching process.version / process.release.

Strict ReleaseFast verification of the complete napi/node-napi-tests tree: 55/55 files passing; 0 failures, 0 crashes, 0 hangs, 0 dependency gaps, 0 OOMs. No upstream test assertions were changed and no generated addon artifact was committed.

Parent status remains #66.

Sign in to comment on this issue.