-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
False
-
-
False
-
-
-
DP Sprint 27
[3990752948] Upstream Reporter: smoparth
Upstream issue status: Open
Upstream description:
The [testenv:test] section in tox.ini only passes PYTHON_IMAGE and CUDA_IMAGE through to the test process. PYTHON_VERSION and CUDA_VERSION are not listed in passenv, so tox's environment isolation strips them out, even when explicitly exported in the shell.
The version validation tests silently skip every time.smoparth@smoparth-mac base-containers % PYTHON_VERSION=3.12 CUDA_VERSION=12.8 tox -e test
test: install_deps> python -I -m pip install '.[test]'
test: commands[0]> pytest tests/ -v
========================== test session starts ==========================
platform darwin – Python 3.12.9, pytest-9.0.2, pluggy-1.6.0 – /Users/smoparth/redhat/learning/forks/base-containers/.tox/test/bin/python
cachedir: .tox/test/.pytest_cache
rootdir: /Users/smoparth/redhat/learning/forks/base-containers
configfile: pyproject.toml
collected 68 itemstests/test_common.py::test_python_version[python_container] SKIPPED [ 1%]
tests/test_common.py::test_python_version[cuda_container] SKIPPED [ 2%]Fix: Add both variables to passenv in the [testenv:test] section of tox.in
- links to