Pin Duplicate Code Detector to priced Copilot model to avoid unknown-model AI credit failures#4942
Conversation
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
There was a problem hiding this comment.
Pull request overview
Pins the Duplicate Code Detector agentic workflow to a known-priced Copilot model (gpt-5.4-mini) so runs remain deterministic and don’t intermittently fail under max-ai-credits due to unknown/unpriced model resolution.
Changes:
- Add explicit
engine.id/engine.modelto.github/workflows/duplicate-code-detector.md. - Update
.github/workflows/duplicate-code-detector.lock.ymlruntime injection points (GH_AW_INFO_MODEL,COPILOT_MODEL,GH_AW_ENGINE_MODEL) to the pinned model. - Refresh lockfile metadata hash to match updated frontmatter.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/duplicate-code-detector.md | Adds an explicit Copilot engine + fixed model to avoid model-selection drift under AI credit enforcement. |
| .github/workflows/duplicate-code-detector.lock.yml | Syncs the compiled workflow’s model-related env vars (and metadata hash) to the pinned model. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 1
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw)
Overall: PASS
|
The compiler now correctly emits agent_model:gpt-5.4-mini in the metadata header, consistent with other pinned-model workflows. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS Environment Details
|
Smoke Test Results: Copilot BYOK (Direct Mode)✅ MCP Connectivity - GitHub API working Status: PASS — Running in direct BYOK mode via
|
🔬 Smoke Test Results — PR #4942"Pin Duplicate Code Detector to priced Copilot model..."
Overall: FAIL — Pre-computed step outputs were not injected (raw
|
🔥 Smoke Test: Copilot PAT — PASS
PR: Pin Duplicate Code Detector to priced Copilot model to avoid unknown-model AI credit failures
|
|
PRs: Refactor OpenAI BYOK base URL parsing to reuse shared proxy URL normalization 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.
|
Smoke Test: GitHub Actions Services Connectivity
Overall: FAIL — Service containers are not reachable from this environment. Neither
|
Smoke Test: Gemini Engine Validation
Overall Status: FAIL Note: Only one PR found in shallow log:
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.
|
Duplicate Code Detector intermittently failed under
max-ai-creditsbecause model selection could resolve to an unpriced/unknown model, which triggers AWF API-proxy rejection. This change hard-pins the workflow to a known priced model so AI credit enforcement remains deterministic.Root-cause containment
engine.id: copilotengine.model: gpt-5.4-miniCompiled workflow sync
GH_AW_INFO_MODELCOPILOT_MODELGH_AW_ENGINE_MODELResulting behavior
unknown_model_ai_creditsaborts whenmax-ai-creditsis active.