Skip to content

Conversation

@jlebon
Copy link
Member

@jlebon jlebon commented Aug 15, 2025

This doesn't work in the container-native path because the
ostree-commit in the aleph is from the encapsulation done as part of
build-chunked-oci, but the ostree-commit we embed in meta.json is
from the imported "merge commit".

I think what we need is to tweak our osbuild manifests to use the
import path rather than unencapsulate path, and that should result in
the merge commit getting inserted in the aleph (but also that would be
one less dependency on even having ostree-commit in meta.json in the
first place).

Anyway, I think just checking the version string is good enough for our
purposes here.

jlebon added 2 commits August 15, 2025 16:30
This doesn't work in the container-native path because the
ostree-commit in the aleph is from the encapsulation done as part of
`build-chunked-oci`, but the `ostree-commit` we embed in `meta.json` is
from the imported "merge commit".

I _think_ what we need is to tweak our osbuild manifests to use the
import path rather than unencapsulate path, and that should result in
the merge commit getting inserted in the aleph (but also that would be
one less dependency on even having `ostree-commit` in `meta.json` in the
first place).

Anyway, I think just checking the version string is good enough for our
purposes here.
…ners-storage

There's no digest to preserve in that case since it's all uncompressed.

Relevant only in the `--direct` path.
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes a check for the ostree commit in testiso, which was causing issues in container-native paths. The changes in mantle/cmd/kola/testiso.go are correct and align with this goal. In src/cmd-import, the logic for calling skopeo has been adjusted. While functionally correct, I've suggested a small refactoring to improve the command construction for better readability and robustness against future changes in skopeo.

Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

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

LGTM

@jlebon jlebon enabled auto-merge (rebase) August 18, 2025 20:59
@jlebon jlebon disabled auto-merge August 18, 2025 20:59
@jlebon jlebon merged commit d6b4880 into coreos:main Aug 18, 2025
5 of 6 checks passed
@jlebon jlebon deleted the pr/more-fixes-import branch August 18, 2025 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.

2 participants