From 41800067db19c5903ec91c9dbbbe6e689780d12b Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Sat, 19 Oct 2024 12:28:41 +0300 Subject: [PATCH] fix_: no test reporting to codecov --- _assets/scripts/codecov.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_assets/scripts/codecov.sh b/_assets/scripts/codecov.sh index 939725b0749..a300a0f4859 100755 --- a/_assets/scripts/codecov.sh +++ b/_assets/scripts/codecov.sh @@ -16,7 +16,11 @@ report_to_codecov() { report_files_args+="--file ${file} " done - codecov do-upload --token "${CODECOV_TOKEN}" --report-type test_results ${report_files_args} + # Don't upload test results to Codecov while we re-run tests on failure. + # This results in having both failure and success results in the same report, which Codecov treats as a failure + # and doesn't report coverage to Github. More details here: https://github.com/status-im/status-go/issues/5963 + # codecov do-upload --token "${CODECOV_TOKEN}" --report-type test_results ${report_files_args} + codecov upload-process --token "${CODECOV_TOKEN}" -f ${coverage_report} -F "${flag}" }