Skip to content

cmd-koji-upload: Add support for node-image #4081

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

Merged
merged 4 commits into from
Apr 26, 2025

Conversation

ravanelli
Copy link
Member

cmd-koji-upload is tightly coupled to the Build class and cosalib internals, which makes supporting the new node-image layout challenging.

This commit introduces a way to maintain compatibility with both the legacy and updated node-image styles for brew uploads.

This is a transitional fix — once the migration to Konflux is complete, this compatibility layer will no longer be necessary.

… of hardcoded path

- This change makes the parent directory configurable by using the
`buildroot` value passed in `kwargs`, improving flexibility and
compatibility with different build environments.

Signed-off-by: Renata Ravanelli <[email protected]>
- Refactored the code to centralize variable definitions and method calls into
the Build class __init__ method.  This improves readability and avoids
scattered variable access throughout the logic.

Signed-off-by: Renata Ravanelli <[email protected]>
@ravanelli ravanelli requested review from jlebon and jbtrystram April 24, 2025 16:32
@ravanelli ravanelli force-pushed the pr/brew-node-image branch from 3c3ef1c to 1894f06 Compare April 25, 2025 17:37
@ravanelli ravanelli requested a review from jlebon April 25, 2025 17:38
 - Refactor get_rpm_list to allow packages from the
new meta.json and extensions.json from the node-image

Signed-off-by: Renata Ravanelli <[email protected]>
 - cmd-koji-upload is tightly coupled to the Build
class and cosalib internals, which makes
supporting the new node-image layout challenging.

This commit introduces a way to maintain compatibility
with both the legacy and updated node-image styles for
brew uploads.

- This is a transitional fix — once the migration to
Konflux is complete, this compatibility layer will
no longer be necessary.

Signed-off-by: Renata Ravanelli <[email protected]>
@jlebon jlebon force-pushed the pr/brew-node-image branch from 1894f06 to f25a6ba Compare April 26, 2025 14:33
@jlebon jlebon enabled auto-merge (rebase) April 26, 2025 14:34
@jlebon jlebon merged commit 8cdfb75 into coreos:main Apr 26, 2025
5 checks passed
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