Fix Release bumping for RHEL in maintenance phase#673
Conversation
PR Summary by QodoFix release bumping for maintenance-phase RHEL CentOS Stream branches
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
There was a problem hiding this comment.
Code Review
This pull request introduces support for CentOS Stream branches of RHEL versions in the maintenance phase (such as c8s) to utilize Z-stream release bumping logic. It adds the helper function is_maintenance_cs_branch with corresponding unit tests and integrates it into the UpdateReleaseTool. Feedback on the changes highlights an efficiency issue where setting higher_stream_branch to the same value as dist_git_branch causes redundant, concurrent I/O calls to get_latest_candidate_build inside _set_zstream_release. An optimization is suggested to prevent these duplicate calls when the branches are identical.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Code Review by Qodo
Context used✅ Compliance rules (platform):
7 rules 1.
|
|
/gemini review |
|
/agentic_review |
There was a problem hiding this comment.
Code Review
This pull request adds support for CentOS Stream branches of RHEL versions in the maintenance phase (such as c8s) within the release updating tool. It introduces the is_maintenance_cs_branch utility and updates UpdateReleaseTool to handle these branches similarly to Z-Stream branches by making the higher_stream_branch parameter optional. The feedback points out a potential static analysis warning in _set_zstream_release where latest_higher_stream_build is referenced outside the conditional block where it is defined, and suggests nesting the comparison logic to resolve this.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
Code review by qodo was updated up to the latest commit 7ee5923 |
|
/gemini review |
|
/agentic_review |
There was a problem hiding this comment.
Code Review
This pull request adds support for CentOS Stream branches of RHEL versions in the maintenance phase (such as c8s) within the release update tool. It introduces the is_maintenance_cs_branch utility, updates UpdateReleaseTool to handle these branches similarly to Z-stream branches by making the higher stream branch optional, and adds corresponding unit tests. The review feedback suggests adding a defensive check when unpacking the result of parse_branch_name to prevent a potential TypeError if it returns None.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request adds support for CentOS Stream branches in the maintenance phase (e.g., c8s) to receive Z-stream release bumping by introducing is_maintenance_cs_branch and updating UpdateReleaseTool. The reviewer suggests that instead of querying candidate builds directly using the CentOS Stream branch name, the tool should resolve them to their corresponding internal Z-stream branch (e.g., rhel-8.10.0) where the actual builds reside. To achieve this, the reviewer recommends introducing a new helper get_maintenance_zstream_branch and updating the tool implementation and unit tests accordingly.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
Gemini was right, even if for maintenance phase RHEL we don't need the base release at all in the majority of cases, there could be some when it is required to ensure a proper upgrade path, and deriving it from a CentOS Stream build is wrong, as that would correspond to the last Y-Stream build and ignore any follow-up Z-Stream builds. |
7866a49 to
e3ab036
Compare
RHEL version in maintenance phase (currently RHEL 8.10) is being fixed via CentOS Stream, but the fixes still target an internal Z-Stream branch, so Release bumping must follow Z-Stream logic. Signed-off-by: Nikola Forró <nforro@redhat.com> Assisted-by: Claude Opus 4.6 via Claude Code
RHEL version in maintenance phase (currently RHEL 8.10) is being fixed via CentOS Stream, but the fixes still target an internal Z-Stream branch, so Release bumping must follow Z-Stream logic.