Repository navigation
Fix buildroot check for c8s z-stream rebuilds - #659
Conversation
PR Summary by QodoSkip CentOS Stream buildroot checks for c8s Z-stream rebuilds
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
There was a problem hiding this comment.
Code Review
This pull request updates the buildroot check resolution logic in ymir/common/utils.py to handle the EOL CentOS 8 Stream (c8s) branch as an exception, querying only the Brew Z-stream buildroot. The reviewer noted that if target_branch is 'c8s' but is_zstream is False, the logic incorrectly falls back to checking the CentOS Stream Koji buildroot. They suggested handling 'c8s' separately to prevent this and raising an error if a valid RHEL version cannot be parsed.
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.
| rhel_branch = construct_internal_branch_name(major, minor) | ||
| checks.append((BREWHUB_URL, f"{rhel_branch}-z-build")) | ||
| return checks | ||
| if target_branch == "c8s": |
There was a problem hiding this comment.
I think we have already some logic for checking the maintenance version, could we use it here instead of hardcoding?
There was a problem hiding this comment.
good point, I've moved the get_maintenance_majors() from jira.py to version_utils.py so we can reuse the function
Code Review by Qodo
Context used✅ Compliance rules (platform):
7 rules 1. Untested c8s buildroot path
|
c8s is EOL — builds always go to Brew, never CentOS Stream Koji. Skip the stale c8s-build tag check and only verify the Brew z-stream buildroot (rhel-8.10.0-z-build). Assisted-by: Claude (Cursor)
c8s is EOL — builds always go to Brew, never CentOS Stream Koji. Skip the stale c8s-build tag check and only verify the Brew z-stream buildroot (rhel-8.10.0-z-build).
Assisted-by: Claude (Cursor)