Skip to content

Fix QA workflow matrix JSON formatting#2467

Merged
tallpsmith merged 2 commits intoperformancecopilot:mainfrom
tallpsmith:main
Jan 23, 2026
Merged

Fix QA workflow matrix JSON formatting#2467
tallpsmith merged 2 commits intoperformancecopilot:mainfrom
tallpsmith:main

Conversation

@tallpsmith
Copy link
Contributor

Summary

Fixes the GitHub Actions workflow failure in PR #2466 by compacting multi-line JSON to a single line before writing to $GITHUB_OUTPUT.

Problem

The recent change to add manual platform selection introduced a bug where multi-line formatted JSON in $ALL_PLATFORMS was breaking GitHub Actions output format. Each line was interpreted as a separate command, causing:

##[error]Unable to process file command 'output' successfully.
##[error]Invalid format '  {"platform": "debian11-container", ...

Solution

Compact the JSON array to a single line using jq -c before writing to $GITHUB_OUTPUT.

Testing

This fixes the failing checks in PR #2466 and maintains backward compatibility for:

  • Pull request triggers (default: all platforms)
  • Scheduled runs (default: all platforms)
  • Manual workflow_dispatch with platform selection

Fixes #2466

Multi-line JSON in $ALL_PLATFORMS was breaking GitHub Actions
output format when written to $GITHUB_OUTPUT. Each line was being
interpreted as a separate command, causing "Invalid format" errors.
@tallpsmith tallpsmith merged commit 2f3b9a3 into performancecopilot:main Jan 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant