[Coverage Report] Test Coverage Report — 2026-05-27 #3901
Replies: 1 comment
-
|
🔮 The ancient spirits stir and mark this smoke test as witnessed. Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
Beta Was this translation helpful? Give feedback.
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.
-
Overall Coverage
Overall coverage is strong across all metrics. No files fall below 50% statement coverage.
🔴 Critical Gaps (< 50% statement coverage)
None. All files exceed 50% statement coverage.
🟡 Low Coverage (50–79% statement coverage)
All files are above 80% — no files fall in this range.
🛡️ Security-Critical Path Status
src/host-iptables.tssrc/squid-config.tssrc/docker-manager.tssrc/domain-patterns.tssrc/cli.tsAll core security enforcement modules (
host-iptables,squid-config,docker-manager) are at 100% coverage. The only security-critical file with lower branch coverage issrc/cli.tsat 50%.📋 Files Needing Attention (80–90% range)
src/commands/validators/network-options.tssrc/logs/audit-enricher.tssrc/cli.tssrc/logs/log-parser.tssrc/squid/policy-manifest.tssrc/services/agent-volumes/docker-host-staging.tssrc/commands/logs-command-helpers.tssrc/cli-workflow.ts🔍 Notable Findings
src/cli.ts— 50% branch coverage: As the main entry point and orchestration layer, uncovered branches likely include error-handling paths (e.g.,--keep-containersedge cases, signal handling when containers fail to start). Given this file's role coordinating the entire AWF lifecycle, improving its branch coverage would increase confidence in failure scenarios.src/commands/validators/network-options.ts— 50% branch coverage: Network validation is security-relevant — uncovered branches may include edge cases in--allow-domainsparsing or DNS server validation. These could mask silent misconfigurations.src/logs/log-parser.ts— 67% branch coverage: Squid log parsing has uncovered branches. If the parser silently skips malformed log entries, security audits could produce incomplete data. Tests for malformed or truncated log lines would be valuable.src/squid/policy-manifest.ts— 70% function coverage: Three functions in this module have zero test coverage. Policy manifests drive domain whitelisting decisions, so uncovered functions here could represent blind spots in the ACL enforcement pipeline.📈 Recommendations
High —
src/cli.tsbranch coverage (50%): Add tests for the error paths in the main orchestration flow: container startup failures, signal interrupts mid-run, and--keep-containersbehavior. This is the most impactful gap given its role as the security perimeter entry point.High —
src/commands/validators/network-options.tsbranch coverage (50%): Cover the uncovered validation branches with unit tests for invalid domain formats, empty allow-lists, and edge-case DNS server inputs.Medium —
src/squid/policy-manifest.tsfunction coverage (70%): Identify and test the three uncovered functions; since policy manifests feed the domain ACL, any uncovered logic here is a potential gap in firewall rule validation.Low —
src/logs/log-parser.ts/src/logs/audit-enricher.ts: Add tests for malformed Squid log entries, truncated lines, and unusual timestamp formats to harden the audit trail pipeline.Generated by test-coverage-reporter workflow. Trigger:
push· Run: 26483218375Beta Was this translation helpful? Give feedback.
All reactions