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.

fix(ci): use pytest-timeout thread method + 180s — unblock CI on 3.14 (#4393)

LearningCircuit54a5b31469f1
diff --git a/changelog.d/+ci-pytest-timeout-thread-method.misc.md b/changelog.d/+ci-pytest-timeout-thread-method.misc.md
new file mode 100644
index 0000000000..4a51d204fd
--- /dev/null
+++ b/changelog.d/+ci-pytest-timeout-thread-method.misc.md
@@ -0,0 +1 @@
+CI: switch ``pytest-timeout`` from ``signal`` to ``thread`` method and raise the global per-test timeout from 60s to 180s. On Python 3.14 the SIGALRM-based interrupt was firing inside ``weakref.py`` cleanup, corrupting xdist workers and dropping their coverage data — which then put total coverage below the 50% gate even when every test that completed actually passed. The thread method raises a Python-level exception in the main thread instead of interrupting at an arbitrary safe-point, and 180s gives the heavy ``authenticated_client`` register+login fixture (SQLCipher KDF + Alembic migrations) headroom under ``-n auto`` + coverage contention.
diff --git a/pyproject.toml b/pyproject.toml
index 479b786503..ceae99f376 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -185,11 +185,13 @@ markers = [
"integration: marks integration tests",
"slow: marks slow tests",
"asyncio: marks async tests that use asyncio",
- "fd_canary: heavy file-descriptor-leak regression tests (#3816). CPU-bound real-event-loop spins that exceed the global 60s timeout under coverage + '-n auto' contention; run in a dedicated serial, no-coverage CI step instead of the parallel suite.",
+ "fd_canary: heavy file-descriptor-leak regression tests (#3816). CPU-bound real-event-loop spins that exceeded the legacy 60s timeout under coverage + '-n auto' contention, and whose FD-count assertions are noisy under parallel execution; run in a dedicated serial, no-coverage CI step instead of the parallel suite.",
]
-# Global timeout for all tests - fail fast instead of hanging
-timeout = 60
-timeout_method = "signal"
+# Global timeout for all tests - fail fast instead of hanging.
+# "thread" (not "signal") because SIGALRM was firing inside weakref/GC on
+# 3.14 in CI, corrupting xdist workers and losing their coverage data.
+timeout = 180
+timeout_method = "thread"
[tool.coverage.run]
source = ["src"]