Skip to content

Conversation

jbtrystram
Copy link
Member

Make sure to not rely on the host $releasever to resolves the packages to avoid a desync

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates konflux-rpm-lockfile to use the $releasever from the manifest file, which is a good improvement for reproducibility. I've added a review comment to make this more robust. Currently, if releasever is missing from the manifest, the script silently falls back to using the host's version. My suggestion is to add a check to ensure releasever is present and fail if it's not, to avoid this unintended behavior.

@jbtrystram jbtrystram force-pushed the konflux-lockfile-releasever-fix branch from 8cf746b to 69e6776 Compare October 15, 2025 10:32
@jbtrystram
Copy link
Member Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly modifies konflux-rpm-lockfile to use the releasever from the manifest, preventing potential desynchronization with the host system. The logic is sound. I've identified a minor issue with a print statement, including a typo, an indentation error, and a suggestion to use stderr for warning messages. Please see the detailed comment.

Copy link
Member

@joelcapitao joelcapitao left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@joelcapitao joelcapitao left a comment

Choose a reason for hiding this comment

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

See gemini comment

Make sure to not rely on manifest-provided $releasever to resolves
packages to avoid a desync.

For RHEL we don't use releasever so using the host's value have no
incidence, so no need to throw an error if it's missing.
@jbtrystram jbtrystram force-pushed the konflux-lockfile-releasever-fix branch from 69e6776 to a595a5e Compare October 15, 2025 11:59
@jbtrystram
Copy link
Member Author

Updated and tested locally for next-devel (where the local install is F42 and we are resolving f43)

Copy link
Member

@joelcapitao joelcapitao left a comment

Choose a reason for hiding this comment

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

LGTM

@joelcapitao joelcapitao enabled auto-merge (rebase) October 15, 2025 12:19
@joelcapitao joelcapitao merged commit c0c9824 into coreos:main Oct 15, 2025
6 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