fix(test): update BYOK workflow test to match recompiled lock files#5950
Conversation
The lock files were recompiled in #5946 (gh-aw v0.82.2 upgrade), which changed the agent job model selection from ${{ env.COPILOT_MODEL }} to a vars-based expression. Update the test to verify the workflow-level env pin still exists (claude-haiku-4.5 / o4-mini-aw) instead of checking for the old ${{ env.COPILOT_MODEL }} reference in the agent job. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
| Metric | Base | PR | Delta |
|---|---|---|---|
| Lines | 98.81% | 98.81% | ➡️ +0.00% |
| Statements | 98.73% | 98.73% | ➡️ +0.00% |
| Functions | 99.58% | 99.58% | ➡️ +0.00% |
| Branches | 95.14% | 95.10% | 📉 -0.04% |
Coverage comparison generated by scripts/ci/compare-coverage.ts
There was a problem hiding this comment.
Pull request overview
Updates the BYOK smoke-workflow lockfile test so it matches the newer gh-aw v0.82.2-compiled lockfile structure (workflow-level model pin + vars-based agent-job selection), preventing false failures after workflow recompilation.
Changes:
- Adjusts the lockfile assertion to validate a pinned workflow-level
COPILOT_MODELvalue (rather than${{ env.COPILOT_MODEL }}). - Keeps a guard that the deprecated
${{ vars.GH_AW_MODEL_AGENT_COPILOT || env.COPILOT_MODEL }}pattern is not used.
Show a summary per file
| File | Description |
|---|---|
| scripts/ci/smoke-copilot-byok-workflow.test.ts | Updates assertions to align with the post-upgrade compiled lockfile model-selection patterns. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Low
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
✅ Copilot review passed with no inline comments. @lpcox Add the |
|
✅ Smoke Claude passed |
|
🔌 Smoke Services — All services reachable! ✅ |
|
✅ Smoke Gemini completed. All facets verified. 💎 Smoke test completed with FAIL status. GitHub MCP tools were missing. |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅ |
|
Chroot tests failed Smoke Chroot failed - See logs for details. |
|
🔑 Smoke Copilot PAT PAT auth validated. All systems operational. ✅ |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓 |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
🚀 Security Guard has started processing this pull request |
|
❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed... |
|
❌ Smoke Copilot BYOK AOAI (Entra) reports failed. AOAI BYOK (Entra) mode investigation needed... |
|
✅ Contribution Check completed successfully! PR #5950 follows the applicable CONTRIBUTING.md guidelines; no review comment needed. |
|
✅ Build Test Suite completed successfully! |
|
| Metric | Base | PR | Delta |
|---|---|---|---|
| Lines | 98.81% | 98.81% | ➡️ +0.00% |
| Statements | 98.73% | 98.73% | ➡️ +0.00% |
| Functions | 99.58% | 99.58% | ➡️ +0.00% |
| Branches | 95.14% | 95.10% | 📉 -0.04% |
Coverage comparison generated by scripts/ci/compare-coverage.ts
Smoke Test: Claude Engine Validation
Overall Result: PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Smoke Test Results
Overall: FAIL — Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
|
Smoke test results — Auth mode: PAT (COPILOT_GITHUB_TOKEN)
Overall: PASS — @lpcox Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Smoke Test Results
Overall: PASS 🎉 Author: @lpcox Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Smoke Test: Copilot BYOK (Direct) — PASS
Running in direct BYOK mode ( Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Smoke Test: API Proxy OpenTelemetry Tracing
All scenarios pass. OTEL tracing integration is functioning correctly. Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Smoke Test: Gemini Engine Validation
Overall Status: FAIL Last 2 Merged PRs (via API):
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.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
Smoke Test
Warning Firewall blocked 2 domainsThe following domains were blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"
- "registry.npmjs.org"See Network Configuration for more information.
|
Summary
The BYOK workflow test (
scripts/ci/smoke-copilot-byok-workflow.test.ts) was failing after the lock files were recompiled in #5946 (gh-aw v0.82.2 upgrade).Problem
The recompilation changed the agent job's model selection from:
to a vars-based expression:
The test was asserting the old
${{ env.COPILOT_MODEL }}pattern existed in the lock files.Fix
Updated the test to verify what still matters: the workflow-level
COPILOT_MODELenv pin exists (e.g.claude-haiku-4.5oro4-mini-aw), and the old deprecated${{ vars.GH_AW_MODEL_AGENT_COPILOT || env.COPILOT_MODEL }}pattern is not used.Testing
All 3,491 tests pass locally.