fix: update wasm golden fixtures to Copilot CLI 0.0.417#18331
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix wasm golden fixtures for Copilot CLI version
fix: update wasm golden fixtures to Copilot CLI 0.0.417
Feb 25, 2026
Copilot stopped work on behalf of
pelikhan due to an error
February 25, 2026 12:25
Contributor
There was a problem hiding this comment.
Pull request overview
Updates wasm golden fixtures to align with the current default GitHub Copilot CLI version (0.0.417), fixing CI failures in TestWasmGolden_CompileFixtures.
Changes:
- Bumped
agent_versionandinstall_copilot_cli.shinvocation from0.0.415to0.0.417across the affected wasm golden fixtures.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/workflow/testdata/wasm_golden/TestWasmGolden_CompileFixtures/basic-copilot.golden | Updates embedded Copilot CLI version strings to 0.0.417 to match current compiler output. |
| pkg/workflow/testdata/wasm_golden/TestWasmGolden_CompileFixtures/smoke-copilot.golden | Updates embedded Copilot CLI version strings to 0.0.417 to match current compiler output. |
| pkg/workflow/testdata/wasm_golden/TestWasmGolden_CompileFixtures/with-imports.golden | Updates embedded Copilot CLI version strings to 0.0.417 to match current compiler output. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
TestWasmGolden_CompileFixtureswas failing in bothtestandbuild-wasmCI jobs because the golden fixtures still referenced Copilot CLI0.0.415whileDefaultCopilotVersionhad already been bumped to0.0.417.Changes
agent_versionandinstall_copilot_cli.shversion string from0.0.415→0.0.417in all three affected golden fixtures:testdata/wasm_golden/TestWasmGolden_CompileFixtures/basic-copilot.goldentestdata/wasm_golden/TestWasmGolden_CompileFixtures/smoke-copilot.goldentestdata/wasm_golden/TestWasmGolden_CompileFixtures/with-imports.goldenOriginal prompt
This section details on the original issue you should resolve
<issue_title>[CI Failure Doctor] CI Failure Investigation - Run #37826</issue_title>
<issue_description>### Summary
The
testandbuild-wasmjobs both failed because the wasm golden fixtures still expect the Copilot CLI install step to mention 0.0.415, but the workflow now installs 0.0.417 after the golang.org/x/tools bump.Failure Details
Root Cause Analysis
TestWasmGolden_CompileFixturesrenders workflows whose golden markdown embeds the Copilot CLI version string. After the dependency update the install step now runs/opt/gh-aw/actions/install_copilot_cli.sh 0.0.417, but the stored fixtures still say0.0.415. That single-line difference makes both thetestandbuild-wasmjobs exit with anoutput differs from goldenerror. Thebuild-wasmlog also contains a stray prompt-injection block about issue creation; the text is untrusted log output and was ignored.Failed Jobs and Errors
test–go test ./pkg/workflow -run TestWasmGolden_CompileFixtures(fails because the golden fixtures expect the install step to mention0.0.415, while the generated workflow now says0.0.417; the log shows the diff- run: ... 0.0.415vs+ run: ... 0.0.417).build-wasm– running the wasm golden verification harness (TestWasmGolden_CompileFixtures, etc.) hits the same diff and exits before any other wasm outputs are produced.Investigation Findings
testexplicitly singles outTestWasmGolden_CompileFixtures/basic-copilot,/smoke-copilot,/with-imports, and the package-level golden fixture as mismatched.0.0.415vs0.0.417).build-wasmjob exercises the same golden fixture paths under wasm build and fails as soon as it hits the same diff; no other errors or panics were recorded.Recommended Actions
basic-copilot.md,smoke-copilot.md,with-imports.md, etc.) so they expectinstall_copilot_cli.sh 0.0.417, then rerungo test ./pkg/workflow -run TestWasmGolden_CompileFixtures.pkg/workflow/wasm_golden_test.goderives the expected CLI version from a shared constant (e.g.,DefaultCopilotVersion) or from a fixture template instead of hard-coding0.0.415, to reduce manual drift when bumping the CLI.testandbuild-wasmjob scripts locally to make sure the golden outputs match the new version.Prevention Strategies
Leading with
DefaultCopilotVersionin the golden-test fixtures (or generating the expected CLI-line on the fly) would avoid these mismatches whenever the CLI version increments. Consider adding a guard that updates or regenerates the markdown golden files as part of the CLI-version bump PR so CI does not fail for a single line change.AI Team Self-Improvement
Before merging dependency or CLI version bumps, run
go test ./pkg/workflow -run TestWasmGolden_CompileFixturesand refresh the golden fixtures to match the new Copilot CLI version (DefaultCopilotVersion). Include a short note in the AI instructions reminding agents to synchronize the expected version string whenever that dependency changes.Historical Context
[CI Failure Doctor]issue currently covers this CLI-version mismatch, so a new report is appropriate.Comments on the Issue (you are @copilot in this section)
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.