Make isNonPortableDns internal to dns-resolver - #7192
Conversation
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
isNonPortableDns internal to dns-resolver
There was a problem hiding this comment.
Pull request overview
Narrows the DNS resolver API without changing runtime behavior.
Changes:
- Makes
isNonPortableDnsprivate todns-resolver. - Retains behavioral coverage through public
filterForNetworkIsolationtests.
Show a summary per file
| File | Description |
|---|---|
src/dns-resolver.ts |
Removes the helper’s export modifier. |
src/dns-resolver.test.ts |
Removes direct internal-helper tests and import. |
Review details
Tip
Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Balanced
|
✅ Copilot review passed with no inline comments. @copilot Add the |
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
|
🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅ Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "example.com"See Network Configuration for more information.
|
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed...
|
|
✅ Contribution Check completed successfully! Contribution check complete for PR #7192: no issues found against CONTRIBUTING.md. The PR keeps the helper internal, updates tests to the public API, and already references the related issue (#7182).
|
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅
|
|
❌ Smoke Gemini reports failed. Facets need polishing...
|
|
📰 VERDICT: Smoke Docker Sbx has concluded. All systems operational. This is a developing story. 🎤
|
|
❌ Smoke Copilot BYOK AOAI (Entra) reports failed. AOAI BYOK (Entra) mode investigation needed...
|
|
🔌 Smoke Services — All services reachable! ✅
|
|
🚀 Security Guard has started processing this pull request |
|
✅ Build Test Suite completed successfully!
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
✅ Smoke Claude passed
|
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 Warning Firewall blocked 5 domainsThe following domains were blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "msfeed12.pkgs.visualstudio.com"
- "msfeed17.pkgs.visualstudio.com"
- "msfeed2.pkgs.visualstudio.com"
- "msfeed25.pkgs.visualstudio.com"
- "registry.npmjs.org"See Network Configuration for more information.
|
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
|
EGRESS_RESULT allow=pass deny=pass ✅ Allowed domain (api.github.com) reachable — HTTP 200 Overall: PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "example.com"See Network Configuration for more information.
|
|
Smoke Test: Copilot BYOK (Direct) Mode
Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY) via api-proxy → api.githubcopilot.com Overall: PASS cc
|
Smoke Test: Claude Engine Validation
Overall result: PASS
|
Smoke Test: Copilot EnginePRs checked: #7194 (ci: run Firecracker live smoke on hosted Ubuntu), #7175 (Add B21/B22/B23 self-hosted failure-mode lessons)
Overall: PASS
|
Smoke Test: GitHub Actions Services Connectivity
Overall: FAIL — host.docker.internal could not be resolved from within the AWF sandbox.
|
|
OTel Tracing Smoke Test — All scenarios passed ✅
No regressions detected in OTEL tracing integration.
|
Chroot Version Comparison
Result: Not all versions matched (Node.js differs between host and chroot environment), so the
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — PASS Note: Java's initial
|
Smoke Test: Docker Sbx Validation
Overall: PASS Recent PRs: #7194 "ci: run Firecracker live smoke on hosted Ubuntu", #7175 "Add B21/B22/B23 self-hosted failure-mode lessons to runner-doctor catalog" cc
|
|
fix(ci): restore Firecracker artifact executable modes Warning Firewall blocked 5 domainsThe following domains were blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "msfeed12.pkgs.visualstudio.com"
- "msfeed17.pkgs.visualstudio.com"
- "msfeed2.pkgs.visualstudio.com"
- "msfeed25.pkgs.visualstudio.com"
- "registry.npmjs.org"See Network Configuration for more information.
|
isNonPortableDnswas exported fromsrc/dns-resolver.tsbut had no external runtime consumers, unnecessarily widening the module API surface. This change reduces public surface area while preserving resolver behavior.API surface cleanup
exportmodifier fromisNonPortableDnsso it remains an internal helper used byfilterForNetworkIsolation.Test alignment with public contract
src/dns-resolver.test.tsto stop importing/testingisNonPortableDnsdirectly.filterForNetworkIsolationtests, which exercise the same non-portable DNS filtering paths via the public API.