Repository navigation
Refresh package product_name per mirror row, not per NEVRA - #105
Merged
Merged
Conversation
A src or noarch NEVRA is stored once per repo and mirror: emacs's src RPM has a row on each of the x86_64, aarch64, ppc64le and s390x mirrors. create_or_update_advisory_packages looked existing rows up by NEVRA alone, so on every re-match all of those mirrors' packages found the same row. Each mirror's stream_product_name then looked stale against it, and they were all written onto that one row, the last one winning. The result was rows like an x86_64 mirror package labelled "Rocky Linux 10 s390x", the stream label scanners join on. Look existing rows up by (nevra, repo_name, mirror) for the product_name refresh and the missing-module-field fill, so each row is compared with its own mirror's package. Deciding which NEVRAs are new still uses the NEVRA alone, so this doesn't change which rows get created or removed. rocky-errata-service fixed the same lookup in 804c439.
rockythorn
force-pushed
the
fix/product-name-per-mirror-row
branch
from
November 13, 2026 00:54
8d5bd37 to
e29dd66
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A src or noarch NEVRA is stored once per repo and mirror: emacs's src RPM has a row on each of the x86_64, aarch64, ppc64le and s390x mirrors.
create_or_update_advisory_packageslooked existing rows up by NEVRA alone, so on every re-match all of those mirrors' packages found the same row. Each mirror'sstream_product_namethen looked stale against it, and they were all written onto that one row, the last one winning. The result was rows like an x86_64 mirror package labelled "Rocky Linux 10 s390x", the stream label scanners join on.Changes
(nevra, repo_name, mirror)for theproduct_namerefresh and the missing-module-field fill, so each row is compared with its own mirror's package.rocky-errata-service fixed the same lookup in 804c439.
Verification
Unit tests: 4 new tests in
test_rh_matcher_activities(TestPackageRowsPerMirror):product_nameThe first three fail before this change, and the fourth guards the unchanged creation path. All 16 CI unit targets pass.
Real matcher run: a 2026-08-31 production snapshot plus a full RH CSAF ingest.
product_namediffers from their mirror's name.advisory_packages,advisory_affected_products,advisory_cvesandadvisory_fixes, and the advisory count, is unchanged.