Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

fix(ci): keep hard watchdog out of pytest shards (#3845)

JD Davis25274310ca39
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7f42aa561..6e78522ae 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -291,6 +291,9 @@ jobs:
shard: [1, 2, 3, 4]
env:
TRANSFORMERS_OFFLINE: "1"
+ # The production watchdog intentionally hard-exits the whole process.
+ # CI's job timeout must report stalls without erasing pytest diagnostics.
+ HEADROOM_HARD_WATCHDOG_SECS: "0"
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
diff --git a/scripts/tests/test_ci_workflow.py b/scripts/tests/test_ci_workflow.py
index c38c399b9..2a9062cf8 100644
--- a/scripts/tests/test_ci_workflow.py
+++ b/scripts/tests/test_ci_workflow.py
@@ -4,6 +4,8 @@ from __future__ import annotations
from pathlib import Path
+import yaml
+
def test_sharded_ci_verifies_offline_huggingface_cache_before_pytest() -> None:
workflow = Path(".github/workflows/ci.yml").read_text(encoding="utf-8")
@@ -21,3 +23,10 @@ def test_sharded_ci_uploads_only_explicit_coverage_reports() -> None:
assert "files: coverage-${{ matrix.shard }}.xml" in upload_step
assert "disable_search: true" in upload_step
+
+
+def test_sharded_ci_disables_process_killing_hard_watchdog() -> None:
+ """Pytest must report a stalled test instead of being hard-exited."""
+ workflow = yaml.safe_load(Path(".github/workflows/ci.yml").read_text(encoding="utf-8"))
+
+ assert workflow["jobs"]["test"]["env"]["HEADROOM_HARD_WATCHDOG_SECS"] == "0"