fmf: Uninstall cockpit-packagekit for basic and network plans #19556
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.
These plans are not meant to have cockpit-packagekit installed. That isn't in the test dependency list, but dnf installs "missing" weak dependencies on upgrades by default, which is undesired: The packagekit page gets preloaded and thus influences the test outcome, particularly when it is an old version (as happens during downstream gating).
So remove the package again if it got installed for plans other than "optional" (which is the one that actually tests packagekit).
Fixes https://gitlab.com/redhat/centos-stream/rpms/cockpit/-/merge_requests/68
See the link, this breaks the downstream release. I ran the tests against this branch to confirm that it fixes it.
This is essentially the same approach as in e.g. cockpit-project/cockpit-machines@430b819 or cockpit-project/cockpit-podman@99efdb6 , which work around the same dnf misfeature.