Skip to content

fix(bakery): apply image_name filter in ci matrix command#608

Merged
ianpittwood merged 1 commit into
mainfrom
fix/ci-matrix-fails-to-filter-images
Jun 12, 2026
Merged

fix(bakery): apply image_name filter in ci matrix command#608
ianpittwood merged 1 commit into
mainfrom
fix/ci-matrix-fails-to-filter-images

Conversation

@ianpittwood

Copy link
Copy Markdown
Contributor

Summary

  • bakery ci matrix <image_name> was iterating c.model.images (the unfiltered list) instead of applying the image_name regex from BakeryConfigFilter
  • Patterns like workbench$ would match prefix-colliding image names like workbench-session-init because the filter was never consulted
  • Fix: apply re.search(image_name, i.name) inline on the image list, consistent with how generate_image_targets() applies the same filter

Test plan

  • New BDD scenario in matrix.feature using the existing merge-multi-image context (test-alpha / test-alpha-extra) verifies that test-alpha$ returns only test-alpha
  • All 29 existing test_ci.py tests pass
  • Manual: bakery ci matrix 'workbench$' in images-workbench/ now returns only workbench entries

🤖 Generated with Claude Code

The matrix command was iterating c.model.images (all images, unfiltered)
instead of applying the image_name regex from BakeryConfigFilter, causing
patterns like 'workbench$' to match prefix-colliding names like
'workbench-session-init'. Adds a regression test using the existing
merge-multi-image context.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ianpittwood ianpittwood requested a review from bschwedler as a code owner June 12, 2026 20:32
@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown

Test Results

1 863 tests   1 863 ✅  8m 35s ⏱️
    1 suites      0 💤
    1 files        0 ❌

Results for commit 759cca5.

♻️ This comment has been updated with latest results.

@ianpittwood ianpittwood merged commit be302f3 into main Jun 12, 2026
44 of 46 checks passed
@ianpittwood ianpittwood deleted the fix/ci-matrix-fails-to-filter-images branch June 12, 2026 20:59
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