Current
Currently the containers used in CI testing install every package from apt or dnf, which is probably fine for most dependencies since they should ideally be compatible with what some users would use.
This has become a problem for the migration to Pytest (#5881), which generally relies on modern Pytest constructs. There have been several spots in #5894 where there is extra logic specifically for handling various Pytest versions.
That logic may be simple on the surface, but I personally have spent far, far more time and energy than I wanted to just trying to figure out which features I can use and which I can't use.
Proposed
It would be much easier to just install pytest, pytest-cov, and pytest-order with pip in the containers so that I can actually know that the version is consistent. This wouldn't necessarily affect the generality of the tests since the other Python packages are still installed via apt or dnf, and those are what the few users who are, for one reason or another, unable to use a package manager, actually care about.
Current
Currently the containers used in CI testing install every package from
aptordnf, which is probably fine for most dependencies since they should ideally be compatible with what some users would use.This has become a problem for the migration to Pytest (#5881), which generally relies on modern Pytest constructs. There have been several spots in #5894 where there is extra logic specifically for handling various Pytest versions.
That logic may be simple on the surface, but I personally have spent far, far more time and energy than I wanted to just trying to figure out which features I can use and which I can't use.
Proposed
It would be much easier to just install
pytest,pytest-cov, andpytest-orderwithpipin the containers so that I can actually know that the version is consistent. This wouldn't necessarily affect the generality of the tests since the other Python packages are still installed viaaptordnf, and those are what the few users who are, for one reason or another, unable to use a package manager, actually care about.