You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to run tests on current main and following tests fail for me:
ERROR tests/test_command_line.py::test_cmake_initial_cache_as_global_option - FileNotFoundError: [Errno 2] No such file or directory: b'/var/tmp/portage/dev-python/scikit-build-9999/temp/pytest-of-portage/pytest-22'
ERROR tests/test_setup.py::test_distribution_is_pure[unknown] - FileNotFoundError: [Errno 2] No such file or directory: b'/var/tmp/portage/dev-python/scikit-build-9999/temp/pytest-of-portage/pytest-22'
ERROR tests/test_setup.py::test_distribution_is_pure[py_modules] - FileNotFoundError: [Errno 2] No such file or directory: b'/var/tmp/portage/dev-python/scikit-build-9999/temp/pytest-of-portage/pytest-22'
ERROR tests/test_setup.py::test_distribution_is_pure[packages] - FileNotFoundError: [Errno 2] No such file or directory: b'/var/tmp/portage/dev-python/scikit-build-9999/temp/pytest-of-portage/pytest-22'
ERROR tests/test_setup.py::test_distribution_is_pure[skbuild] - FileNotFoundError: [Errno 2] No such file or directory: b'/var/tmp/portage/dev-python/scikit-build-9999/temp/pytest-of-portage/pytest-22'
ERROR tests/test_utils.py::test_push_dir - FileNotFoundError: [Errno 2] No such file or directory: b'/var/tmp/portage/dev-python/scikit-build-9999/temp/pytest-of-portage/pytest-22'
ERROR tests/test_utils.py::test_push_dir_decorator - FileNotFoundError: [Errno 2] No such file or directory: b'/var/tmp/portage/dev-python/scikit-build-9999/temp/pytest-of-portage/pytest-22'
ERROR tests/test_utils.py::test_mkdir_p - FileNotFoundError: [Errno 2] No such file or directory: b'/var/tmp/portage/dev-python/scikit-build-9999/temp/pytest-of-portage/pytest-22'
The issue seems to be related to tmpdir life cycle, because all of those tests pass if I run them individually. I tried to strace what happens there and the pytest-22 directory is renamed
This is because we're passing -o tmp_path_retention_count=0 to save space. Forcing =1 instead resolves it. That said, it would be nice if scikit-build didn't rely on implicit temporary directory persistence.
I tried to run tests on current
main
and following tests fail for me:The issue seems to be related to tmpdir life cycle, because all of those tests pass if I run them individually. I tried to strace what happens there and the
pytest-22
directory is renamedbetween
tests/test_command_line.py::test_no_command
andtests/test_command_line.py::test_invalid_command
tests.The issue is related to Gentoo bug https://bugs.gentoo.org/933655
The text was updated successfully, but these errors were encountered: