diff --git a/Makefile b/Makefile index c9fa2b187..df9d86fdc 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,12 @@ # solstone Makefile # Python-based AI-driven desktop journaling toolkit +# Route pytest tmp dirs to /var/tmp (disk) instead of default /tmp (tmpfs/RAM). +# Combined with pytest's default per-run isolation (/var/tmp/pytest-of-$USER/pytest-N/), +# concurrent test runs don't collide. Do not re-add --basetemp to pyproject — it pins +# all runs to one path and pytest wipes it on startup, destroying concurrent state. +export TMPDIR := /var/tmp + .PHONY: install uninstall test test-apps test-app test-only test-integration test-integration-only test-all format format-check ci clean clean-install coverage watch versions update update-prices pre-commit skills dev all sail upgrade sandbox sandbox-stop install-pinchtab verify-browser update-browser-baselines review verify-api update-api-baselines install-service uninstall-service service-logs gate-agents-rename # Default target - install package in editable mode diff --git a/pyproject.toml b/pyproject.toml index 09e099e1e..b8b4dcb3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -134,7 +134,7 @@ constraint-dependencies = ["numba>=0.60"] override-dependencies = ["webrtcvad>=99; python_version < '0'"] [tool.pytest.ini_options] -addopts = "--import-mode=importlib --basetemp=/var/tmp/pytest-solstone" +addopts = "--import-mode=importlib" testpaths = ["tests", "apps"] python_files = ["test_*.py"] python_classes = ["Test*"]