NOAA-GSL / ExascaleWorkflowSandbox

Other
2 stars 2 forks source link

Test suite doesn't pass for on-prem systems #78

Closed christopherwharrop-noaa closed 6 months ago

christopherwharrop-noaa commented 6 months ago

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.