pyro-mcp/tests
Thales Maciel cc5f566bcc Speed up workspace tests and parallelize make test
make test was dominated by teardown-heavy workspace integration tests, not by coverage overhead. Service shutdown was treating zombie processes as live, which forced repeated timeout waits, and one shell test was leaving killpg monkeypatched during cleanup, which made shell close paths burn the full wait budget.\n\nTreat Linux zombie pids as stopped in the workspace manager so service teardown completes promptly. Restore the real killpg implementation before shell test cleanup so the shell close path no longer pays the artificial timeout. Also isolate sys.argv in the runtime-network-check main() test so parallel pytest flags do not leak into argparse-based tests.\n\nAdd pytest-xdist to the dev environment and run make test with pytest -n auto by default so available cores are used automatically during local iteration.\n\nValidation:\n- uv lock\n- targeted hot-spot pytest rerun after the fix dropped the worst tests from roughly 10-21s each to sub-second timings\n- UV_CACHE_DIR=.uv-cache make check\n- UV_CACHE_DIR=.uv-cache make dist-check
2026-03-13 13:04:59 -03:00
..
test_api.py Add chat-friendly shell read rendering 2026-03-13 01:10:26 -03:00
test_cli.py Add content-only workspace read modes 2026-03-13 11:43:40 -03:00
test_demo.py Ship trust-first CLI and runtime defaults 2026-03-09 20:52:49 -03:00
test_doctor.py Add stopped-workspace disk export and inspection 2026-03-12 20:57:16 -03:00
test_langchain_example.py Refactor public API around environments 2026-03-08 16:02:02 -03:00
test_ollama_demo.py Ship trust-first CLI and runtime defaults 2026-03-09 20:52:49 -03:00
test_openai_example.py Refactor public API around environments 2026-03-08 16:02:02 -03:00
test_package_surface.py Add stopped-workspace disk export and inspection 2026-03-12 20:57:16 -03:00
test_public_contract.py Add MCP tool profiles for workspace chat flows 2026-03-12 23:52:13 -03:00
test_python_lifecycle_example.py Harden default environment pull behavior 2026-03-11 19:27:09 -03:00
test_runtime.py Add guest-only workspace secrets 2026-03-12 15:43:34 -03:00
test_runtime_boot_check.py Add stopped-workspace disk export and inspection 2026-03-12 20:57:16 -03:00
test_runtime_build.py Switch official environment publishing to Docker Hub 2026-03-09 17:39:18 -03:00
test_runtime_network_check.py Speed up workspace tests and parallelize make test 2026-03-13 13:04:59 -03:00
test_server.py Add MCP tool profiles for workspace chat flows 2026-03-12 23:52:13 -03:00
test_vm_environments.py Add guest-only workspace secrets 2026-03-12 15:43:34 -03:00
test_vm_firecracker.py Finalize guest boot and exec runtime updates 2026-03-07 17:09:21 -03:00
test_vm_guest.py Add guest-only workspace secrets 2026-03-12 15:43:34 -03:00
test_vm_manager.py Speed up workspace tests and parallelize make test 2026-03-13 13:04:59 -03:00
test_vm_network.py Add runtime capability scaffolding and align docs 2026-03-05 22:57:09 -03:00
test_workspace_disk.py Add stopped-workspace disk export and inspection 2026-03-12 20:57:16 -03:00
test_workspace_files.py Add model-native workspace file operations 2026-03-12 22:03:25 -03:00
test_workspace_ports.py Add workspace network policy and published ports 2026-03-12 18:12:57 -03:00
test_workspace_shell_output.py Add chat-friendly shell read rendering 2026-03-13 01:10:26 -03:00
test_workspace_shells.py Speed up workspace tests and parallelize make test 2026-03-13 13:04:59 -03:00
test_workspace_use_case_smokes.py Add workspace handoff shortcuts and file-backed inputs 2026-03-13 11:10:11 -03:00