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.

ci: upload shard coverage even when a test in the shard fails (#3876)

gglucassbe2a298ed0ba
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 637fd094f..50352055d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -422,6 +422,9 @@ jobs:
--tb=short -q
- name: Upload coverage shard ${{ matrix.shard }} to Codecov
+ # A shard with a failing test still writes its report; skipping the
+ # upload drops every line only that shard covers from codecov/patch.
+ if: ${{ !cancelled() }}
uses: codecov/codecov-action@v5
with:
files: coverage-${{ matrix.shard }}.xml
diff --git a/scripts/tests/test_ci_workflow.py b/scripts/tests/test_ci_workflow.py
index 2a9062cf8..04ef7b293 100644
--- a/scripts/tests/test_ci_workflow.py
+++ b/scripts/tests/test_ci_workflow.py
@@ -23,6 +23,7 @@ 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
+ assert "if: ${{ !cancelled() }}" in upload_step.split("uses:", 1)[0]
def test_sharded_ci_disables_process_killing_hard_watchdog() -> None: