Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

test(web): declare POSIX live-server harness (#6920)

LearningCircuit10f9d22bdd37
diff --git a/tests/README.md b/tests/README.md
index ad7dc7f2e6..bbbe3ea12b 100644
--- a/tests/README.md
+++ b/tests/README.md
@@ -109,6 +109,13 @@ pytest tests/feature_tests/ -v # Feature tests only
pytest tests/searxng/ -v # Integration tests only
```
+The live-server smoke in `tests/web/test_uvicorn_integration.py` starts the
+production Uvicorn entry point and stops it using POSIX signals. Its harness
+explicitly skips on Windows before starting a child process. Passing Linux
+or macOS results cover those hosts; they do not establish Windows runtime or
+shutdown support. Windows release qualification needs a separate smoke using
+a Windows process group and console control events.
+
### UI Tests
Browser automation tests using Puppeteer:
diff --git a/tests/web/test_uvicorn_integration.py b/tests/web/test_uvicorn_integration.py
index b29006f1be..25cd1c8743 100644
--- a/tests/web/test_uvicorn_integration.py
+++ b/tests/web/test_uvicorn_integration.py
@@ -5,6 +5,10 @@ Most migration tests call the ASGI app through ``TestClient``. That does not
exercise ``web.app``, uvicorn's proxy-header middleware, a real TCP response,
or an actual WebSocket upgrade. These tests launch the production entrypoint
against an isolated data directory and cover those seams over loopback only.
+
+The child-process harness uses POSIX signals for graceful shutdown. It skips
+on Windows; these results do not qualify Windows process-group/control-event
+shutdown or Windows runtime behavior.
"""
from __future__ import annotations
@@ -109,6 +113,11 @@ def _stop_server(process: subprocess.Popen) -> None:
@contextmanager
def _run_server(workdir: Path, *, trust_proxy_headers: bool):
"""Run the shipped module entrypoint and require a graceful shutdown."""
+ if os.name != "posix":
+ pytest.skip(
+ "Live Uvicorn smoke requires POSIX subprocess signals; "
+ "Windows shutdown needs separate validation"
+ )
data_dir = workdir / "data"
data_dir.mkdir(parents=True)
port = _unused_loopback_port()