Skip to content

Reject invalid NVR before calling Koji API - #522

Merged
hluk merged 1 commit into
release-engineering:masterfrom
hluk:reject-invalid-nvr-before-koji
Nov 4, 2026
Merged

hluk merged 1 commit into
release-engineering:masterfrom
hluk:reject-invalid-nvr-before-koji

Conversation

@hluk

@hluk hluk commented Oct 30, 2026

Copy link
Copy Markdown
Member

An invalid NVR, e.g. a bare package name like "pki-core", is rejected by Koji with an "invalid format" error. Reject such NVRs client-side instead, mirroring koji.parse_NVR() validation, to avoid a failing Koji request for every message about such subject.

Assisted-by: GLM 5.3

JIRA: RHELWF-14872

@codecov

codecov Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.37%. Comparing base (92dbdeb) to head (3e5a00d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #522      +/-   ##
==========================================
+ Coverage   93.28%   93.37%   +0.09%     
==========================================
  Files          57       57              
  Lines        4751     4772      +21     
  Branches      300      300              
==========================================
+ Hits         4432     4456      +24     
+ Misses        261      258       -3     
  Partials       58       58              
Flag Coverage Δ
unit-tests 93.37% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hluk
hluk requested a review from mvalik October 30, 2026 12:54
Comment thread greenwave/resources.py Resolved
An invalid NVR, e.g. a bare package name like "pki-core", is rejected
by Koji with an "invalid format" error. Reject such NVRs client-side
instead, mirroring koji.parse_NVR() validation, to avoid a failing
Koji request for every message about such subject.

Assisted-by: GLM 5.3

JIRA: RHELWF-14872
@hluk
hluk force-pushed the reject-invalid-nvr-before-koji branch from 65df4fb to 3e5a00d Compare November 2, 2026 05:37
@hluk
hluk requested a review from mvalik November 2, 2026 06:37
@hluk
hluk merged commit f8a03d8 into release-engineering:master Nov 4, 2026
11 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