[Coverage Report] Test Coverage Report — 2026-08-09 #7157
Closed
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-08-16T18:05:37.825Z.
|
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-09
Overall Coverage
The project maintains strong overall test coverage with 93.1% statement coverage and 94.47% function coverage, indicating comprehensive test suite for the firewall orchestration layer.
🛡️ Security-Critical Path Status
src/host-iptables-rules.tssrc/host-iptables-chain.tssrc/host-iptables-cleanup.tssrc/domain-patterns.tssrc/domain-validation.tssrc/docker-manager.tssrc/squid-config.tssrc/cli.tssrc/bounded-execution/finite-disclosure.tssrc/enclave/runtime-preflight.tsKey observations:
host-iptables-*.ts) are 100% covereddomain-*.ts) is fully testeddocker-manager.ts) is fully testedfinite-disclosure.tshas only 9.26% statement coverage and 0.26% branch coverage — this is the primary bounded execution module and requires immediate attention📋 Coverage Table
Files with < 80% Statement Coverage:
src/bounded-execution/finite-disclosure.tssrc/enclave/runtime-preflight.tssrc/commands/main-action.tssrc/bounded-execution/sbx-ingress-capabilities.tsHigh-coverage files (>95%):
🔧 Function Audit
Audit of top-level functions in critical files:
src/host-iptables-rules.ts: All 9 functions covered (iptables rule generation logic fully tested)src/domain-patterns.ts: All 3 functions covered (domain pattern matching logic fully tested)src/cli-workflow.ts: All 3 functions covered (CLI orchestration logic fully tested)src/cli.ts: 0/0 functions (re-exports only; integration coverage via CLI tests)src/bounded-execution/finite-disclosure.ts: 2/44 functions covered (4.54%) — most finite disclosure logic untestedsrc/enclave/runtime-preflight.ts: 5/5 functions covered (100% function coverage) but 66.66% statement coverage — gap is in branch logic within functions📅 Recent Source Changes (last 7 days)
Recent commits affecting coverage scope:
✅
2e67e92— Add configurable--pids-limitand expose delegated cgroup (Aug 9)✅
ace59e2— Drive Google provider adapters from specs (Aug 9)✅
60888fc— Confirm--allow-host-portswith--enable-host-access(Aug 8)No recent changes to:
src/host-iptables-*.ts(stable)src/squid-config.ts(stable)src/domain-*.ts(stable)Recent activity in scope:
2bf9909— Refactor: remove legacy bounded execution in favor of MCP enclaves (7 days ago)src/bounded-execution/finite-disclosure.tsis legacy code being superseded bysrc/enclave/— low coverage may be acceptable as feature is in transition🔎 Notable Findings
🔴 Legacy Bounded Execution Gap:
src/bounded-execution/finite-disclosure.ts(9.26% statements) is a legacy feature being replaced by MCP enclaves. Per commit2bf9909, this module is slated for removal. The low coverage is a symptom of deprecation, not an active security risk if the feature is not in use. Recommend: Confirm this module is deprecated in docs; if still active, prioritize test coverage.🟡 Enclave Runtime Preflight:
src/enclave/runtime-preflight.ts(66.66% statements, 41.02% branches) is a new feature for unified enclaves. Functions are covered (100%) but branch paths within functions are undertested. Recommend: Add test cases for preflight validation error paths (DNS failures, timeout scenarios, capability negotiation edge cases).🟢 Security-Critical Path Well-Tested: All primary firewall components (
host-iptables-*.ts,domain-*.ts,squid-config.ts,docker-manager.ts) achieve 100% statement coverage. Network isolation logic is production-ready from a test coverage perspective.Branches vs. Statements Gap: Branch coverage (86.33%) is ~7% lower than statement coverage (93.1%). Most gaps are in error handling paths and conditional logic, which are lower-risk than critical security paths (e.g., the 50% branch coverage in
src/cli.tsis a single uncovered branch in a re-export).🎯 Recommendations
🔴 HIGH — Address Legacy Bounded Execution Coverage
src/bounded-execution/finite-disclosure.tsis still in use or fully deprecated🟡 MEDIUM — Expand Enclave Preflight Test Coverage
src/enclave/runtime-preflight.tscovering:AWF_ENCLAVE_MCP_READINESS_TIMEOUT_MS)🟡 MEDIUM — Improve Main Action CLI Routing
src/commands/main-action.tscovering:📊 Coverage Trend
Summary:
Next Steps:
finite-disclosure.tsReport Generated: 2026-08-09 18:02:22 UTC
Coverage Dataset:
coverage/coverage-summary.json(post-test-run snapshot)All reactions