-
Notifications
You must be signed in to change notification settings - Fork 371
fix: sync test expectations with COPILOT_API_KEY injection and BYOK default model #28136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1087,7 +1087,7 @@ func TestCopilotDetectionDefaultModel(t *testing.T) { | |
| shouldContainModel: true, | ||
| // Detection uses env var fallback (same pattern as main agent), allowing | ||
| // the Copilot CLI to pick its native default (currently claude-sonnet-4.6) | ||
| expectedModel: "${{ vars." + constants.EnvVarModelDetectionCopilot + " || '' }}", | ||
| expectedModel: "${{ vars." + constants.EnvVarModelDetectionCopilot + " || '" + constants.CopilotBYOKDefaultModel + "' }}", | ||
|
Comment on lines
1088
to
+1090
|
||
| }, | ||
| { | ||
| name: "copilot engine with custom model uses specified model", | ||
|
|
@@ -1133,7 +1133,7 @@ func TestCopilotDetectionDefaultModel(t *testing.T) { | |
| }, | ||
| }, | ||
| shouldContainModel: true, | ||
| expectedModel: "${{ vars." + constants.EnvVarModelDetectionCopilot + " || '' }}", | ||
| expectedModel: "${{ vars." + constants.EnvVarModelDetectionCopilot + " || '" + constants.CopilotBYOKDefaultModel + "' }}", | ||
| }, | ||
| { | ||
| name: "claude engine does not add model parameter", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wasm golden test compiles all fixtures under testdata/wasm_golden/fixtures (including smoke-copilot.md). The corresponding golden output (pkg/workflow/testdata/TestWasmGolden_CompileFixtures/smoke-copilot.golden) still has the old COPILOT_MODEL fallback (|| '') and is missing COPILOT_API_KEY, so TestWasmGolden_CompileFixtures is likely to keep failing. Regenerate/update that golden file as well to reflect the new injected env var and default model fallback.