Skip to content

ci: skip legacy test job when the discovered matrix is empty - #109

Merged
markstur merged 1 commit into
generative-computing:mainfrom
markstur:ci/legacy-ci-empty-matrix
Oct 27, 2026
Merged

markstur merged 1 commit into
generative-computing:mainfrom
markstur:ci/legacy-ci-empty-matrix

Conversation

@markstur

Copy link
Copy Markdown
Contributor

Summary

CI - Legacy Subpackages has been failing on main and on any PR touching legacy-ci.yml or quality-generic.yml since the flat-package restructure (~2026-07-07). The discovery step scans mellea_contribs/**, which no longer exists, so the matrix is always empty — and a reusable-workflow (uses:) job with an empty matrix fails the run instead of skipping it.

Surfaced by PR #107 (which touches quality-generic.yml, one of the workflow's path filters), but pre-existing and unrelated to it. Details in #108.

Fix

Add the same empty-matrix guard the test job in ci.yml already has:

if: fromJson(needs.discover-subpackages.outputs.matrix).include[0] != null

The job now skips cleanly when nothing is discovered. Whether legacy-ci.yml + quality-generic.yml should instead be deleted outright (they can only ever exercise the old mellea_contribs/ layout) stays open in #108.

Fixes #108

🤖 Generated with Claude Code

CI - Legacy Subpackages has been failing on main and on PRs that touch
legacy-ci.yml or quality-generic.yml since the flat-package restructure:
the discovery step scans mellea_contribs/**, which no longer exists, so
the matrix is always empty — and a reusable-workflow (uses:) job with an
empty matrix fails the run instead of skipping.

Add the same empty-matrix guard the test job in ci.yml already has so the
job skips cleanly. Whether the legacy workflows should instead be deleted
outright is tracked separately.

Fixes generative-computing#108

Assisted-by: Claude Code
Signed-off-by: Mark Sturdevant <mark.sturdevant@ibm.com>
@markstur
markstur requested a review from a team as a code owner October 23, 2026 21:26
@markstur
markstur requested review from AngeloDanducci, planetf1 and rafvasq and removed request for a team October 23, 2026 21:26
@markstur

Copy link
Copy Markdown
Contributor Author

NOTE: See issue regarding skip vs remove. This is the more conservative first pass, but should we remove?

@AngeloDanducci AngeloDanducci left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think it's fine to leave as is for now, can always remove later.

LGTM

@markstur
markstur added this pull request to the merge queue Oct 27, 2026
Merged via the queue into generative-computing:main with commit a0db1d8 Oct 27, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

legacy-ci.yml fails with empty matrix - mellea_contribs/ no longer exists

2 participants