Remove non-strict override from AOAI API key smoke workflow and restore Copilot BYOK env passthrough#41401
Remove non-strict override from AOAI API key smoke workflow and restore Copilot BYOK env passthrough#41401Copilot wants to merge 6 commits into
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot remove strict false from the other smoke BYOK workflows |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
|
Great work on this one! 🎉 The BYOK env passthrough fix is well-scoped and the description clearly explains the root cause — All the bases are covered here:
This PR looks ready for review. 🚀
|
|
@copilot confirm with awf specification that these environment variables are handled by awf |
Confirmed against AWF spec:
So keeping those out of |
|
✅ Test Quality Sentinel completed test quality analysis. |
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. No ADR enforcement needed: PR does not have the 'implementation' label and has ≤100 new lines of code in business logic directories (26 additions detected, threshold is 100). |
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅ |
|
✅ PR Code Quality Reviewer completed the code quality review. |
There was a problem hiding this comment.
Pull request overview
This PR updates the Copilot engine’s AWF execution path so BYOK provider environment variables (e.g., COPILOT_PROVIDER_BASE_URL, COPILOT_PROVIDER_API_KEY, COPILOT_PROVIDER_BEARER_TOKEN) are not accidentally passed to AWF as --exclude-env flags in BYOK mode, ensuring the Copilot runtime inside AWF can still route/authenticate to the configured provider. It also removes strict: false overrides from the AOAI smoke workflows and updates the generated lockfiles accordingly.
Changes:
- Adjust Copilot AWF command generation to filter out BYOK provider env vars from
ExcludeEnvVarNameswhen BYOK mode is active. - Remove
strict: falsefrom AOAI smoke workflow markdown sources so they compile/run with strict defaults. - Update lockfiles and add/expand assertions in Copilot BYOK tests for the corrected
--exclude-envbehavior.
Show a summary per file
| File | Description |
|---|---|
| pkg/workflow/copilot_engine_execution.go | Filters AWF --exclude-env list in BYOK mode to keep provider env vars available to the Copilot runtime. |
| pkg/workflow/copilot_engine_test.go | Adds assertions ensuring BYOK provider env vars are not emitted as --exclude-env flags in BYOK + AWF mode. |
| .github/workflows/smoke-copilot-aoai-entra.md | Removes strict: false override to use strict defaults. |
| .github/workflows/smoke-copilot-aoai-entra.lock.yml | Regenerated compiled workflow reflecting strict mode and updated --exclude-env flags. |
| .github/workflows/smoke-copilot-aoai-apikey.md | Removes strict: false override to use strict defaults. |
| .github/workflows/smoke-copilot-aoai-apikey.lock.yml | Regenerated compiled workflow reflecting strict mode and updated --exclude-env flags. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 6/6 changed files
- Comments generated: 1
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
✅ All tools validated successfully! Agent Container Smoke Test confirms agent container is ready. |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 Caution agentic threat detected DetailsThe threat detection engine failed to produce results. Review the workflow run logs for details. |
|
|
|
🚀 Smoke Pi MISSION COMPLETE! Pi delivered. 🥧 |
|
🚀 Smoke Gemini MISSION COMPLETE! Gemini has spoken. ✨ test |
|
📰 BREAKING: Smoke Copilot - AOAI (apikey) is now investigating this pull request. Sources say the story is developing... |
|
📰 BREAKING: Smoke Copilot - AOAI (Entra) is now investigating this pull request. Sources say the story is developing... |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
Agent Container Tool Check
Result: 12/12 tools available ✅ Overall Status: PASS
|
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Added in b49106e. I added workflow integration coverage that compiles both Copilot and Pi BYOK workflows using
Fixed in b49106e. The Pi engine now keeps |
|
Smoke test FAIL Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "proxy.golang.org"See Network Configuration for more information.
|
|
Caution agentic threat detected DetailsThe threat detection engine failed to produce results. Review the workflow run logs for details. Comment MemoryNote This comment is managed by comment memory.It stores persistent context for this thread in the code block at the top of this comment. Warning Firewall blocked 6 domainsThe following domains were blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "accounts.google.com"
- "android.clients.google.com"
- "clients2.google.com"
- "contentautofill.googleapis.com"
- "safebrowsingohttpgateway.googleapis.com"
- "www.google.com"See Network Configuration for more information.
|
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: Claude — Run 28171956058Overall: PARTIAL Core #1-12: 1✅ 2✅ 3✅ 4✅ 5❌(Tavily unavailable) 6✅ 7✅ 8✅ 9✅ 10✅ 11✅ 12✅ Warning Firewall blocked 6 domainsThe following domains were blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "accounts.google.com"
- "android.clients.google.com"
- "clients2.google.com"
- "contentautofill.googleapis.com"
- "safebrowsingohttpgateway.googleapis.com"
- "www.google.com"See Network Configuration for more information.
|
There was a problem hiding this comment.
💥 Automated smoke test review - all systems nominal!
Warning
Firewall blocked 6 domains
The following domains were blocked by the firewall during workflow execution:
accounts.google.comandroid.clients.google.comclients2.google.comcontentautofill.googleapis.comsafebrowsingohttpgateway.googleapis.comwww.google.com
To allow these domains, add them to the
network.allowedlist in your workflow frontmatter:
network:
allowed:
- defaults
- "accounts.google.com"
- "android.clients.google.com"
- "clients2.google.com"
- "contentautofill.googleapis.com"
- "safebrowsingohttpgateway.googleapis.com"
- "www.google.com"See Network Configuration for more information.
💥 [THE END] — Illustrated by Smoke Claude · 81.4 AIC · ⌖ 39 AIC · ⊞ 8.7K
| "github.com/github/gh-aw/pkg/constants" | ||
| "github.com/github/gh-aw/pkg/testutil" | ||
| ) | ||
|
|
There was a problem hiding this comment.
Nice table-driven test covering BYOK env passthrough. Consider asserting on the exact env var names too. (smoke test)
|
|
||
| func TestBYOKProviderEnvPassthroughIntegration(t *testing.T) { | ||
| t.Parallel() | ||
|
|
There was a problem hiding this comment.
The struct fields are clear; a short comment on expectModelFlag semantics would help future readers. (smoke test)
This PR updates the AOAI API key smoke workflow to run under strict mode and fixes BYOK runtime env handling so Copilot provider variables are available inside AWF. Without this, BYOK provider routing/auth could be dropped by
--exclude-env.Strict-mode workflow source update
strict: falsefromsmoke-copilot-aoai-apikey.mdso the workflow compiles and executes with strict validation defaults.Copilot BYOK env exclusion fix
COPILOT_PROVIDER_BASE_URLCOPILOT_PROVIDER_API_KEYCOPILOT_PROVIDER_BEARER_TOKENCOPILOT_GITHUB_TOKENexclusion behavior in BYOK mode remains unchanged.Generated workflow alignment
--exclude-envbehavior (notably AOAI apikey and AOAI entra smoke lockfiles).Targeted regression coverage
--exclude-envflags in AWF BYOK mode.✨ PR Review Safe Output Test - Run 28171956058
Warning
Firewall blocked 6 domains
The following domains were blocked by the firewall during workflow execution:
accounts.google.comandroid.clients.google.comclients2.google.comcontentautofill.googleapis.comsafebrowsingohttpgateway.googleapis.comwww.google.comSee Network Configuration for more information.