When running the test suite on on-prem systems where flux, pytest, linters and formatters are installed with Spack into a chiltepin Spack environment, the tests fail with:
ModuleNotFoundError: No module named 'tests'
There is something wrong with the way pytest handles paths that causes tests which run under a Parsl job inside of a Slurm pilot job to get confused. The container fixes this issue by explicitly installing pytest==7.3.1. Versions of pytest >=7.4.0 will will not work. Attempts were made to add pythonpath information to the pyproject.toml file to fix the issue, but it doesn't help.
The ./install.sh script used for on-prem systems does not constrain pytest to 7.3.1 so this problem prevents the test suite from passing on those systems.
When running the test suite on on-prem systems where flux, pytest, linters and formatters are installed with Spack into a
chiltepin
Spack environment, the tests fail with:ModuleNotFoundError: No module named 'tests'
There is something wrong with the way
pytest
handles paths that causes tests which run under a Parsl job inside of a Slurm pilot job to get confused. The container fixes this issue by explicitly installingpytest==7.3.1
. Versions of pytest>=7.4.0
will will not work. Attempts were made to add pythonpath information to thepyproject.toml
file to fix the issue, but it doesn't help.The
./install.sh
script used for on-prem systems does not constrainpytest
to7.3.1
so this problem prevents the test suite from passing on those systems.