[Coverage Report] Test Coverage Report — 2026-08-20 #7558
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-08-27T04:33:17.039Z.
|
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-08-20
Overall Coverage
The firewall maintains strong baseline coverage across the codebase:
This represents high-quality test coverage for a security-critical network isolation firewall. The branch coverage dip reflects edge cases and error paths that are harder to exercise in test environments.
🛡️ Security-Critical Path Status
✅ Network Isolation (Excellent)
All
host-iptables-*.tsmodules maintain 100% coverage:host-iptables-chain.ts(100%) — Chain managementhost-iptables-rules.ts(100%) — Rule generationhost-iptables-shared.ts(100%) — Shared utilitieshost-iptables-validation.ts(100%) — Rule validationhost-iptables-cleanup.ts(100%) — Cleanup logicNetwork traffic filtering rules are fully covered.
✅ Domain Filtering (Excellent)
domain-patterns.ts(100% stmts, 89.47% branches) — Pattern validationdomain-utils.ts(100%) — Domain utilitiesdomain-validation.ts(100%) — Validation logicsquid-config.ts(100%) — Squid ACL generationDomain whitelisting logic is well-tested.
finite-disclosure.ts(9.26% stmts, 0.26% branches) — CRITICAL📋 Coverage Table
bounded-execution/finite-disclosure.tsenclave/runtime-preflight.tscommands/validators/config-assembly.tsmicrovm/rootfs.tscloud-hypervisor/virtiofsd.tshost-iptables-*.ts(6 files)domain-*.ts(4 files)🔧 Function Audit
Well-covered function counts:
Gap areas by function coverage:
finite-disclosure.ts: 2 of 44 functions (4.54%) — disclosure logic untestedcloud-hypervisor/virtiofsd.ts: 9 of 19 functions (47.36%) — microVM virtiofsd setupenclave/runtime-preflight.ts: 5 of 5 functions (100%) but with low branch coverage — preflight checks incomplete📅 Recent Source Changes (last 7 days)
Recent commits show focus on microVM and enclave stability:
d79988b: Fix Cloud Hypervisor guest network readiness racec80f528: Support Copilot Auto API versions4549a5e: Inject stable X-Interaction-Id and Copilot-Integration-Id051292a: Harden local state mounts across sandbox runtimes6de3cb1: Fix enclave smoke runtime and rootless cleanup failuresNote: Low coverage in
cloud-hypervisor/virtiofsd.ts(72.51%) andmicrovm/rootfs.ts(71.69%) may reflect recent rapid development in microVM support. Consider adding integration tests for these paths.🔎 Notable Findings
Network isolation module is exceptionally well-tested — All six
host-iptables-*.tsmodules maintain 100% coverage across statements and branches. This is the core security boundary and is thoroughly validated.Bounded execution logic is at-risk —
finite-disclosure.ts(9.26% stmts, 0.26% branches) controls disclosure mitigation and sensitive data handling. With only 43 of 464 statements covered, regressions in this critical module could ship undetected.Domain filtering is robust — Four domain-related modules average 99.75% statement coverage. HTTP/HTTPS ACL logic is comprehensive and well-exercised.
MicroVM and enclave features need test expansion —
cloud-hypervisor/virtiofsd.ts,microvm/rootfs.ts, andenclave/runtime-preflight.tslag at 66–72% coverage, reflecting active development or optional runtime paths. These should have test coverage expanded as the features stabilize.🎯 Recommendations
Priority 1 (High) — Add finite-disclosure.ts tests
finite-disclosure.tsfrom 9.26% to ≥80%Priority 2 (High) — Expand cloud-hypervisor/virtiofsd.ts tests
Priority 3 (Medium) — Improve enclave/runtime-preflight.ts branch coverage
Generated: 2026-08-20
Baseline: Latest test run
Files analyzed: 78 source files, 1 aggregate
All reactions