-
Notifications
You must be signed in to change notification settings - Fork 251
Description
Summary
The CI run for commit 8624e99d3 failed because TestWasmGolden_CompileFixtures/basic-copilot is comparing against a golden workflow that still references Copilot CLI 0.0.414 even though the compiled output now embeds 0.0.415.
Failure Details
- Run: 22337376002
- Commit: 8624e99
- Trigger: push
Root Cause Analysis
The wasm golden fixture hard-codes agent_version: "0.0.414" and the install step uses /opt/gh-aw/actions/install_copilot_cli.sh 0.0.414, but the compiled YAML that go test produced during the run now carries agent_version: "0.0.415" and installs version 0.0.415. The mismatch trips require.Equal in TestWasmGolden_CompileFixtures/basic-copilot, so both build-wasm and test jobs fail, and make recompile in build aborts with compilation failed before updating workflows.
Failed Jobs and Errors
- build-wasm:
TestWasmGolden_CompileFixtures/basic-copilotfailed because the actual YAML reportedagent_version: "0.0.415"and/opt/gh-aw/actions/install_copilot_cli.sh 0.0.415, while the golden fixture still expects0.0.414. - test: runs the same golden test and fails for the same diff in
pkg/workflow/wasm_golden_test.go:98. - build:
make recompilestops withcompilation failedbecause the wasm golden comparisons fail before the workflow generation step can finish.
Investigation Findings
- Extracting the
actualoutput from the failedbuild-wasmlog and diffing it againstbasic-copilot.goldenshows exactly two lines changed: theagent_versionvalue and theinstall_copilot_cli.shargument switched from 0.0.414 to 0.0.415. - The golden file was not regenerated with the Copilot CLI 0.0.415 bump, so the string comparison in
TestWasmGolden_CompileFixtures/basic-copilottrips and aborts the job. - Attempts to rerun
go test ./pkg/workflow -run '^TestWasmGolden_CompileFixtures/basic-copilot$'andmake recompilelocally hit the firewall:gotries to download modules such asgithub.com/cli/go-gh/v2@v2.13.0from(proxy.golang.org/redacted) and the request isForbidden`, so no local verification could be completed.
Recommended Actions
- Regenerate
pkg/workflow/testdata/wasm_golden/TestWasmGolden_CompileFixtures/basic-copilot.goldenso it expects Copilot CLI 0.0.415 for bothagent_versionand the install step. - Re-run the golden test (
go test ./pkg/workflow -run '^TestWasmGolden_CompileFixtures/basic-copilot$') andmake recompileafter module downloads are allowed so we can verify the fix.
Prevention Strategies
Ensure that whenever the Copilot CLI agent version or install_copilot_cli.sh argument is bumped, the related wasm golden fixtures are regenerated and committed before pushing the change.
AI Team Self-Improvement
When updating the Copilot CLI version, always rerun make update-wasm-golden (or go test ./pkg/workflow -run '^TestWasmGolden_CompileFixtures/basic-copilot$' -update) so that golden fixtures stay in sync with the installed agent.
Historical Context
Similar golden-test failures occur each time the Copilot CLI version is bumped because the fixtures capture the version string; updating the fixture immediately after the version change keeps recompile clean.🩺 Diagnosis provided by CI Failure Doctor
To install this workflow, run
gh aw add githubnext/agentics/workflows/ci-doctor.md@ea350161ad5dcc9624cf510f134c6a9e39a6f94d. View source at https://github.com/githubnext/agentics/tree/ea350161ad5dcc9624cf510f134c6a9e39a6f94d/workflows/ci-doctor.md.
- expires on Feb 25, 2026, 5:16 AM UTC