-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conflict check does not properly leave out existing packages that will be replaced by the update under test #20
Comments
actually, this is already using |
also, thinking about it, "Conflicts cannot happen between solvables with the same name, such solvables cannot be installed next to each other." isn't true - we have parallel-installable packages, like kernel. So I guess this check would incorrectly fail to find conflicts between two kernel packages. Not sure if |
…ora-ci#20) As explained in issue fedora-ci#20, when checking for conflicts, it's not enough to skip only existing packages with the same name as the one they are being checked against. We should skip all existing packages that the set of packages being tested would replace. Fortunately, we already have `_select_obsoleted_by` to do this exact job, so let's just use it here. We keep the existing 'skip if the names are the same' check to avoid generating confusing results if the update under test contains a package with the same name as an existing package but with a *lower* EVR. This is wrong, but we should leave it to be caught by other checks; handling it here would give a rather confusing failure about file conflicts between the two packages, which the packager might not understand. Signed-off-by: Adam Williamson <[email protected]>
…ora-ci#20) As explained in issue fedora-ci#20, when checking for conflicts, it's not enough to skip only existing packages with the same name as the one they are being checked against. We should skip all existing packages that the set of packages being tested would replace. Fortunately, we already have `_select_obsoleted_by` to do this exact job, so let's just use it here. We keep the existing 'skip if the names are the same' check to avoid generating confusing results if the update under test contains a package with the same name as an existing package but with a *lower* EVR. This is wrong, but we should leave it to be caught by other checks; handling it here would give a rather confusing failure about file conflicts between the two packages, which the packager might not understand. Signed-off-by: Adam Williamson <[email protected]>
per #21 (comment) , I'm rethinking whether this behavior is actually wrong. It seems like kinda a tricky situation, so I sent a mail out to a few folks and mailing lists to solicit input. |
Consider this rpmdeplint failure. It finds conflicts between compiler-rt18-18.1.7-3.fc42.x86_64 from the update and compiler-rt-18.1.8-2.fc41.x86_64 from the existing package set, and between clang18-18.1.7-5.fc42.x86_64 from the update and clang-18.1.8-3.fc41.i686 from the existing package set.
These conflicts are not valid, because the update also contains newer builds of compiler-rt and clang - clang-19.1.0-1.fc42 and compiler-rt-19.1.0-1.fc42 , which are subpackages of llvm.
It looks to me like the way
find_conflicts
attempts to filter out cases where this might happen is naive - it only does this:but that does not handle cases like this.
find_repoclosure_problems
starts with a more sophisticated implementation of this:perhaps that should be generalized out from
find_repoclosure_problems
and used by all subtests for which it is appropriate, including rpmdeplint?The text was updated successfully, but these errors were encountered: