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.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
fix(ci): keep hard watchdog out of pytest shards (#3845)
JD Davis25274310ca39
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 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@v7diff --git a/scripts/tests/test_ci_workflow.py b/scripts/tests/test_ci_workflow.pyindex c38c399b9..2a9062cf8 100644--- a/scripts/tests/test_ci_workflow.py+++ b/scripts/tests/test_ci_workflow.py@@ -4,6 +4,8 @@ from __future__ import annotationsfrom 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_stepassert "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"