Skip to content

Conversation

@peakschris
Copy link
Contributor

Support generation of 'oci' format tarballs of oci_image targets

@aspect-workflows
Copy link

aspect-workflows bot commented Oct 16, 2025

Test

1 test target passed

Targets
//examples/assertion:case11_test [k8-fastbuild]  419ms

Total test execution time was 419ms. 48 tests (98.0%) were fully cached saving 21s.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR.

Comment on lines 50 to +53
if [[ "${FORMAT}" == "oci" ]]; then
# Handle multi-architecture image indexes.
# Ideally the toolchains we rely on would output these for us, but they don't seem to.
if [[ "${MEDIA_TYPE}" != "application/vnd.oci.image.manifest.v1+json" ]]; then
# Handle oci_image_index multi-architecture image indexes.
# Ideally the toolchains we rely on would output these for us, but they don't seem to.

Choose a reason for hiding this comment

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

P1 Badge Multi-arch indexes routed through single-image branch

The new OCI branch decides whether to treat the input as an index or a single image by checking MEDIA_TYPE against application/vnd.oci.image.manifest.v1+json. MEDIA_TYPE is derived from .manifests[0].mediaType, which is also application/vnd.oci.image.manifest.v1+json for multi-architecture oci_image_index outputs. After this change such indexes now execute the single-image path, so only the first manifest’s config and layers are added and the index.json is not rewritten for additional architectures. Multi-arch tarballs will therefore be missing secondary platforms. The branch should detect indexes via the number of manifests or the top-level media type instead of a string comparison to the first manifest’s type.

Useful? React with 👍 / 👎.

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