llmsql-benchmark icon indicating copy to clipboard operation
llmsql-benchmark copied to clipboard

[Tests] Test suite cannot run without vLLM installed

Open DzmitryPihulski opened this issue 1 month ago • 2 comments

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.py guarded with pytest.importorskip("vllm"), or mock the module in sys.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.

DzmitryPihulski avatar Oct 04 '26 05:10 DzmitryPihulski

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.

CloudCorpRecords avatar Oct 13 '26 18:10 CloudCorpRecords

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.

CloudCorpRecords avatar Oct 13 '26 18:10 CloudCorpRecords