Skip to content

ci: add effort-routed Copilot case to model-routing smoke - #9243

Merged
lpcox merged 3 commits into
mainfrom
ci/routing-smoke-effort-case
Sep 30, 2026
Merged

lpcox merged 3 commits into
mainfrom
ci/routing-smoke-effort-case

Conversation

@lpcox

@lpcox lpcox commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Refs #9238, covering step 1.

Change

  • The model-routing smoke now pins v0.28.29, which includes the /reflect routing field from feat(api-proxy): expose the routed selection in /reflect #9239. The image refs move to job-level env so both cases share one pin.
  • New case, "Run an effort-routed Copilot inference through AWF":
    • allowedModels is only github-copilot/gpt-5.4-mini, which is effort-capable and in the pinned router's execution catalogue.
    • The agent reads GET $COPILOT_API_URL/reflect and asserts status: selected, the expected model and wire model, a string effort, and endpoint: /responses.
    • It then sends /responses with reasoning.effort set to the routed effort, and asserts the reply contains ROUTED_OK.
  • The existing claude-haiku-4.5 case (effortless, /chat/completions) is unchanged.
  • timeout-minutes goes from 15 to 20 for the second AWF run.

Validation

The smoke only runs on main, so I removed the guard temporarily and dispatched it on this branch: run 36659780900 passed all steps.

ROUTED_COPILOT_INFERENCE=passed model=claude-haiku-4.5
ROUTED_SELECTION={"provider":"copilot","model":"github-copilot/gpt-5.4-mini","wire_model":"gpt-5.4-mini","effort":"xhigh","endpoint":"/responses"}
ROUTED_COPILOT_EFFORT_INFERENCE=passed model=gpt-5.4-mini endpoint=/responses

The guard is restored in the final commit.

lpcox and others added 3 commits September 29, 2026 19:24
Pin the smoke to v0.28.29, which exposes the routed selection in /reflect
(#9239). The new case allows only github-copilot/gpt-5.4-mini, reads the
selected effort and endpoint from /reflect, and sends /responses with the
matching reasoning.effort.

Refs #9238

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: f9549be0-1ad6-4e3e-b641-b2f5f0485b1b
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: f9549be0-1ad6-4e3e-b641-b2f5f0485b1b
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: f9549be0-1ad6-4e3e-b641-b2f5f0485b1b

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.

Copilot review overview

🟢 Approval recommended

The implementation matches the stated scope and the linked workflow run validates both routing cases successfully.

Review effort: Balanced
Findings: None

What changed in this PR

Extends the released model-routing smoke test to cover effort-based Copilot routing through /responses.

Changes:

  • Pins shared AWF images to v0.28.29.
  • Adds a gpt-5.4-mini effort-routing case using /reflect.
  • Increases the job timeout to 20 minutes.
File Description
.github/​workflows/​test-model-routing.yml Adds and configures the effort-routed inference smoke test.

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

@github-actions

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 92.70% 92.71% ➡️ +0.01%
Statements 91.20% 91.21% ➡️ +0.01%
Functions 89.30% 89.30% ➡️ +0.00%
Branches 84.27% 84.28% 📈 +0.01%
📁 Per-file Coverage Changes (1 files)
File Lines (Before → After) Statements (Before → After)
src/log-directory-setup.ts 96.2% → 100.0% (+3.78%) 96.3% → 100.0% (+3.71%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox
lpcox merged commit 1504d69 into main Sep 30, 2026
26 checks passed
@lpcox
lpcox deleted the ci/routing-smoke-effort-case branch September 30, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants