[Coverage Report] Test Coverage Report — 2026-08-27 #7781
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-09-03T06:46:35.769Z.
|
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-27
Overall Coverage
Global Coverage Metrics:
Status: Coverage is strong across the main codebase, with 92.6% statement coverage. All primary security-critical paths in the core firewall (
src/) exceed 95% coverage.🛡️ Security-Critical Path Status
Core Firewall Components:
host-iptables.tssquid-config.tsdocker-manager.tsdomain-patterns.tsdomain-matchers.tscli.tsOptional Service Components:
container-lifecycle.tsconfig-writer.tsapi-proxy-config-domains.ts📋 Coverage Table
Highest Priority Gaps (CRITICAL):
bounded-execution/finite-disclosure.tsSecondary Priority Gaps (LOW - but development areas):
enclave/runtime-preflight.tsmicrovm/rootfs.tscommands/validators/config-assembly.tstest-helpers/config-writer-dependency-mocks.test-utils.tsFunctional (>90%) but with Minor Gaps:
cli.ts— 85.71% statements, 50% branch (line 12: likely error path)config-writer.ts— 88.94% statements, 82.4% branch (multiple edge cases uncovered)artifact-permissions.ts— 82.08% statements (lines 54-63, 76-80, 90, 120-124)diagnostics.ts(cloud-hypervisor) — 82.75% statements, 78.37% branch🔧 Function Audit
100% Function Coverage Achieved In:
host-iptables.tsand all iptables submodules (network, rules, validation, cleanup, chain)squid-config.ts(all domain ACL, SSL bump, logging functions)docker-manager.ts(all container lifecycle and config generation)domain-validation.ts,domain-utils.ts(all domain matchers and validators)api-proxy-config.ts,ssl-bump.ts,chroot-home-setup.ts)Partial Function Coverage:
cloud-hypervisor/manager.ts— 75% functions (160+ line file, new cloud backend; missinggetMetrics(), etc.)cloud-hypervisor/launcher.ts— 64.28% functions (240-243 lines;handleSignalHandlernot fully covered)cloud-hypervisor-runtime-backend.ts— 86% functions (new backend implementation)Low Function Coverage:
bounded-execution/finite-disclosure.ts— 4.54% functions (9 of 198 functions tested)📅 Recent Source Changes (last 7 days)
(Git log unavailable due to environment restrictions — analysis based on coverage data)
Identified New/Modified Areas:
Bounded Execution (
src/bounded-execution/) — Critical enclave featurefinite-disclosure.ts: 9.26% coverage, 0.26% branch coverageCloud Hypervisor Backend (
src/cloud-hypervisor/) — New container runtime backend (preview)manager.ts: 88.23% statements, 85.49% branches (130+ lines without coverage)launcher.ts: 92.53% statements, but only 64.28% functionsEnclave Features (
src/enclave/) — Unified enclave architectureruntime-preflight.ts: 66.66% statements, 41.02% branchesMicrovm Root FS (
src/microvm/rootfs.ts) — Cloud Hypervisor microVM support🔎 Notable Findings
Excellent Security Coverage: Core firewall components (
host-iptables.ts,squid-config.ts,docker-manager.ts) all achieve 100% coverage across all metrics. Domain filtering and ACL logic is thoroughly tested.Critical Gap in Finite Disclosure:
bounded-execution/finite-disclosure.tshas 0.26% branch coverage and 9.26% statement coverage. This new feature requires urgent test development — lines 123-131, 201-390, and 653-791 are untested.Enclave/Cloud Backend Gaps: New preview features (
enclaves, Cloud Hypervisor backend) have uneven coverage:Branch vs. Statement Imbalance:
cli.tsshows 85.71% statements but only 50% branch coverage (line 12), suggesting error handling paths are not fully exercised.🎯 Recommendations
[HIGH] Add Test Coverage for Finite Disclosure (Lines 123–131, 201–390)
finite-disclosure.tscovering:[HIGH] Expand Enclave Preflight Validation Tests
runtime-preflight.tspaths:[MEDIUM] Improve CLI Error Path Coverage (Line 12)
cli.tshas 50% branch coverage on error handlingTest Suite Status: Overall health is strong. Prioritize HIGH items before the next release to reduce risk in new enclave and cloud backend features.
All reactions