Skip to content

ci: keep the Multi-Arch summary JSON in one shell argument - #13268

Merged
ScottTodd merged 2 commits into
developfrom
users/arozanov/fix-multi-arch-summary-json
Oct 14, 2026
Merged

ScottTodd merged 2 commits into
developfrom
users/arozanov/fix-multi-arch-summary-json

Conversation

@amd-arozanov

@amd-arozanov amd-arozanov commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Multi-Arch CI summary step passes toJSON(needs) inside single quotes. A ci:* label is copied into linux_test_labels as a Python list such as ['ci: code-coverage']. The quote inside that value ends the shell string, and the space in the label splits the argument, so workflow_summary.py exits with unrecognized arguments: code-coverage].

Seen on #13027 and #12906 (Multi-Arch CI Summary).

Pass that JSON through the NEEDS_JSON environment variable and expand "$NEEDS_JSON", so the shell does not tokenize it. The same call is updated in the ASAN and nightly workflows.

Issue ID: ROCm/TheRock#8995

Test plan

  • Add the ci: code-coverage label and confirm Multi-Arch CI Summary gets past argument parsing. This workflow-only change also selects a full multi-arch build.

(AI Asist)

A ci:* pull request label is copied into linux_test_labels as a Python
list. The single quote in that list ends the quoted toJSON(needs)
argument, and a space in the label splits it.

Co-authored-by: Cursor <cursoragent@cursor.com>
@amd-arozanov
amd-arozanov requested a review from a team as a code owner October 12, 2026 12:57
Copilot AI balanced review requested due to automatic review settings October 12, 2026 12:57
@github-actions github-actions Bot added the github actions Pull requests that update GitHub Actions code label Oct 12, 2026
@therock-pr-bot

therock-pr-bot Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

✅ All Policy Checks Passed

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass PR does not contain code files — Unit Test auto-passed
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

🎉 All policy checks passed!

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

@therock-pr-bot

Copy link
Copy Markdown

🚫 Please fix the failed policies before requesting reviews.

The following policy checks failed:

  • ❌ PR Description

The Not ready to Review label has been added to this PR.
Once all policies pass, the label will be removed automatically.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The environment-variable approach consistently preserves the JSON as a single shell argument across all affected workflows.

0 open findings

What changed in this PR

Moves serialized workflow dependencies into an environment variable to prevent shell tokenization errors.

Changes:

  • Safely passes toJSON(needs) as one quoted argument.
  • Applies the fix consistently across standard, nightly, and ASAN workflows.
File Description
.github/​workflows/​therock-multi-arch-ci.yml Safely passes summary JSON.
.github/​workflows/​therock-multi-arch-ci-nightly.yml Applies the nightly workflow fix.
.github/​workflows/​therock-multi-arch-ci-asan.yml Applies the ASAN workflow fix.
.github/​workflows/​therock-multi-arch-ci-asan-nightly.yml Applies the nightly ASAN workflow fix.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@amd-arozanov

Copy link
Copy Markdown
Contributor Author

@ROCm/rocm-systems-reviewers could you please review?

@amd-arozanov

Copy link
Copy Markdown
Contributor Author

@ROCm/rocm-systems-reviewers a friendly reminder. Please review the PR

@ScottTodd ScottTodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. We'll need the same change in each other repository that forked the workflows from TheRock, at least until ROCm/TheRock#8991 and more PRs from @geomin12 and others switch to reusing the workflows more directly (without as much forking).

These changes are similar enough to what was done as part of ROCm/TheRock#8275. Note that zizmor will have flagged these lines and applying security fixes across workflows in the repository will fix this and other issues.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ScottTodd

Copy link
Copy Markdown
Member

I think we can get enough signal from this PR by adding ci:skip and a label with spaces in it. That will exercise these code paths without needing to actually run builds.

@ScottTodd ScottTodd added the ci:skip Skip all CI builds/tests for this PR label Oct 14, 2026

@ScottTodd ScottTodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep looks all good to merge now.

@ScottTodd
ScottTodd merged commit 9247130 into develop Oct 14, 2026
152 of 186 checks passed
@ScottTodd
ScottTodd deleted the users/arozanov/fix-multi-arch-summary-json branch October 14, 2026 18:40
@systems-assistant

Copy link
Copy Markdown
Contributor

TheRock Submodule Bump Activity

Newest first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: code-coverage ci:skip Skip all CI builds/tests for this PR github actions Pull requests that update GitHub Actions code organization: ROCm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants