-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: introduce content manifest with content sets #1771
Conversation
fac3ea4
to
b837471
Compare
I thought this change would be simple at first, but the complexity is growing.
|
For backwards compatibility with scanners that still expect to find this file. Related: konflux-ci/build-definitions#1771
c74316d
to
3f304e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this all looks good to me 👍 with the exception that it is referencing an image in your personal quay repo.
For backwards compatibility with image scanners that still expect https://raw.githubusercontent.com/containerbuildsystem/atomic-reactor/master/atomic_reactor/schemas/content_manifest.json
97b6c64
to
7661de4
Compare
Thanks, the image is now updated with quay.io/konflux-ci/icm-injection-scripts |
There was an e2e test failure here, but it looks unrelated.
That's a failure in the fbc pipeline which doesn't use the buildah task(s) being changed here. |
The FBC pipeline issue could be legitimate. Its e2e tests now utilize the local operating mode for the buildah-remote-oci-ta task. |
That maps to https://github.com/konflux-qe-bd/fbc-sample-repo/pull/2792/checks?check_run_id=34724758501 which is a failure case of tektoncd/pipeline#8388 We need to deploy a new version of Tekton to resolve this issue. I think that that is planned on Monday with redhat-appstudio/infra-deployments#5201. |
Good catch, thank you! |
@@ -487,16 +492,19 @@ spec: | |||
mountPath: /mnt/trusted-ca | |||
readOnly: true | |||
workingDir: $(workspaces.source.path) | |||
|
|||
- name: icm | |||
image: quay.io/konflux-ci/icm-injection-scripts:latest@sha256:462980e94ba689b5f56c3d5dfb3358cd8c685300daf65a71532f11898935e7f1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two questions:
- Where is the source code to this thing?
- Why is the container image missing standard metadata to describe its sources? (Its
"org.opencontainers.image.url": "https://fedoraproject.org/"
is apparently inherited from Fedora 40)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
answering the first part of my own question by searching github, looks like it's in https://github.com/konflux-ci/build-tasks-dockerfiles/tree/main/icm-injection-scripts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The answer to the second part is that the labels are not overwritten in the Containerfile: https://github.com/konflux-ci/build-tasks-dockerfiles/blob/main/icm-injection-scripts/Containerfile#L7
The fact that they persisted to this image means that they were also not overwritten in the parent images, i.e. https://github.com/konflux-ci/buildah-container/blob/main/Containerfile.task and https://github.com/konflux-ci/buildah-container/blob/main/Containerfile.buildah
For backwards compatibility with image scanners that still expect https://raw.githubusercontent.com/containerbuildsystem/atomic-reactor/master/atomic_reactor/schemas/content_manifest.json
Looking forward, clair and other scanners are going to adapt to start reading the content sets from the dnf database and later from our sboms - but they're not ready for that yet. Add this file to support them while they migrate.
See also containerbuildsystem/atomic-reactor#2140
https://issues.redhat.com/browse/KONFLUX-6200