[Tests] Test suite cannot run without vLLM installed
Problem
tests/conftest.py does import llmsql.inference.inference_vllm at module level, which imports vllm. Contributors without a GPU / without the multi-GB vllm extra can't run any test (collection fails with ModuleNotFoundError: No module named 'vllm').
Proposal
- Move vLLM-specific fixtures into
tests/inference/conftest.pyguarded withpytest.importorskip("vllm"), or mock the module insys.modules. - Add pytest markers (
gpu,slow,integration) and run a fast CPU-only job on every PR, plus the full matrix (3.10–3.12) on main. - Document
pytest -m "not gpu"in CONTRIBUTING.md.
I'd like to take this. Plan: stop the top-level tests/conftest.py importing vLLM so the suite collects without it, move the vLLM-specific fixtures next to the inference tests (guarded with pytest.importorskip), and document pytest without the extra in CONTRIBUTING.md. Heads-up: I'm using an AI coding assistant (Claude Code) and will report the commands I ran.
Update: on checking current main, this looks already done in 473cff3 ("Allow the test suite to run without the vllm extra"). tests/conftest.py no longer imports vLLM, the vLLM fixtures live in tests/inference/conftest.py behind pytest.importorskip("vllm"), the gpu/slow/integration markers exist, CONTRIBUTING documents pytest -m "not gpu", and .github/workflows/tests.yml has a dev-only (no vllm) job. The only remaining bullet I can see is running the full matrix on 3.10-3.12 on main, which is a CI preference rather than a bug. I'm releasing my claim; this can probably be closed.