~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
test: distinguish Vite output from source fixtures (#6922)
LearningCircuit1aba11958cb8
diff --git a/tests/test_test_data_files_are_tracked.py b/tests/test_test_data_files_are_tracked.pyindex acd1602ba8..0346405226 100644--- a/tests/test_test_data_files_are_tracked.py+++ b/tests/test_test_data_files_are_tracked.py@@ -54,6 +54,15 @@ FIXTURE_SUFFIXES = {".html",}+# Vite creates this release artifact during `npm run build`; it is not a+# source fixture. Its generation and packaging have their own assertions in+# test_vite_asset_pipeline.py. Keep this exemption exact: ignored test data+# (including the route-table snapshot that motivated this guard) must still+# be reported.+GENERATED_ARTIFACTS = {+ "src/local_deep_research/web/static/dist/.vite/manifest.json",+}+def _tracked_files() -> set[str] | None:"""Every path git tracks, or None if git cannot answer.@@ -117,7 +126,7 @@ def test_every_test_data_file_present_on_disk_is_tracked_by_git():except ValueError:break # outside the repo (tmp dirs etc.) — not ourskey = str(rel).replace("\\", "/")- if key not in tracked:+ if key not in tracked and key not in GENERATED_ARTIFACTS:offenders.setdefault(key, set()).add(str(test_file.relative_to(REPO_ROOT)))diff --git a/tests/web/test_vite_asset_pipeline.py b/tests/web/test_vite_asset_pipeline.pyindex b5bb2a92a5..96264a48d6 100644--- a/tests/web/test_vite_asset_pipeline.py+++ b/tests/web/test_vite_asset_pipeline.py@@ -187,20 +187,11 @@ def _dockerfile_stages() -> dict[str, list[str]]:class TestReleasedInstallGetsDist:"""Whether ``dist/`` reaches a wheel / Docker image at all."""- def test_dist_is_a_build_output_absent_from_a_source_checkout(self):- """Running from source starts with NO manifest, by construction.-- This is what makes every "missing manifest" test below the- default path rather than an exotic one.- """+ def test_dist_is_an_untracked_build_output(self):+ """A checkout may be built locally; Git must not track the output."""assert STATIC_DIR.is_dir(), ("static/ itself must be in the repo; only dist/ is generated")- assert not DIST_DIR.exists(), (- "static/dist/ is checked in -- the missing-manifest tests below "- "and the shipping story both assume it is a Vite build output"- )-gitignore = (REPO_ROOT / ".gitignore").read_text(encoding="utf-8")ignore_lines = [ln.strip() for ln in gitignore.splitlines()]assert "dist/" in ignore_lines, (@@ -215,6 +206,17 @@ class TestReleasedInstallGetsDist:# Authoritative cross-check when git is usable in this checkout.try:+ tracked = subprocess.run(+ ["git", "ls-files", "--", str(DIST_DIR)],+ cwd=REPO_ROOT,+ capture_output=True,+ timeout=30,+ )+ if tracked.returncode == 0:+ assert not tracked.stdout.strip(), (+ "static/dist/ contains tracked files; frontend assets "+ "must be generated during the build"+ )completed = subprocess.run(["git", "check-ignore", "-q", str(DIST_DIR)],cwd=REPO_ROOT,