Skip to content

Conversation

@IsaacOscar
Copy link
Collaborator

This pull request adds CI Tests for for Dnf5: these reuse all the tests for zypper by using a for loop and bat's new ``bats_test_functionfeature. However the script used to generate the docker file is new, but tries to do the same thing as thezypper` one (but with `dnf5` of course).

This pull request depends on some of the changes made by my previous two: #34 and #35, so only the last three listed commits are new.

Interestingly, I found a bug in openSUSE Tumbleweed's repo: dnf5 seams to depend somehow on either libcurl4 or libcurl.so.4()(64bit). These capabilities are provided by both the libcurl-mini4 and libcurl4 packages. However with the former installed, dnf5 complains:

Updating and loading repositories:
Failed to set up metadata download
 Librepo error: No handle specified

The same issue happens with the old dnf.
I haven't the faintest clue who to report this problem to though.

openSUSE's dnf5 package adds /etc/dnf/repos.d to the default repo directory list.
So this makes cnf search that as well.
This gives an error if it can't detect a supported package manager.
This just makes the examples in the documentation match the current
output format.
The man page also instructs you on how to update the repository chache
that is queried.
This also modifies the zsh file to use the COMMAND_NOT_FOUND_BIN
variable, just like the bash one.
This mentions that cnf support is already included in fish.

It also adds a command_not_found.fish script, but you only need to use that if:
	command-not-found is not in your path, or not the one you want to use
	fish has detected another command not found handler, and prefers that

Note that overriding the command not found behaviour is only avilable
since fish version 1.23.1.
This enables manually trigger the "PR check" workflow from the
github.com web interface, thus allowing people to easilly run the
workflow before actually submitting a pull request.
The Dockerfile is also renamed to zypper.dockerfile.
This is in preparation for having multiple docker images.
This also builds a new docker image with dnf5 installed, but no zypper.
The README is also updated on how to manually build the images and run
the tests.

The bats submodule is also updated to v1.11.0, as that version
introduces a "bats_test_function" to dynamically register test functions.
@IsaacOscar IsaacOscar mentioned this pull request Aug 30, 2025
@vyskocilm vyskocilm merged commit 3a63bf6 into openSUSE:main Aug 30, 2025
1 check passed
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.

2 participants