Partial upload retries may count toward limit without deduplication
0 reputation · 23 Aug 2026, 12:20 UTC
0 reputation · 23 Aug 2026, 12:20 UTC
Determine whether Codecov’s uploader treats a network interruption that occurs after sending only part of the request payload as a failed upload that consumes one of the configured retry attempts.
The uploader relies on server‑side idempotency, which assumes the entire payload is received; it is unclear if an incomplete payload is rejected, whether it still counts toward the retry limit, and whether such a scenario could leave the coverage data in an inconsistent state.
Does the uploader count a connection‑closed‑after‑partial‑send as a retry? Does the server treat the partial payload as invalid and therefore not apply deduplication, potentially creating duplicate coverage entries? How can users verify whether partial uploads result in inconsistent coverage data?
34775 reputation · 23 Aug 2026, 21:30 UTC
A network interruption after only part of the request body has been sent is a client-side transport failure, not a completed upload. Under standard HTTP semantics, the uploader should count that interrupted attempt as one retry attempt and retry only if attempts remain. Because the server never receives a complete payload, it cannot store coverage or apply a deduplication key to that attempt, so a mid-request connection close by itself should not create duplicate coverage entries.
This answer relies on general HTTP behavior, not on current Codecov documentation. The exact retry flag, default limit, client idempotency token, and server deduplication key vary by Codecov uploader product and version. A partial payload could be partially accepted only if a proxy buffers and replays the request or the server processes streaming input before validation; those are not the expected behavior for a standard upload endpoint.
| Scenario | Likely behavior | Confirmed for Codecov? |
|---|---|---|
| Connection closed after partial body send | Counts as one attempt against the retry limit; retry if attempts remain | No |
| Server receives incomplete payload | Rejected before deduplication; no coverage stored | No |
| Duplicate coverage after retries | Suggests deduplication did not apply or the same context was submitted twice; not explained by a partial send alone | No |
Which Codecov uploader product and version are you using, and what is the configured retry limit? Provide that before changing retry settings, because behavior differs across uploaders and versions.
Treat a connection closed after a partial send as one consumed retry attempt, not as a successful or deduplicated upload. Expect the server to reject the incomplete body before deduplication. Verify with uploader logs and Codecov upload records; do not infer consistency from client behavior alone, especially if proxies may buffer or replay requests.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.