Skip to content

ci: guard empty changes matrix in ci.yaml split jobs - #15431

Merged
lqiu96 merged 1 commit into
mainfrom
ci/guard-empty-changes-matrix
Dec 3, 2026
Merged

lqiu96 merged 1 commit into
mainfrom
ci/guard-empty-changes-matrix

Conversation

@lqiu96

@lqiu96 lqiu96 commented Dec 3, 2026

Copy link
Copy Markdown
Member

Adds if: ${{ needs.changes.outputs.packages != '[]' }} to split-units, split-units-8, split-clirr, and split-dependencies in .github/workflows/ci.yaml.

When changes runs on a PR that does not match any of the standalone library filters, dorny/paths-filter outputs []. Without this guard, fromJSON(needs.changes.outputs.packages) produces an empty matrix array and marks the ci workflow run as failed even when all executed jobs pass. When changes is skipped, the implicit success() check on needs: changes already skips these jobs.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@lqiu96
lqiu96 marked this pull request as ready for review December 3, 2026 20:17
@lqiu96
lqiu96 requested a review from a team as a code owner December 3, 2026 20:17
@lqiu96
lqiu96 requested a review from jinseopkim0 December 3, 2026 20:17
@lqiu96
lqiu96 merged commit 87f5735 into main Dec 3, 2026
191 checks passed
@lqiu96
lqiu96 deleted the ci/guard-empty-changes-matrix branch December 3, 2026 21:08
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.

2 participants