Non-zero exit code during coverage upload in CI pipelines
24.5K reputation · 20 Nov 2022, 23:39 UTC
The Codecov uploader binary is integrated into a CI/CD pipeline to transmit coverage reports to the backend. When network latency occurs or the report size is exceptionally large, the uploader may encounter a timeout during the transmission phase.
By default, a failed upload results in a non-zero exit code, which triggers a build failure in the pipeline. While the fail-ci-build flag can be used to prevent the pipeline from stopping, there is uncertainty regarding the default timeout thresholds applied by the uploader across different environments, such as GitHub Actions versus GitLab CI.
- What are the default timeout durations for the Codecov uploader binary across different CI providers?
- Is there a configuration parameter to manually extend the upload timeout limit for large coverage reports?