Remove unused export from resolveAgentImageConfig#5396
Conversation
resolveAgentImageConfig
There was a problem hiding this comment.
Pull request overview
This PR reduces public API surface in the agent service module by making resolveAgentImageConfig a file-private helper while keeping unit-test access via the existing testHelpers export.
Changes:
- Removed the direct named export from
resolveAgentImageConfigand kept it as a local function. - Continued exposing
resolveAgentImageConfigto tests throughexport const testHelpers = { resolveAgentImageConfig }.
Show a summary per file
| File | Description |
|---|---|
| src/services/agent-service.ts | Makes resolveAgentImageConfig non-exported to reduce module public API while preserving test access via testHelpers. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 0
|
🔑 Smoke Copilot PAT PAT auth validated. All systems operational. ✅ |
|
🔌 Smoke Services — All services reachable! ✅ |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅ |
|
✅ Build Test Suite completed successfully! |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded. |
|
✅ Smoke Claude passed |
|
✅ Smoke Gemini completed. All facets verified. 💎 Smoke test completed with FAIL status. Comment added to PR #5396. |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed... |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
✅ 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. 🔓 |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓 |
🔥 Smoke Test: PASS
Overall: PASS — Auth mode: PAT (COPILOT_GITHUB_TOKEN) cc
|
Smoke Test: Claude Engine Validation
Overall result: PASS
|
Smoke Test: Copilot BYOK (Direct) Mode ✅ PASS
Mode: Direct BYOK (COPILOT_PROVIDER_API_KEY) → api-proxy → api.githubcopilot.com
|
🔭 Smoke Test: API Proxy OpenTelemetry Tracing
Summary: All 5 scenarios pass. OTEL tracing integration is fully functional.
|
🔍 Smoke Test ResultsPR: Remove unused export from
Overall: PASS (verified tests passed; file test unverifiable due to CI template expansion issue)
|
🔬 Chroot Version Comparison Results
Overall: ❌ Not all tests passed — Python and Node.js versions differ between host and chroot.
|
|
Smoke test
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
Smoke Test Results
Overall status: FAIL Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "localhost"See Network Configuration for more information.
|
Smoke Test: GitHub Actions Services Connectivity
Overall: FAIL —
|
|
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
|
resolveAgentImageConfiginsrc/services/agent-service.tswas a direct named export with no consumers outside its defining file, adding unnecessary public API surface.Changes
src/services/agent-service.ts: DropexportfromresolveAgentImageConfig; the function remains accessible to unit tests via the existingtestHelpersexport (the established pattern in this codebase).