From 42022599e8436ee55a03fa857115444fdc7968e8 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Mon, 21 Oct 2024 12:33:27 +0100 Subject: [PATCH] fix_: no test reporting to codecov (#5968) --- _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}" }