Repository navigation
[Coverage Report] Test Coverage Report — 2026-10-07 #9526
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-10-14T01:48:30.041Z.
|
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-07
Overall Coverage
The project maintains strong overall test coverage across all metrics. Statement and line coverage exceed 91%, with branch coverage at a healthy 85.08%. This indicates comprehensive unit testing and good path coverage for most code paths.
🛡️ Security-Critical Path Status
Core firewall and network isolation components show excellent coverage:
src/docker-manager.tssrc/squid-config.tssrc/domain-patterns.tssrc/host-iptables-chain.tssrc/host-iptables-cleanup.tssrc/host-iptables-network.tssrc/cli.tsKey Finding: All security-critical network isolation and firewall configuration modules have 100% coverage, which is exceptional for a security-focused project. The only minor gap is in
src/cli.ts(the entry point), which has 1 uncovered line (likely an error handling or edge case).📋 Coverage Table
Files with Coverage < 80% (Requires Attention):
src/nvx/cleanup-registry.tssrc/bounded-execution/finite-cardinality.tssrc/microvm/network-reservation.tssrc/bounded-execution/finite-disclosure.tssrc/bounded-execution/finite-schema.tssrc/artifact-permissions.tssrc/config-writer.tssrc/cli.ts🔧 Function Audit
High-Value Functions in Critical Gaps:
src/nvx/cleanup-registry.ts(42.8% coverage)src/bounded-execution/finite-cardinality.ts(46.03% coverage)src/bounded-execution/finite-disclosure.ts(51.78%, branch coverage 11.42%📅 Recent Source Changes (last 7 days)
7 commits to
src/in the last week:b3f1fa1— feat: distinguish enclave mount capture failure hypotheses (feat: distinguish enclave mount capture failure hypotheses #9525)a375a8f— Reject unsupported reasoning efforts before proxying (Reject unsupported reasoning efforts before proxying #9520)b9f235a— Add granular Cloud Hypervisor artifact snapshot diagnostics (Add granular Cloud Hypervisor artifact snapshot diagnostics #9521)4b1a19e— Clarify max-turns guidance in LLM invocation-cap errors (Clarify max-turns guidance in LLM invocation-cap errors #9512)4790477— fix: build before running tests (fix: build before running tests #9517)Modified files include:
src/domain-patterns.ts(security-critical, 100% coverage ✅)src/host-env.ts,src/runner-tool-cache.ts(infrastructure)src/services/agent-volumes/*(sandbox setup)src/api-proxy-config-*.ts(API proxy routing)Positive Signal: Recent changes to security-critical files like
domain-patterns.tsshow strong test coverage.🔎 Notable Findings
🟢 Security-Critical Code is Highly Tested
🟠 Bounded-Execution Module Lacks Coverage
src/bounded-execution/have significantly lower coverage (42–58%)finite-disclosure.tshas critically low 11.42% branch coverage, suggesting entire conditional branches are never executed during tests🟡 Entry Point (cli.ts) Has Minor Gap
src/cli.ts(likely error handling or signal cleanup)✅ Branch Coverage is Healthy
finite-disclosure.tswith 11.42% branch coverage needs urgent attention🎯 Recommendations
High Priority (Address Immediately)
1. Fix
src/bounded-execution/finite-disclosure.ts(🔴 CRITICAL)2. Add Coverage for
src/bounded-execution/finite-cardinality.ts(🔴 CRITICAL)Medium Priority (Improve in Next Sprint)
3. Increase Coverage for
src/nvx/cleanup-registry.ts(🟠 HIGH)4. Refactor/Extend Tests for
src/config-writer.ts(🟡 MEDIUM)Low Priority (Polish)
5. Add 1 Test Case for
src/cli.ts(🟡 MEDIUM)Summary
Verdict: The project has excellent coverage for security-critical paths (firewall, network isolation, domain filtering all at 100%). However, bounded-execution and NVX modules need urgent attention, particularly
finite-disclosure.tswith its critically low branch coverage. The overall coverage trend is positive, and recent commits show good test discipline.Next Steps:
All reactions