From 611ed65e432c5dcdd54507ff996e33381ba0fe6c Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 26 Apr 2023 10:50:59 +0300 Subject: [PATCH] scripts/test-infra: provide PR info to codecov Provide the commit SHA repo slug, PR number, prow build id and base branch to the codecov tool so that it is able to do its job. --- scripts/test-infra/verify.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/test-infra/verify.sh b/scripts/test-infra/verify.sh index 938be4fb45..9533728b9b 100755 --- a/scripts/test-infra/verify.sh +++ b/scripts/test-infra/verify.sh @@ -29,7 +29,12 @@ echo "Running unit tests" make test # Upload coverage report -./codecov -t ${CODECOV_TOKEN} +./codecov -t ${CODECOV_TOKEN} \ + -C ${PULL_PULL_SHA} \ + -r ${REPO_OWNER}/${REPO_NAME} \ + -P ${PULL_NUMBER} \ + -b ${BUILD_ID} \ + -B ${PULL_BASE_REF} # Check that repo is clean if ! git diff --quiet; then