-
Notifications
You must be signed in to change notification settings - Fork 52
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
hack: workaround for bootc #684
base: development
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
@ralphbean I looked at https://github.com/konflux-ci/release-service-utils/pull/311/files and it adds a check for null values. But based on the conversation in Slack https://redhat-internal.slack.com/archives/C04PZ7H0VA8/p1731348500504399 it seemed there was a duplicate value (because the same layer was present in multiple images). Can you explain? |
Yes - take a look at
Now, let's loop over those, and for each one, inspect the
They're the same! That's the problem. In our task, we insert them to pyxis one after another (one arch, then the second, then the third). The first one succeeds, but the second one fails. It is rejected by pyxis, because it violates a duplicate key constraint: no two images in pyxis are allowed to have the same top_layer_id. So, the workaround here is just to not upload that. The reason they are duplicates is that this particular image is not squashed at build time. The last layer during build is something static that never varies. If it were squashed, then the digests would be unique. We need a better long-term fix than this workaround. Some options:
|
Do not merge. This is a temporary pipeline to for rpm-ostree images.
5fc1258
to
6cf252c
Compare
FYI, I created a Jira to add a flag for this: https://issues.redhat.com/browse/RELEASE-1336 |
A new option is added to data file to be able to skip layer details when create Pyxis image. This was previously created as a one-off workaround to unblock bootc releases here: konflux-ci#684 Now it's an option that can be enabled as needed. For full explanation, see the jira and also the comment in the task script. Signed-off-by: Martin Malina <[email protected]>
A new option is added to data file to be able to skip layer details when create Pyxis image. This was previously created as a one-off workaround to unblock bootc releases here: konflux-ci#684 Now it's an option that can be enabled as needed. For full explanation, see the jira and also the comment in the task script. Signed-off-by: Martin Malina <[email protected]>
A new option is added to data file to be able to skip layer details when create Pyxis image. This was previously created as a one-off workaround to unblock bootc releases here: konflux-ci#684 Now it's an option that can be enabled as needed. For full explanation, see the jira and also the comment in the task script. Signed-off-by: Martin Malina <[email protected]>
And now there is a PR: #730 |
A new option is added to data file to be able to skip layer details when create Pyxis image. This was previously created as a one-off workaround to unblock bootc releases here: konflux-ci#684 Now it's an option that can be enabled as needed. For full explanation, see the jira and also the comment in the task script. Signed-off-by: Martin Malina <[email protected]>
A new option is added to data file to be able to skip layer details when create Pyxis image. This was previously created as a one-off workaround to unblock bootc releases here: konflux-ci#684 Now it's an option that can be enabled as needed. For full explanation, see the jira and also the comment in the task script. Signed-off-by: Martin Malina <[email protected]>
A new option is added to data file to be able to skip layer details when create Pyxis image. This was previously created as a one-off workaround to unblock bootc releases here: #684 Now it's an option that can be enabled as needed. For full explanation, see the jira and also the comment in the task script. Signed-off-by: Martin Malina <[email protected]>
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Do not merge. This is a temporary pipeline to for rpm-ostree images.
The image update here pulls in this change:
konflux-ci/release-service-utils#311
It makes it so that in the event that the layer data is absent, a
null
value won't be sent to pyxis which would be rejected by pyxis' input validation.