You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/microvm/network-reservation.ts — network reservation state transitions
📅 Recent Source Changes (last 7 days)
No source changes detected in the past 7 days in this repository. Coverage metrics reflect the current stable state of the codebase.
🔎 Notable Findings
Finite-Disclosure Coverage Crisis: src/bounded-execution/finite-disclosure.ts has only 9.26% statement and 0.26% branch coverage. This module controls disclosure boundaries — test coverage must be improved before any production deployment involving bounded-execution workflows.
MicroVM Stack Under-Tested: The entire microVM backend (src/microvm/*) shows 50–72% coverage with weak branch coverage (41–54%). As this is a new backend feature, systematic branch-level testing is critical before feature completion.
Strong Core Firewall Coverage: Host iptables, Squid domain filtering, and Docker lifecycle management show high coverage with comprehensive test suites. The firewall's core security guarantees are well-validated.
Config Assembly Branch Gaps: src/commands/validators/config-assembly.ts has only 25% branch coverage despite 73.68% statement coverage. This indicates many validation conditionals are untested — edge-case config errors may not be caught.
🎯 Recommendations
🔴 HIGH PRIORITY (Must address for production readiness)
Improve finite-disclosure.ts Test Coverage — Current coverage is below 10% (critical gap). Add systematic branch tests covering:
All disclosure boundary conditions
Edge cases in disclosure limits
Interaction with enclave executors
Expected test improvement: 80%+ coverage
🟠 MEDIUM PRIORITY (Address within sprint)
Enhance config-assembly.ts Branch Coverage — Only 25% of branches tested. Add tests for:
All validation error paths
Merge logic edge cases
Config precedence branches
Expected improvement: 60%+ branch coverage
Complete MicroVM Network Tests — network-reservation.ts and rootfs.ts need branch-level test expansion:
Network isolation state machine paths
Rootfs construction failure modes
microVM-specific volume handling
Expected improvement: 75%+ coverage
Report Generated: 2026-09-01 Test Suite Status: All tests passing with pre-computed coverage metrics Next Review: Upon completion of finite-disclosure test improvements
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Overall Coverage
Based on pre-computed coverage metrics from the latest test run:
Key Metrics Identified:
🛡️ Security-Critical Path Status
The following files implement security-critical egress filtering logic:
Assessment: Core firewall domain filtering and network isolation logic is well-tested. No critical security-critical path gaps detected.
📋 Coverage Gap Analysis
CRITICAL Gaps (stmts <10% or branch <10%):
LOW Priority Gaps (stmts 50-75%, branch <60%):
🔧 Function Audit
Well-Tested Functions (>90% coverage):
host-iptables-rules.ts,host-iptables-setup-core.test.ts)squid-config-domains.test.ts,squid-config-security.test.ts)docker-manager-write-configs.test.ts,docker-manager-cleanup.test.ts)domain-patterns.test.ts— 25K+ test file)Under-Tested Functions (<60% branch coverage):
src/bounded-execution/finite-disclosure.ts— disclosure boundary enforcementsrc/enclave/runtime-preflight.ts— enclave validation conditionalssrc/commands/validators/config-assembly.ts— config assembly branchessrc/microvm/network-reservation.ts— network reservation state transitions📅 Recent Source Changes (last 7 days)
No source changes detected in the past 7 days in this repository. Coverage metrics reflect the current stable state of the codebase.
🔎 Notable Findings
Finite-Disclosure Coverage Crisis:
src/bounded-execution/finite-disclosure.tshas only 9.26% statement and 0.26% branch coverage. This module controls disclosure boundaries — test coverage must be improved before any production deployment involving bounded-execution workflows.MicroVM Stack Under-Tested: The entire microVM backend (
src/microvm/*) shows 50–72% coverage with weak branch coverage (41–54%). As this is a new backend feature, systematic branch-level testing is critical before feature completion.Strong Core Firewall Coverage: Host iptables, Squid domain filtering, and Docker lifecycle management show high coverage with comprehensive test suites. The firewall's core security guarantees are well-validated.
Config Assembly Branch Gaps:
src/commands/validators/config-assembly.tshas only 25% branch coverage despite 73.68% statement coverage. This indicates many validation conditionals are untested — edge-case config errors may not be caught.🎯 Recommendations
🔴 HIGH PRIORITY (Must address for production readiness)
🟠 MEDIUM PRIORITY (Address within sprint)
Enhance config-assembly.ts Branch Coverage — Only 25% of branches tested. Add tests for:
Complete MicroVM Network Tests —
network-reservation.tsandrootfs.tsneed branch-level test expansion:Report Generated: 2026-09-01
Test Suite Status: All tests passing with pre-computed coverage metrics
Next Review: Upon completion of finite-disclosure test improvements
All reactions