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.

Attempt number 3 at fixing docker tests.

Daniel Pettie077f6f3a6c2
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 72b8710c17..83c11d4ed4 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -175,7 +175,7 @@ jobs:
--network host \
-w /app \
ldr-test \
- sh -c "python run_all_tests.py full"
+ sh -c "cd tests && python run_all_tests.py full"
- name: Run JavaScript infrastructure tests
run: |
diff --git a/tests/run_all_tests.py b/tests/run_all_tests.py
index b72f53b5c2..2e76309cbe 100755
--- a/tests/run_all_tests.py
+++ b/tests/run_all_tests.py
@@ -20,10 +20,43 @@ Profiles:
import argparse
import os
import subprocess
+from subprocess import CalledProcessError
import sys
import time
from pathlib import Path
from typing import List, Tuple
+from functools import cache
+
+
+@cache
+def find_exe(tool_name: str) -> Path:
+ """
+ Finds a particular command-line tool.
+
+ Args:
+ tool_name: The name of the tool.
+
+ Returns:
+ The path to the tool.
+
+ """
+ which_output = ""
+ try:
+ which_result = subprocess.run(
+ ["/usr/bin/which", tool_name], check=True, capture_output=True
+ )
+ which_output = which_result.stdout.decode("utf8")
+ except CalledProcessError as err:
+ if err.returncode != 1: # pragma: no cover
+ # If it returns 1, it's probably because the executable does not
+ # exist. Otherwise, something weird happened.
+ raise err
+ pass
+ if not which_output:
+ raise OSError(f"Could not find '{tool_name}'. Is it installed?")
+
+ tool_path = Path(which_output.rstrip("\n"))
+ return tool_path
class TestRunner:
@@ -317,7 +350,7 @@ class TestRunner:
# Add extra debugging for CI environments
pytest_args = [
- "pdm",
+ find_exe("pdm"),
"run",
"pytest",
"-v", # Verbose output