Skip to content
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

fix: handle none-type values more carefully #311

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

ralphbean
Copy link
Member

In the event that an image does not have any gzipped layers, then no uncompressed layer information will be handed to this tool and it will pass on the None value to pyxis. That fails pyxis' input validation, blocking containerImage creation.

In this change, simply drop these values if they happen to be none.

@ralphbean ralphbean requested a review from a team as a code owner November 11, 2024 20:43
In the event that an image does not have any gzipped layers, then no
uncompressed layer information will be handed to this tool and it will
pass on the None value to pyxis. That fails pyxis' input validation,
blocking containerImage creation.

In this change, simply drop these values if they happen to be none.

Signed-off-by: Ralph Bean <[email protected]>
@ralphbean ralphbean force-pushed the careful-with-none-values branch from 0eea308 to 0769f58 Compare November 11, 2024 20:44
@ralphbean
Copy link
Member Author

Apologies for the heavy hand, but I'm going to merge this one without review. Working on a late-breaking blocker.

@ralphbean ralphbean merged commit f00c49d into main Nov 11, 2024
3 checks passed
@ralphbean ralphbean deleted the careful-with-none-values branch November 11, 2024 21:11
ralphbean added a commit to konflux-ci/release-service-catalog that referenced this pull request Nov 11, 2024
The purpose is to pull 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.
ralphbean added a commit to konflux-ci/release-service-catalog that referenced this pull request Nov 11, 2024
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.
@johnbieren
Copy link
Collaborator

Ticket for tests https://issues.redhat.com/browse/RELEASE-1289

scoheb pushed a commit to scoheb/release-service-catalog that referenced this pull request Nov 28, 2024
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.
scoheb pushed a commit to konflux-ci/release-service-catalog that referenced this pull request Nov 28, 2024
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.
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