[Coverage Report] Test Coverage Report — 2026-05-11 #2951
Replies: 2 comments
-
|
🔮 The ancient spirits stir: the Codex smoke test agent passed through this circle, leaving a brief ember in the runes. 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.
-
|
🔮 The ancient spirits stir: the Codex smoke test agent passed through this circle, read the signs, and left this mark in the ledger. 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Overall Coverage
🔴 Critical Gaps (< 50% statement coverage)
src/commands/main-action.ts🟡 Low Coverage (50–79% statement coverage)
src/commands/subcommands.tssrc/container-cleanup.ts🛡️ Security-Critical Path Status
src/host-iptables.tssrc/squid-config.tssrc/docker-manager.tssrc/domain-patterns.tssrc/cli.ts📋 Full Coverage Table
api-proxy-config.tscli-options.tscli-workflow.tscli.tscompose-generator.tsconfig-file.tscontainer-cleanup.tscontainer-lifecycle.tscopilot-api-resolver.tsdlp.tsdns-resolver.tsdocker-manager.tsdomain-patterns.tsdomain-utils.tsenv-utils.tshost-env.tshost-iptables.tsimage-tag.tslogger.tsoption-parsers.tspid-tracker.tsredact-secrets.tsrules.tsschema-validator.tssquid-config.tsssl-bump.tsupstream-proxy.tscommands/logs-audit.tscommands/logs-command-helpers.tscommands/logs-stats.tscommands/logs-summary.tscommands/logs.tscommands/main-action.tscommands/predownload.tscommands/subcommands.tslogs/audit-enricher.tslogs/log-aggregator.tslogs/log-discovery.tslogs/log-formatter.tslogs/log-parser.tslogs/log-streamer.tslogs/stats-formatter.tsservices/agent-environment.tsservices/agent-service.tsservices/agent-volumes.tsservices/api-proxy-service.tsservices/cli-proxy-service.tsservices/doh-proxy-service.tsservices/squid-service.ts🔍 Notable Findings
src/commands/main-action.ts(5.8% statements, 0% branches) — The main action orchestrator is almost entirely untested. This file likely contains critical setup and teardown logic for the firewall action. Added in the last 7 days, it currently has only 1 of 8 functions covered.src/commands/subcommands.ts(50% statements, 21.4% branches) — Subcommand dispatch has very low branch coverage, meaning most conditional routing paths (e.g., deciding which sub-command to invoke) are untested. Also recently added.src/cli.ts— function coverage only 8.3% — While statement coverage is high (98.3%), only 1 of 12 functions has test coverage. The existing tests likely exercise a narrow initialization path without testing signal handling, shutdown sequences, or error cases.src/logs/log-parser.ts(68.6% branch coverage) — Log parsing has several uncovered branch paths. Since parsed Squid logs are the source of truth for firewall audit trails, branch gaps here may mean edge-case log lines are silently mishandled.📈 Recommendations
High —
src/commands/main-action.ts: Add unit tests for the main action entry points. Specifically cover the startup sequence, error handling when containers fail to start, and the teardown path. This is a recently-added file with essentially no coverage.High —
src/cli.tsfunction coverage: Add tests for signal handling (SIGINT/SIGTERM), the--keep-containersflag, and error exit paths. The CLI entry point has statement coverage via integration-style tests but most functions are untouched.Medium —
src/commands/subcommands.ts: Add tests that exercise each subcommand dispatch branch (e.g.,logs stats,logs summary,predownload) to lift branch coverage above 50%.Low —
src/logs/log-parser.ts: Add tests for malformed or unexpected Squid log lines to cover the remaining 31% of branches. Focus on lines with missing fields, unusual cache codes, or IPv6 addresses.Generated by test-coverage-reporter workflow. Trigger:
push· Run: 25702742442 · 56 test files · 61 source filesBeta Was this translation helpful? Give feedback.
All reactions