Skip to content

Comments

Refactor image target metadata handling to allow multiple metadata attachments#358

Open
ianpittwood wants to merge 6 commits intomainfrom
multi-metadata-attachments
Open

Refactor image target metadata handling to allow multiple metadata attachments#358
ianpittwood wants to merge 6 commits intomainfrom
multi-metadata-attachments

Conversation

@ianpittwood
Copy link
Contributor

@ianpittwood ianpittwood commented Feb 12, 2026

Related to #340

  • Refactor ImageTarget to handle multiple metadata attachments at once
    • Change metadata_file field to build_metadata which takes a list[BuildMetadata]
    • Load metadata files using metadata attachments to image targets for ci merge command
    • Refactor image_metadata.py to improve handling of metadata objects and files
    • Retrieve sources for merge from build metadata to find latest build for each unique platform given
  • Add host architecture retrieval and variable to Settings object

@github-actions
Copy link

github-actions bot commented Feb 12, 2026

Test Results

1 130 tests   1 130 ✅  13m 27s ⏱️
    1 suites      0 💤
    1 files        0 ❌

Results for commit 817f96a.

♻️ This comment has been updated with latest results.

ianpittwood and others added 4 commits February 13, 2026 06:48
Tests cover multiple platforms, duplicate platform handling (most recent
wins), empty metadata error case, and single platform scenarios.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add tests for platform mismatch fallback, explicit platform selection,
and most recent metadata selection. Fix incorrect docstrings in existing
ref tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add tests for BuildMetadata.created_at property (from annotations, build
provenance, and fallback to now) and platform property (from descriptor,
build provenance environment, and None fallback). Add tests for
MetadataFile.get_target_metadata_by_uid, __repr__, and FileNotFoundError
handling. Remove unused __str__ method from MetadataFile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ianpittwood ianpittwood marked this pull request as ready for review February 13, 2026 14:42
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