[Coverage Report] Test Coverage Report — 2026-05-25 #3806
Closed
Replies: 2 comments
-
|
This discussion was automatically closed because it expired on 2026-06-01T19:05:28.514Z.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
🔮 The ancient spirits stir; the smoke-test agent passed through and left this omen of success. The build held, the browser saw GitHub, and the firewall remains watchful. 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
89 test files covering 133 source files. Overall health is strong; all security-critical modules are well-covered.
🔴 Critical Gaps (< 50% statement coverage)
src/services/agent-environment.tsexport { buildAgentEnvironment } from './agent-environment/environment-builder'. The actual implementation (environment-builder.ts) has 93.5% coverage. No action needed.🟡 Low Coverage (50–79% statement coverage)
None — all non-barrel files are ≥ 81% statement coverage.
Files between 80–89% (worth monitoring):
src/services/agent-volumes/hosts-file.tssrc/commands/validators/network-options.tssrc/logs/audit-enricher.tssrc/cli.tssrc/logs/log-parser.ts🛡️ Security-Critical Path Status
src/host-iptables.tssrc/squid-config.tssrc/docker-manager.tssrc/domain-patterns.tssrc/cli.tssrc/host-iptables-rules.tssrc/squid/access-rules.tssrc/squid/domain-acl.ts📋 Full Coverage Table
Click to expand all files
src/services/agent-environment.tssrc/services/agent-volumes/hosts-file.tssrc/commands/validators/network-options.tssrc/logs/audit-enricher.tssrc/cli.tssrc/logs/log-parser.tssrc/squid/policy-manifest.tssrc/commands/logs-command-helpers.tssrc/cli-workflow.tssrc/services/host-path-prefix.tssrc/services/doh-proxy-service.tssrc/container-cleanup.tssrc/config-writer.tssrc/test-helpers/docker-test-fixtures.test-utils.tssrc/services/agent-volumes/docker-socket.tssrc/logs/log-streamer.tssrc/commands/validators/agent-options.tssrc/cli-options.tssrc/services/agent-environment/environment-builder.tssrc/squid/ssl-bump.tssrc/ssl-bump.tssrc/host-env.tssrc/container-lifecycle.tssrc/logs/log-aggregator.tssrc/upstream-proxy.tssrc/commands/validators/log-and-limits.tssrc/commands/main-action.tssrc/services/cli-proxy-service.tssrc/parsers/volume-parsers.tssrc/pid-tracker.tssrc/commands/validators/config-assembly.tssrc/services/agent-environment/env-passthrough.tssrc/host-iptables-rules.tssrc/logs/log-formatter.tssrc/services/agent-volumes/home-strategy.tssrc/domain-patterns.tssrc/services/agent-service.tssrc/config-file.tssrc/rules.tssrc/compose-generator.tssrc/option-parsers.tssrc/services/api-proxy-service.tssrc/api-proxy-config.tssrc/constants.tssrc/copilot-api-resolver.tssrc/dind-probe.tssrc/dlp.tssrc/dns-resolver.tssrc/docker-host.tssrc/docker-manager.tssrc/domain-utils.tssrc/env-utils.tssrc/github-env.tssrc/host-identity.tssrc/host-iptables-cleanup.tssrc/host-iptables-network.tssrc/host-iptables-shared.tssrc/host-iptables.tssrc/image-tag.tssrc/log-paths.tssrc/logger.tssrc/redact-secrets.tssrc/schema-validator.tssrc/squid-config.tssrc/commands/build-config.tssrc/commands/logs-audit.tssrc/commands/logs-stats.tssrc/commands/logs-summary.tssrc/commands/logs.tssrc/commands/network-setup.tssrc/commands/predownload.tssrc/commands/preflight.tssrc/commands/signal-handler.tssrc/commands/subcommands.tssrc/commands/validate-options.tssrc/logs/index.tssrc/logs/log-discovery.tssrc/logs/stats-formatter.tssrc/services/agent-environment/api-proxy-environment.tssrc/services/agent-environment/core-environment.tssrc/services/agent-environment/excluded-vars.tssrc/services/agent-environment/github-actions-environment.tssrc/services/agent-environment/host-path-recovery.tssrc/services/agent-environment/observability-environment.tssrc/services/agent-environment/proxy-environment.tssrc/services/agent-environment/tool-specific-environment.tssrc/services/agent-volumes/credential-hiding.tssrc/services/agent-volumes/etc-mounts.tssrc/services/agent-volumes/ssl-mounts.tssrc/services/agent-volumes/system-mounts.tssrc/services/agent-volumes/volume-builder.tssrc/services/agent-volumes/workspace-mounts.tssrc/squid/access-rules.tssrc/squid/acl-generator.tssrc/squid/config-generator.tssrc/squid/config-sections.tssrc/squid/domain-acl.tssrc/squid/upstream-proxy.tssrc/squid/validation.ts🔍 Notable Findings
src/cli.ts— 50% branch coverage (recently modified): The main CLI entry point has half its branches untested. Uncovered branches are likely error-handling paths for container startup failures, SIGINT/SIGTERM signal handling, and--keep-containerscleanup logic. This file was modified in the last 7 days. Tests simulating container startup failures or interrupt signals would close this gap.src/cli-options.ts— 25% function coverage, 60% branch coverage (recently modified): Only 25% of exported functions are exercised in a 392-line options-parsing module that was recently changed. The uncovered portions likely involve option combination validation and edge-case flag interactions.src/commands/validators/network-options.ts— 50% branch coverage: Half the validation branches for network options (DNS servers, domain lists, proxy settings) are untested. Invalid input paths (malformed domains, conflicting flags) are likely the uncovered branches.src/logs/log-parser.ts+src/logs/audit-enricher.ts— 67–74% branch coverage: Log parsing/enrichment has meaningful branch gaps. Malformed log lines, edge-case timestamp formats, and enrichment failure paths are likely uncovered. The recently addedlogs auditcommand means these code paths are newly active.📈 Recommendations
High — Add error-path tests for
src/cli.ts: cover container-startup-failure branches and SIGINT/SIGTERM teardown paths. Branch coverage is 50% for the top-level orchestrator.High — Cover
src/cli-options.tsfunctions: add tests for conflicting/invalid option combinations (e.g.,--enable-api-proxywithout credentials,--dns-serverswith invalid IPs). Function coverage is only 25%.Medium — Test invalid-input branches in
src/commands/validators/network-options.ts: malformed domain patterns, empty allow-lists, conflicting proxy settings. Branch coverage is 50%.Low — Improve
src/logs/log-parser.tsandsrc/logs/audit-enricher.tsbranch coverage with malformed/truncated log line fixtures.Generated by test-coverage-reporter workflow. Trigger:
push· Run: 26415536503Beta Was this translation helpful? Give feedback.
All reactions