Skip to content

Disallow RPM upload with the same NVR [RHELDST-37824]#403

Draft
rbikar wants to merge 2 commits into
release-engineering:masterfrom
rbikar:disallowe-rpm-dupes
Draft

Disallow RPM upload with the same NVR [RHELDST-37824]#403
rbikar wants to merge 2 commits into
release-engineering:masterfrom
rbikar:disallowe-rpm-dupes

Conversation

@rbikar
Copy link
Copy Markdown
Member

@rbikar rbikar commented Jun 5, 2026

This change introduces a functionality that will raise a fatal error when upload of an RPM with NVR of already present unit in pulp.

The RPMs in question differ only with their checksums (and signing keys), further association to live repositories and publish will cause breakage of repository.

Duplicates check is by default disabled, and can be enabled by setting PUBTOOLS_PULP_ALLOW_DUPLICATE_UNITS env var.

This should be a workaround until proper suport for sucvh scenario is implemented.

@rbikar rbikar force-pushed the disallowe-rpm-dupes branch 3 times, most recently from 562d78c to aaca11a Compare June 5, 2026 08:55
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2026

Codecov Report

❌ Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 99.76%. Comparing base (0066a0d) to head (c08da81).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/pubtools/_pulp/tasks/push/items/base.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #403      +/-   ##
==========================================
- Coverage   99.80%   99.76%   -0.04%     
==========================================
  Files          54       54              
  Lines        3018     3033      +15     
==========================================
+ Hits         3012     3026      +14     
- Misses          6        7       +1     

☔ 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.

@rbikar rbikar force-pushed the disallowe-rpm-dupes branch from aaca11a to 3bcbfda Compare June 5, 2026 09:03
This change introduces a functionality that will raise a fatal error
when upload of an RPM with NVR of already present unit in pulp.

The RPMs in question differ only with their checksums (and signing keys),
further association to live repositories and publish will cause breakage
of repository.

Duplicates check is by default disabled, and can be enabled by setting
PUBTOOLS_PULP_ALLOW_DUPLICATE_UNITS env var.

This should be a workaround until proper suport for sucvh scenario is
implemented.
@rbikar rbikar force-pushed the disallowe-rpm-dupes branch from c80112b to cab454d Compare June 5, 2026 14:29
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.

1 participant