ReviewOS

home-lang/home

Complete top-level Bun CLI corpus compatibility

#196
Closed chris opened this 10 days ago ·
10 days ago

Tracks the final Home compatibility work needed to make the complete top-level Bun CLI corpus pass without delegation.

Scope:

  • fix inspector async settling and standards-shaped WebSocket EventTarget message delivery
  • bound temporary-project package discovery so package-manager commands cannot inherit unrelated parent manifests
  • activate deterministic bun info and pm view spawn compatibility
  • keep pm cache query/removal inside Home filesystem state
  • complete non-piped interactive update dry-run lifecycle handling
  • improve pending async expectation diagnostics and bounded microtask draining

Acceptance:

  • cli/inspect: 35 pass, 0 fail, 0 unsupported, 4 todo
  • cli/install/bun-pack.test.ts: 71 pass, 0 fail, 0 unsupported
  • cli/install/bun-pm-pkg.test.ts: 73 pass, 0 fail, 0 unsupported, 1 todo
  • cli/install/bun-pm-scan.test.ts: 17 pass, 0 fail, 0 unsupported
  • cli/install/bun-pm-version.test.ts: 24 pass, 0 fail, 0 unsupported
  • cli/install/bun-info.test.ts: 19 pass, 0 fail, 0 unsupported
  • cli/install/bun-pm.test.ts: 18 pass, 0 fail, 0 unsupported
  • cli/update_interactive_formatting.test.ts: 31 pass, 0 fail, 0 unsupported
  • complete cli directory: 153 files, 4001 pass, 0 fail, 0 unsupported, 49 todo
  • isolated js/bun/http/bun-serve-static.test.ts: 34 pass, 0 fail, 0 unsupported
  • clean full home_test gate exits 0

Parent tracking: #66

10 days ago

Completed and pushed in 83310e1 (feat(runtime): complete bun cli corpus compatibility).

Verification:

  • complete packages/runtime/test/bun-corpus/cli: 153 files, 4001 pass, 0 fail, 0 unsupported, 49 todo
  • cli/inspect: 35 pass, 0 fail, 0 unsupported, 4 todo
  • bun-info: 19 pass; bun-pm: 18 pass; bun-pack: 71 pass
  • pm pkg: 73 pass / 1 todo; pm scan: 17 pass; pm version: 24 pass
  • update interactive formatting/install/snapshots: 31 + 2 + 3 pass
  • isolated bun-serve-static stress file: 34 pass, 0 fail, 0 unsupported
  • clean full home_test gate: exit 0

The first full gate reached 1152 pass / 1 skip before the host filesystem fell to 888 MB free and the static-response stress matrix was SIGKILLed. After clearing only the regenerable project Zig cache, the stress file passed 34/34 and the clean full gate exited 0.

The implementation also improves pending resolves diagnostics by naming the matcher and source file, and raises bounded microtask draining with a deep-chain regression test.

Sign in to comment on this issue.