Repository navigation
[Coverage Report] Test Coverage Report — 2026-10-04 #9431
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-10-11T06:09:26.973Z.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
📊 Test Coverage Report — 2026-10-04
Overall Coverage
The test suite covers 377 test files across 375 source files in the codebase. This balanced test-to-source ratio reflects strong testing discipline across the project.
Key metrics:
🛡️ Security-Critical Path Status
Based on the pre-computed coverage analysis, 3 CRITICAL coverage gaps have been identified in security-sensitive modules:
src/nvx/cleanup-registry.tssrc/bounded-execution/finite-cardinality.tssrc/bounded-execution/finite-schema.ts📋 Coverage Table
src/nvx/cleanup-registry.tssrc/bounded-execution/finite-cardinality.tssrc/bounded-execution/finite-schema.tssrc/microvm/network-reservation.tssrc/bounded-execution/finite-disclosure.ts🔧 Function Audit
src/nvx/cleanup-registry.ts(42.8% statement coverage)reapPending()— partial coverage of stale process detectionsrc/bounded-execution/finite-cardinality.ts(46.03% statement coverage)src/bounded-execution/finite-schema.ts(49.77% statement coverage)📅 Recent Source Changes (last 7 days)
Based on file timestamps from Oct 4, 2026 (05:57–06:03 UTC):
src/nvx/module (runtime-backend, runtime-lifecycle, workspace-layer, cleanup-registry)src/nvx/run-layout.ts,src/nvx/runtime-backend.test.ts, and related runtime files🔎 Notable Findings
Cleanup Registry Imbalance — 631-line module with only 171 lines of tests (27% parity). High-risk cleanup paths (resource teardown on process crash) are undertested. This is especially critical for microVM isolation, where stale resources could escape the sandbox.
Finite-Execution DoS Gap — Both
finite-cardinality.tsandfinite-schema.tsshow <50% statement coverage, with branch coverage as low as 11% (disclosure). These modules gate unbounded execution; gaps allow pathological inputs to bypass limits.Recent Active Development — Timestamps show rapid iteration on
runtime-backend,runtime-lifecycle, andworkspace-layer(all Oct 4, 05:57 UTC). Test files appear stale; coverage regression likely during recent refactors.Network Reservation Coverage —
src/microvm/network-reservation.tsat 51.5% statements and 54.86% branches is the best of the low-coverage group but still below safe thresholds for network isolation logic.🎯 Recommendations
🔴 HIGH Priority —
src/nvx/cleanup-registry.tscaptureIdentity(),prepareDeviceAcl(), andcaptureMountNamespace()🔴 HIGH Priority —
src/bounded-execution/finite-schema.tsthrow new ValidationError()path🟡 MEDIUM Priority —
src/bounded-execution/finite-cardinality.tsNext Steps: The test-coverage-improver workflow can target these three files with focused test generation. Recommend running
npm run test:coverage -- --testPathPattern='(cleanup-registry|finite-schema|finite-cardinality)' --collectCoverageFrom='src/nvx/cleanup-registry.ts|src/bounded-execution/finite-schema.ts|src/bounded-execution/finite-cardinality.ts'locally to verify improvements.All reactions