Skip to content

Conversation

mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Jul 28, 2025

[draft as this needs https://github.com/osbuild/images/pull/1700 first]


bib: use manifestmock.ResolveContainers from images

With that we can compare manifests between bib and images,
e.g.

$ go build && sudo IMAGE_BUILDER_EXPERIMENTAL=bib-mock-resolvers ./bootc-image-builder manifest -v --type qcow2 quay.io/centos-bootc/centos-bootc:stream9 |jq > bootc_centos_9-x86_64-qcow2-bootc_empty.json && diff -u bootc_centos_9-x86_64-qcow2-bootc_empty.json /tmp/new/bootc_centos_9-x86_64-qcow2-bootc_empty.json

to see the difference between bib and images for the same
container.

This commit moves to images v0.166.0
@mvo5 mvo5 force-pushed the add-mock-manifest-resolving branch 2 times, most recently from 339e40d to 3a713e6 Compare July 30, 2025 06:51
mvo5 added 4 commits July 30, 2025 09:09
With that we can compare manifests between bib and images,
e.g.
```
$ go build && sudo IMAGE_BUILDER_EXPERIMENTAL=bib-mock-resolvers ./bootc-image-builder manifest -v --type qcow2 quay.io/centos-bootc/centos-bootc:stream9 |jq > bootc_centos_9-x86_64-qcow2-bootc_empty.json && diff -u bootc_centos_9-x86_64-qcow2-bootc_empty.json /tmp/new/bootc_centos_9-x86_64-qcow2-bootc_empty.json
```
to see the difference between bib and images for the same
container.
Add a `gen-manifests` helper that creates mock manifests from
the given image type. Its not perfect mocks as it still will
look into the bootc ref (centos9).

Its not generating checksums only because to compare from the
manifests generated by bib and images its easier to work with
full manifests and we only have very few of them in bib.
Unlike images which has tons of manifests we only have a
few and when we do cross images<->bib manifest diff having
them in git will be useful.
@mvo5 mvo5 force-pushed the add-mock-manifest-resolving branch from 3a713e6 to 8ca36e4 Compare July 30, 2025 07:12
Copy link

This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days.

@github-actions github-actions bot added the Stale Issue or PR with no activity for extended period of time label Aug 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Issue or PR with no activity for extended period of time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant