Skip to content

Add --dev-stream filter option for dev version builds#457

Merged
bschwedler merged 5 commits intomainfrom
feature/dev-version-stream-filter
Apr 16, 2026
Merged

Add --dev-stream filter option for dev version builds#457
bschwedler merged 5 commits intomainfrom
feature/dev-version-stream-filter

Conversation

@ianpittwood
Copy link
Copy Markdown
Contributor

@ianpittwood ianpittwood commented Apr 14, 2026

Summary

  • Adds a generic metadata field (dict[str, Any], exclude=True) to ImageVersion for internal use, not settable via bakery.yaml
  • Propagates release stream info (release_stream key) from dev version sources into ImageVersion.metadata during as_image_version() conversion
  • Adds --dev-stream CLI filter option (values: release, preview, daily) to all 8 commands that have --dev-versions, filtering dev version targets to a specific release stream
  • Adds optional stream field to ImageDevelopmentVersionFromEnv so env-sourced dev versions can also be tagged with a release stream

Test plan

  • uv run pytest test/ -m "not slow and not image_build" passes (1315 tests, all green)
  • bakery build --dev-versions only --dev-stream daily only builds daily dev versions
  • bakery build --dev-versions only --dev-stream preview only builds preview dev versions
  • bakery build --dev-stream daily (without --dev-versions) emits a warning that --dev-stream has no effect
  • bakery ci matrix --dev-versions only --dev-stream daily generates matrix entries for daily dev versions only

🤖 Generated with Claude Code

ianpittwood and others added 4 commits April 14, 2026 13:31
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…sion

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…argets

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 14, 2026

Test Results

1 342 tests   1 342 ✅  8m 46s ⏱️
    1 suites      0 💤
    1 files        0 ❌

Results for commit 056b89a.

♻️ This comment has been updated with latest results.

The ci matrix command iterates img.versions directly instead of using
generate_image_targets(), so the dev_stream filter was not applied to
its output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bschwedler bschwedler added this pull request to the merge queue Apr 16, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 16, 2026
@bschwedler bschwedler added this pull request to the merge queue Apr 16, 2026
Merged via the queue into main with commit ad60e44 Apr 16, 2026
22 checks passed
@bschwedler bschwedler deleted the feature/dev-version-stream-filter branch April 16, 2026 19:27
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