Skip to content

[ca] Fix GitHub MCP allowed_tools rendering and numeric reaction parsing#11603

Merged
pelikhan merged 1 commit intomainfrom
ci-cleaner-fixes-20260124-062008-71b71f30d2c9cb46
Jan 24, 2026
Merged

[ca] Fix GitHub MCP allowed_tools rendering and numeric reaction parsing#11603
pelikhan merged 1 commit intomainfrom
ci-cleaner-fixes-20260124-062008-71b71f30d2c9cb46

Conversation

@github-actions
Copy link
Contributor

Summary

This PR fixes two test failures discovered during CI cleanup:

1. GitHub MCP allowed_tools rendering

Fixed: TestRenderGitHubMCPRemoteConfigToolsCommas

The RenderGitHubMCPRemoteConfig function now properly honors the IncludeToolsField and AllowedTools options. When IncludeToolsField is true and AllowedTools is provided, the function now renders the tools array in the GitHub MCP remote configuration with proper comma separation.

Changes:

  • pkg/workflow/mcp_renderer.go: Added logic to render the tools field when requested, with proper JSON array formatting including commas between items and no comma after the last item

2. Numeric reaction parsing

Fixed: TestNumericReactionParsing

The reaction parser now handles YAML's behavior of parsing unquoted +1 and -1 as float64 numbers.

Changes:

  • pkg/workflow/reactions.go: Added float64 case to parseReactionValue() to convert 1.0 to "+1" and -1.0 to "-1"

Test Results

Both previously failing tests now pass:

  • TestRenderGitHubMCPRemoteConfigToolsCommas
  • TestNumericReactionParsing

Context

The CI cleaner workflow was triggered but no specific CI failures were indicated in the run parameters (empty ci_status and ci_run_id). The working tree was clean initially. These fixes address real test failures that were discovered during the automated cleanup process.

Note

There are additional test failures in the repository related to GitHub MCP configuration architecture changes (change from type: local to type: stdio with containers), but those appear to be part of a larger ongoing refactoring and are outside the scope of this automated CI cleanup.

AI generated by CI Cleaner

- Add support for rendering allowed_tools field in GitHub MCP remote config when IncludeToolsField is true
- Add float64 case to reaction parser to handle YAML parsing of +1/-1 as numbers

Fixes:
- TestRenderGitHubMCPRemoteConfigToolsCommas now passes
- TestNumericReactionParsing now passes
@github-actions github-actions bot added bug Something isn't working test-fixes labels Jan 24, 2026
@pelikhan pelikhan marked this pull request as ready for review January 24, 2026 10:32
@pelikhan pelikhan merged commit 7db39a4 into main Jan 24, 2026
@pelikhan pelikhan deleted the ci-cleaner-fixes-20260124-062008-71b71f30d2c9cb46 branch January 24, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working test-fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant