llama-stack-mirror/tests
Ben Browning f586bdd912 fix: remote-vllm event loop blocking unit test on Mac
The remote-vllm `test_chat_completion_doesnt_block_event_loop` unit
test was often failing for me on a Mac. I traced this back to the swap
to the AsyncOpenAI client in the remote-vllm provider as where this
started, and it looks like the async client needs a bit more accurate
HTTP request handling from our mock server.

So, this fixes that unit test to send proper Content-Type and
Content-Length headers which makes the AsyncOpenAI client happier on Macs.

All the test_remote_vllm.py unit tests consistently pass for me on a Mac
now, without any flaking in the event loop one.

`pytest -s -v tests/unit/providers/inference/test_remote_vllm.py`

Signed-off-by: Ben Browning <bbrownin@redhat.com>
2025-06-02 08:36:35 -04:00
..
client-sdk/post_training feat: Add nemo customizer (#1448) 2025-03-25 11:01:10 -07:00
common feat: enable MCP execution in Responses impl (#2240) 2025-05-24 14:20:42 -07:00
external-provider/llama-stack-provider-ollama chore: mark blobpath as optional (#2271) 2025-05-27 10:55:24 +02:00
integration feat: New OpenAI compat embeddings API (#2314) 2025-05-31 22:11:47 -07:00
unit fix: remote-vllm event loop blocking unit test on Mac 2025-06-02 08:36:35 -04:00
verifications chore: use groups when running commands (#2298) 2025-05-28 09:13:16 -07:00
__init__.py refactor(test): introduce --stack-config and simplify options (#1404) 2025-03-05 17:02:02 -08:00
README.md docs: revamp testing documentation (#2155) 2025-05-13 11:28:29 -07:00

Llama Stack Tests

Llama Stack has multiple layers of testing done to ensure continuous functionality and prevent regressions to the codebase.

Testing Type Details
Unit unit/README.md
Integration integration/README.md
Verification verifications/README.md