Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 13, 2026

Recent MCP gateway changes (PR #9839) modified how MCP configurations are passed to the gateway script - from writing to files to piping directly. Three test cases in engine_helpers_shared_test.go still expected the old format.

Changes

  • Updated test expectations for TestRenderJSONMCPConfig:
    • Changed from cat > /tmp/test-config.json << EOF to cat << MCPCONFIG_EOF | bash /opt/gh-aw/actions/start_mcp_gateway.sh
    • Updated EOF delimiter from EOF to MCPCONFIG_EOF
    • Fixed "post-EOF commands" test to expect commands are no longer appended (behavior changed with piping)
// Before
expectedContent: []string{
    "cat > /tmp/test-config.json << EOF",
    "EOF",
}

// After  
expectedContent: []string{
    "cat << MCPCONFIG_EOF | bash /opt/gh-aw/actions/start_mcp_gateway.sh",
    "MCPCONFIG_EOF",
}

Verification

  • All TestRenderJSONMCPConfig subtests pass
  • Workflow compilation with --validate works correctly
  • 121 workflows compile successfully

Note

Other engine-specific tests (Codex, Copilot, Custom) still fail - these were already broken by PR #9839 and expect the old format without the MCP gateway JSON section. Out of scope for this fix.

Original prompt

Recompile, fix the compiler so that the generated MCP config will validate

Custom agent used: agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 13, 2026 18:06
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix compiler to validate generated MCP config Fix test expectations for MCP gateway config piping format Jan 13, 2026
Copilot AI requested a review from pelikhan January 13, 2026 18:22
@pelikhan pelikhan added the smoke label Jan 13, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2026

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2026

🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰

@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2026

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

@github-actions
Copy link
Contributor

Smoke Test Results

Last 2 Merged PRs:

Test Results:

  • ✅ GitHub MCP: Retrieved merged PRs
  • ❌ Serena Go: Tool not available (go command not found)
  • ✅ Playwright: Navigated to GitHub, title contains "GitHub"
  • ✅ File Writing: Created test file successfully
  • ✅ Bash Tool: Verified file content

Overall Status: PARTIAL PASS (4/5 tests passed)

cc @pelikhan

AI generated by Smoke Copilot

@github-actions
Copy link
Contributor

Smoke Test Results - Claude Engine

Last 2 merged PRs:

Test Results:

  • ✅ GitHub MCP (list PRs)
  • ❌ Serena Go (tool unavailable - no 'go version' capability)
  • ✅ Playwright (navigated to github.com, title verified)
  • ✅ Tavily Web Search (returned 10 results for "GitHub Agentic Workflows")
  • ✅ File Writing (created test file)
  • ✅ Bash (verified file content)

Status: FAIL (Serena Go test failed - no basic Go command execution available)

AI generated by Smoke Claude

@pelikhan pelikhan marked this pull request as ready for review January 13, 2026 18:31
@pelikhan pelikhan merged commit 30031a1 into main Jan 13, 2026
185 checks passed
@pelikhan pelikhan deleted the copilot/fix-compiler-for-mcp-config branch January 13, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants