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

feat(RELEASE-1144): push content sets to Pyxis #248

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

mmalina
Copy link
Contributor

@mmalina mmalina commented Sep 12, 2024

The upload_rpm_manifest script was renamed to
upload_rpm_data.

On top of the rpm manifest, it will now also update the ContainerImage.content_sets field in Pyxis.

The content sets is a list of unique strings
taken from the repository_id qualifier of purl
entries.

I tested the script by running it against several images in stage Pyxis. I hit different scenarios (no content sets in pyxis, then saved and skipped, and also no content sets in the sbom) and it all seemed to work.

@mmalina mmalina force-pushed the push-content-sets branch 3 times, most recently from 53d3493 to a4c2712 Compare September 16, 2024 06:15
@mmalina mmalina marked this pull request as ready for review September 16, 2024 06:17
@mmalina mmalina requested a review from a team as a code owner September 16, 2024 06:17
Copy link
Collaborator

@johnbieren johnbieren left a comment

Choose a reason for hiding this comment

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

Unfortunate that github can't render the test file diff, but I diff'ed it locally and it seems sane. One nit pick

pyxis/upload_rpm_data.py Outdated Show resolved Hide resolved
@mmalina
Copy link
Contributor Author

mmalina commented Sep 16, 2024

Unfortunate that github can't render the test file diff, but I diff'ed it locally and it seems sane. One nit pick

Yeah, it's weird. It did show the diff properly for the main py file, but not for the test file. Maybe too many changes?

The `upload_rpm_manifest` script was renamed to
`upload_rpm_data`.

On top of the rpm manifest, it will now also update
the ContainerImage.content_sets field in Pyxis.

The content sets is a list of unique strings
taken from the repository_id qualifier of purl
entries.

Signed-off-by: Martin Malina <mmalina@redhat.com>
@mmalina mmalina merged commit ccea6ba into konflux-ci:main Sep 17, 2024
3 checks passed
@mmalina mmalina deleted the push-content-sets branch September 17, 2024 07:38
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