Conversation
…adSizeThreshold removal Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI failure in golden tests and linter after MCP change
Fix golden fixtures and remove unused helpers after MCP gateway payloadSizeThreshold removal
Feb 28, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Aligns the repository with the earlier MCP gateway payloadSizeThreshold removal by updating wasm golden fixtures and cleaning up now-unused Go test/helpers so CI and lint pass again.
Changes:
- Update three wasm golden fixtures to remove
payloadSizeThresholdfrom the rendered MCP gateway config block. - Remove an unused logger helper (
validationHelpersLog) to satisfygolangci-lint. - Delete an unused test helper file (
safe_outputs_env_helpers_test.go) with no remaining call sites.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/workflow/validation_helpers.go | Removes an unused package-level logger variable to fix unused lint failures. |
| pkg/workflow/testdata/wasm_golden/TestWasmGolden_CompileFixtures/basic-copilot.golden | Updates expected rendered gateway JSON to match current output (no payloadSizeThreshold). |
| pkg/workflow/testdata/wasm_golden/TestWasmGolden_CompileFixtures/smoke-copilot.golden | Same golden fixture alignment for smoke-copilot compile fixture. |
| pkg/workflow/testdata/wasm_golden/TestWasmGolden_CompileFixtures/with-imports.golden | Same golden fixture alignment for with-imports compile fixture. |
| pkg/workflow/safe_outputs_env_helpers_test.go | Deletes an unused test helper file to resolve lint failures. |
💡 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.
After removing
payloadSizeThresholdfrom the MCP gateway config, three golden fixture files and two helper declarations were left out of sync, breakingTestWasmGolden_CompileFixturesandgolangci-lint.Golden fixtures
Removed the
"payloadSizeThreshold": 524288line from thegatewayblock inbasic-copilot.golden,smoke-copilot.golden, andwith-imports.goldento match the renderer's current output:Unused helpers
validationHelpersLogfromvalidation_helpers.go(no remaining call sites)safe_outputs_env_helpers_test.go— its sole content,assertEnvVarsInSteps, had no callers after the safe outputs env refactorOriginal prompt
This section details on the original issue you should resolve
<issue_title>[CI Failure Doctor] Golden outputs and lint fail after removing MCP gateway payloadSizeThreshold</issue_title>
<issue_description>### CI Failure Investigation - Run github/gh-aw#38196
Summary
Several
pkg/workflowgolden tests and the Go linter failed because the recent MCP gateway configuration change removed thepayloadSizeThresholdfield but the golden fixtures and helper declarations were not kept in sync.Failure Details
Root Cause Analysis
test-wasm-goldentarget still expect MCP gateway configs to includepayloadSizeThreshold, but the compiler output now omits that field, so the comparison between generated JSON and the recorded fixtures fails.golangci-lintnow sees two helpers with no callers because recent refactors removed the code paths that used them, resulting in anunusedlinter failure forassertEnvVarsInStepsandvalidationHelpersLog.Failed Jobs and Errors
build-wasm–make test-wasm-goldenfails becauseTestWasmGolden_AllEnginesdetects that the generated JSON is missing the"payloadSizeThreshold": 524288line that the golden files still expect.test–TestWasmGolden_CompileFixtures/{basic-copilot,smoke-copilot}fail for the same reason, with the failure report showing thatpayloadSizeThresholdwas dropped from the MCP gatewayenv.entriesblock.lint-go–golangci-lintexits withunusederrors atpkg/workflow/safe_outputs_env_helpers_test.go:12:6(unusedassertEnvVarsInSteps) andpkg/workflow/validation_helpers.go:33:5(unusedvalidationHelpersLog).Investigation Findings
golangci-lintraised theunusederrors shown in the log because the helpers no longer exercise assert or logging paths that reference them.Recommended Actions
TestWasmGolden_AllEnginesandTestWasmGolden_CompileFixturesso that they match the compiler’s new output (the payload gateway block should only includepayloadDir).assertEnvVarsInStepsandvalidationHelpersLogso that the helpers are either used or removed, allowinggolangci-lintto finish.make test-wasm-golden,go test ./pkg/workflow -run TestWasmGolden, andgolangci-lintlocally before pushing.Prevention Strategies
unusedfailures.AI Team Self-Improvement
Before landing MCP gateway payload changes, rerun the golden fixture suites and
golangci-lintlocally and update the expectations they encode so the CI jobs stay green.Historical Context
payloadSizeThreshold.Comments on the Issue (you are @copilot in this section)
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.