Skip to content

Enforce fixVersion validation when searching for rebuild dependencies - #769

Merged
lbarcziova merged 1 commit into
packit:mainfrom
lbarcziova:fix-rebuild-dependency-fixversion-validation
Aug 20, 2026
Merged

Enforce fixVersion validation when searching for rebuild dependencies#769
lbarcziova merged 1 commit into
packit:mainfrom
lbarcziova:fix-rebuild-dependency-fixversion-validation

Conversation

@lbarcziova

Copy link
Copy Markdown
Member

The triage and sibling rebuild agents search for dependency CVE trackers by CVE ID and component, but never validated that the found tracker targets the same RHEL version stream. With multiple z-streams now active (10.0.z, 10.1.z, 10.2.z, 10.3), the LLM could pick a tracker from a different stream, causing the buildroot check to use the wrong NVR and produce nonsensical postpone messages (e.g. "waiting for golang (golang-1.26.5-1.el10_0)" on a rhel-10.3 ticket).

Changes:

  • Instruct triage agent to validate that dependency issues have a matching fixVersion (same major.minor) and never use trackers from different streams
  • Add rebase/update ticket fallback when no CVE tracker exists for the target stream (with requirement to verify the rebase fixes the CVE)
  • Fall back to clarification-needed instead of using a wrong-stream tracker
  • Apply same fixVersion validation to sibling rebuild analysis

Assisted-by: Claude Opus 4.6

The triage and sibling rebuild agents search for dependency CVE trackers
by CVE ID and component, but never validated that the found tracker
targets the same RHEL version stream. With multiple z-streams now active
(10.0.z, 10.1.z, 10.2.z, 10.3), the LLM could pick a tracker from a
different stream, causing the buildroot check to use the wrong NVR and
produce nonsensical postpone messages (e.g. "waiting for golang
(golang-1.26.5-1.el10_0)" on a rhel-10.3 ticket).

Changes:
- Instruct triage agent to validate that dependency issues have a
  matching fixVersion (same major.minor) and never use trackers from
  different streams
- Add rebase/update ticket fallback when no CVE tracker exists for the
  target stream (with requirement to verify the rebase fixes the CVE)
- Fall back to clarification-needed instead of using a wrong-stream
  tracker
- Apply same fixVersion validation to sibling rebuild analysis

Assisted-by: Claude Opus 4.6

@majamassarini majamassarini left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@lbarcziova
lbarcziova marked this pull request as ready for review August 20, 2026 11:21
@TomasKorbar
TomasKorbar self-requested a review August 20, 2026 12:02

@TomasKorbar TomasKorbar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@lbarcziova
lbarcziova merged commit fdd5e86 into packit:main Aug 20, 2026
11 checks passed
@lbarcziova
lbarcziova deleted the fix-rebuild-dependency-fixversion-validation branch August 20, 2026 12:03
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.

3 participants