Keep default image constants internal - #7701
Conversation
There was a problem hiding this comment.
Pull request overview
Narrows image-resolver’s public API while preserving image-resolution behavior.
Changes:
- Makes three default image constants module-private.
- Adds regression coverage confirming they are not exported.
Show a summary per file
| File | Description |
|---|---|
src/image-resolver.ts |
Removes exports from internal defaults. |
src/image-resolver.test.ts |
Verifies the defaults remain private. |
Review details
💡 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 BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓
|
|
✅ Build Test Suite completed successfully!
|
|
🚀 Security Guard has started processing this pull request |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅
|
|
📰 VERDICT: Smoke Docker Sbx has concluded. All systems operational. This is a developing story. 🎤
|
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 Warning Firewall blocked 3 domainsThe following domains were blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "msfeed2.pkgs.visualstudio.com"
- "msfeed25.pkgs.visualstudio.com"
- "registry.npmjs.org"See Network Configuration for more information.
|
|
✅ Smoke Claude passed
|
|
🔌 Smoke Services — All services reachable! ✅
|
|
❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed...
|
|
✅ Contribution Check completed successfully! Contribution check complete: the PR updates internals only, includes a focused regression test, and its description clearly references the related issue (#7690). No guideline violations found that warrant a review comment.
|
|
🛡️ 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 Gemini reports failed. Facets need polishing...
|
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
Smoke Test: Claude Engine Validation
Overall result: PASS
|
Smoke Test: Copilot Engine
Overall: PASS cc
|
|
EGRESS_RESULT allow=pass deny=pass ✅ Allowed domain (github.com) reachable: 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) ✅Tests:
Status: PASS — Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY)
|
|
Docker Sbx Smoke Test —
Overall: PASS
|
Smoke Test: Services Connectivity
Overall: FAIL —
|
|
Smoke test: FAIL
Warning Firewall blocked 3 domainsThe following domains were blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "msfeed2.pkgs.visualstudio.com"
- "msfeed25.pkgs.visualstudio.com"
- "registry.npmjs.org"See Network Configuration for more information.
|
|
Smoke test results:
Running in direct BYOK mode (AWF_AUTH_TYPE=github-oidc + AWF_AUTH_AZURE_* + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) authenticated via Microsoft Entra Overall: PASS cc
|
Smoke Test: API Proxy OTel Tracing — Results
Overall: PASS — all core OTEL integration points verified functional; no unexpected failures.
|
Chroot Version Comparison
Result: Not all tests passed — Node.js version differs between host and chroot environment.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — PASS Notes:
|
src/image-resolver.tsexposed default image constants that had no external consumers, making them look like supported public API. This narrows the module surface while preserving existing image resolution behavior.API surface cleanup
DEFAULT_IMAGE_REGISTRYDEFAULT_DIND_STAGING_IMAGEDEFAULT_DOH_PROXY_IMAGERegression coverage
image-resolver.