fix(e2e): add COPILOT_API_KEY to canary Docker allowlist and skip when absent#1963
Open
Stephen Belanger (Qard) wants to merge 5 commits intomainfrom
Open
fix(e2e): add COPILOT_API_KEY to canary Docker allowlist and skip when absent#1963Stephen Belanger (Qard) wants to merge 5 commits intomainfrom
Stephen Belanger (Qard) wants to merge 5 commits intomainfrom
Conversation
The canary Docker runner forwards secrets to the container via an explicit ALLOWED_ENV_KEYS allowlist. COPILOT_API_KEY was missing from that list, so the GitHub Copilot scenario always failed inside Docker even when the key was set in the GHA job env. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
a729a11 to
026a595
Compare
Luca Forstner (lforst)
approved these changes
May 7, 2026
Turbo v2 strict mode (activated by globalPassThroughEnv being defined) strips any env var not explicitly listed. COPILOT_API_KEY was absent from both globalPassThroughEnv and the test:e2e task env list, causing it to be unavailable to the Vitest process and all subprocesses it spawns. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…o test:e2e:record Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Canary tests make real API calls against the latest provider SDK versions. File snapshots were recorded with cassette replay, so real API responses produce output that diverges from the stored snapshots. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
e2e/scripts/run-canary-tests-docker.mjs) forwards secrets to the container via an explicitALLOWED_ENV_KEYSallowlist.COPILOT_API_KEYwas missing from that list, so the GitHub Copilot scenario always failed inside Docker even when the key was configured in the GHA job env.Test plan
e2e-canaryjob passes on this PR withCOPILOT_API_KEYsecret sete2ejob skips the copilot tests gracefully when key is absent (shows as skipped, not failed)🤖 Generated with Claude Code