Skip to content

[Test Coverage] src/docker-manager.ts - #9846

Merged
lpcox merged 2 commits into
mainfrom
test-coverage/docker-manager-difc-a2a34936c6fef547
Oct 12, 2026
Merged

lpcox merged 2 commits into
mainfrom
test-coverage/docker-manager-difc-a2a34936c6fef547

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Adds unit tests to src/docker-manager.test.ts covering parseDifcProxyHost through the barrel: empty input defaults, scheme stripping, default port, (redacted) port preservation, IPv6 bracket stripping, and rejection of non-numeric or out-of-range ports.

Targeted Jest run: 25/25 passing. ESLint on the file: clean. Existing tests are unchanged.

Generated by Test Coverage Improver · copilot · auto · 22.1 AIC · ⊞ 9.5K · ◷

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lpcox
lpcox marked this pull request as ready for review October 12, 2026 14:03
Copilot AI balanced review requested due to automatic review settings October 12, 2026 14:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The tests duplicate existing coverage and incorrectly codify acceptance of a malformed empty host.

2 open findings
What changed in this PR

Adds parser tests through the docker-manager barrel.

Changes:

  • Tests defaults, schemes, ports, IPv6, and invalid inputs.
  • Duplicates existing host-config parser coverage.
File Description
src/​docker-manager.test.ts Adds parseDifcProxyHost behavioral tests.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/docker-manager.test.ts Outdated
});

it('rejects malformed values and out-of-range ports', () => {
expect(() => dockerManager.parseDifcProxyHost('http://')).not.toThrow();
Comment thread src/docker-manager.test.ts Outdated
});
});

describe('parseDifcProxyHost via barrel', () => {
@lpcox

lpcox commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

@copilot address review feedback

Removed the duplicate parser behavior tests from the barrel suite; the dedicated host-config tests and barrel identity assertions remain. Commit: f4fa821.

Copilot AI requested a review from lpcox October 12, 2026 14:26
@github-actions

Copy link
Copy Markdown
Contributor Author

✅ Copilot review passed with no inline comments.

@github-actions[bot] Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@lpcox
lpcox enabled auto-merge (squash) October 12, 2026 14:43
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓

🔑 BYOK report filed by Smoke Copilot BYOK

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor

@github-actions

Copy link
Copy Markdown
Contributor Author

🔮 The ancient spirits stir... Smoke Codex awakens to divine this pull request...

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

🔌 Smoke Services — All services reachable! ✅

🔌 Service connectivity validated by Smoke Services

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅

🛡️ Egress verdict from Smoke Copilot Network Isolation

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅

📡 OTel tracing validated by Smoke OTel Tracing

@github-actions

Copy link
Copy Markdown
Contributor Author

🪪 Smoke Copilot BYOK AOAI (Entra) is testing Azure OpenAI BYOK (Entra / GitHub OIDC) mode on this pull request...

@github-actions

Copy link
Copy Markdown
Contributor Author

🔑 Smoke Copilot BYOK AOAI (api-key) is testing Azure OpenAI BYOK (api-key) mode on this pull request...

@github-actions

Copy link
Copy Markdown
Contributor Author

💎 Smoke Gemini is crystallizing results on this pull request...

@github-actions

Copy link
Copy Markdown
Contributor Author

🚀 Security Guard has started processing this pull request

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

📰 BREAKING: Report filed by Smoke Copilot

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.

Tested by Smoke Chroot

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Build Test Suite completed successfully!

Generated by Build Test Suite for #9846

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Smoke Claude passed

Generated by Smoke Claude for #9846

@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke Test: Cloud Hypervisor + Copilot

  1. PASS — list_pull_requests call succeeded (returned PR data).
  2. PASS — https://github.com returned HTTP 200.
  3. PASS — Wrote/read back /tmp/gh-aw/agent/smoke-cloud-hypervisor-38265004983.txt successfully.
  4. PASS — (example.com/redacted) blocked by firewall (curl exit 60 / HTTP 000).

All checks passed.

Cloud Hypervisor + Copilot smoke test by Smoke Cloud Hypervisor
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot BYOK ✅ PASS

Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY) via api-proxy → api.githubcopilot.com

Assignee: @lpcox

🔑 BYOK report filed by Smoke Copilot BYOK
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke Test: Claude Engine Validation

Check Status
API ✅ PASS
GitHub CLI ✅ PASS
File ✅ PASS

Overall result: PASS

Generated by Smoke Claude for #9846 · claude · haiku45 · 24 AIC · ⊞ 6.1K · ◷
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke services: PASS

  • ✅ Redis PING → PONG
  • ✅ pg_isready → accepting connections
  • ✅ psql SELECT 1 → 1

🔌 Service connectivity validated by Smoke Services
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

Smoke Copilot — PR: "[Test Coverage] src/docker-manager.ts"

  • GitHub MCP: ✅
  • github.com (HTTP 200): ✅
  • File write/read: ✅
    Overall: PASS — author @github-actions[bot], reviewer @lpcox

📰 BREAKING: Report filed by Smoke Copilot
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

OTEL smoke test

  • ✅ S1 Module loads; exports startRequestSpan, setTokenAttributes, endSpan, shutdown, isEnabled, etc.
  • ✅ S2 OTEL tests: 3 suites, 68/68 passed
  • ✅ S3 Env forwarding: GITHUB_AW_OTEL_TRACE_ID/PARENT_SPAN_ID in env-passthrough.ts; OTEL vars in api-proxy-env-config.ts
  • ✅ S4 onUsage hook present in token-tracker-http.js
  • ✅ S5 Diagnostics: otel.jsonl has 1 line (file exporter fallback)

📡 OTel tracing validated by Smoke OTel Tracing
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

🏗️ Build Test Suite Results

Ecosystem Project Build/Install Tests Status
Bun elysia ❌ not run ❌ FAIL
Bun hono ❌ not run ❌ FAIL
C++ fmt ✅ N/A ✅ PASS
C++ json ✅ N/A ✅ PASS
Deno oak ❌ not run ❌ FAIL
Deno std ❌ not run ❌ FAIL
.NET hello-world ✅ N/A ✅ PASS
.NET json-parse ✅ N/A ✅ PASS
Go color ✅ pass ✅ PASS
Go env ✅ pass ✅ PASS
Go uuid ✅ pass ✅ PASS
Java gson ❌ not run ❌ FAIL
Java caffeine ❌ not run ❌ FAIL
Node.js clsx ✅ pass ✅ PASS
Node.js execa ✅ pass ✅ PASS
Node.js p-limit ✅ pass ✅ PASS
Rust fd ✅ 1/1 passed ✅ PASS
Rust zoxide ✅ 1/1 passed ✅ PASS

Overall: 5/8 ecosystems passed — FAIL

Failures

  • Bun and Deno: the install commands (curl ... | bash and curl ... | sh) were denied by the runtime permission check, so neither tool was installed and no tests ran.
  • Java: Maven failed with LocalRepositoryNotAccessibleException (the local repository was not accessible) for both projects. I ran it with -o (offline), which may have contributed. Compile and tests did not run.

The build-test label was not added.

Generated by Build Test Suite for #9846 · copilot · auto · 15 AIC · ⊞ 11.9K · ◷
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

Chroot Version Comparison

Runtime Host Version Chroot Version Match?
Python Python 3.12.15 Python 3.12.15 ✅ YES
Node.js v24.21.0 v22.23.2 ❌ NO
Go go1.22.12 go1.22.12 ✅ YES

Result: Not all tests passed (Node.js version mismatch), so the smoke-chroot label was not added.

Tested by Smoke Chroot
Add label ready-for-aw to run again

@github-actions github-actions Bot added the smoke-copilot-network-isolation Copilot network-isolation egress smoke test label Oct 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

EGRESS_RESULT allow=pass deny=pass

  • ✅ Allowed domain (api.github.com): HTTP 200
  • ✅ Blocked domain (example.com): blocked
  • Overall: PASS — cc @lpcox

🛡️ Egress verdict from Smoke Copilot Network Isolation
Add label ready-for-aw to run again

@lpcox
lpcox disabled auto-merge October 12, 2026 15:30
@lpcox
lpcox merged commit a1fc1a5 into main Oct 12, 2026
104 of 113 checks passed
@lpcox
lpcox deleted the test-coverage/docker-manager-difc-a2a34936c6fef547 branch October 12, 2026 15:30

This branch had an error being deployed

1 failed deployment
aoai-model — f4fa8216 Deployed Oct 12, 2026 by lpcox via conclusion #1939
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants