Repository navigation
test: Fix IncrementalSkipDuplicates using wrong repodata path - #6
Merged
Merged
Conversation
RPM repos use a versioned/arch nested layout (e.g. `40/x86_64/repodata/`), so hardcoding `repoDir/repodata` in verifyRPMPackageCount never finds the directory. Use the existing findRepodataDir helper instead, which is how the ChecksumVerification/RPM test already does it. Assisted-by: OpenCode (claude-sonnet-4.6)
bsherman
force-pushed
the
fix-integration-test
branch
from
March 19, 2026 18:40
f4ab924 to
a2797e2
Compare
Two bugs caused this test to fail: 1. verifyRPMPackageCount hardcoded `repoDir/repodata` but RPM repos use a nested versioned/arch layout (e.g. `40/x86_64/repodata/`). Fix: use the existing findRepodataDir helper, consistent with ChecksumVerification/RPM. 2. findPrimaryXML scanned the repodata directory for any file matching "primary.xml.gz", but a repo may legitimately have multiple such files (content-addressed, older ones are valid to retain). On a multi-step incremental run this returned the stale single-package file instead of the current two-package one. Fix: parse repomd.xml and follow its authoritative href, as the generator and real package managers do. Assisted-by: OpenCode (claude-sonnet-4.6)
bsherman
force-pushed
the
fix-integration-test
branch
from
March 19, 2026 18:47
a2797e2 to
875e01c
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.
Two bugs in
TestIntegration/IncrementalSkipDuplicates:verifyRPMPackageCounthardcodedrepoDir/repodataas the repodata path, but RPM repos use a nested layout (<version>/<arch>/repodata/). Fixed by using the existingfindRepodataDirhelper, consistent with howChecksumVerification/RPMalready works.findPrimaryXMLscanned the repodata directory for any filename containingprimary.xml.gz. A yum/dnf repo may have multiple such files present simultaneously (they are content-addressed; retaining older ones is valid), so this could return a stale file from a previous incremental run. Fixed by parsingrepomd.xmland following its authoritativehref, which is what the generator and real package managers do.