From bed85b56cb1c2ed090abd0874eca45c14ff857f3 Mon Sep 17 00:00:00 2001 From: Changho Hwang Date: Wed, 18 Feb 2026 20:23:42 -0800 Subject: [PATCH] codecov upload --- .azure-pipelines/templates/ut.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.azure-pipelines/templates/ut.yaml b/.azure-pipelines/templates/ut.yaml index 12004d6e..28915889 100644 --- a/.azure-pipelines/templates/ut.yaml +++ b/.azure-pipelines/templates/ut.yaml @@ -151,6 +151,34 @@ steps: kill $CHILD_PID workingDirectory: '$(System.DefaultWorkingDirectory)' +- task: Bash@3 + name: FetchCoverage + displayName: Fetch coverage data from remote VM + inputs: + targetType: 'inline' + script: | + set -e + HOSTFILE=$(System.DefaultWorkingDirectory)/test/deploy/hostfile_ci + SSH_OPTION="StrictHostKeyChecking=no" + KeyFilePath=${SSHKEYFILE_SECUREFILEPATH} + HOST=$(head -1 ${HOSTFILE}) + ssh -i ${KeyFilePath} -o ${SSH_OPTION} ${HOST} \ + 'sudo docker cp mscclpp-test:/root/mscclpp/build_coverage/coverage.info /tmp/coverage.info' + scp -i ${KeyFilePath} -o ${SSH_OPTION} ${HOST}:/tmp/coverage.info $(System.DefaultWorkingDirectory)/coverage.info + workingDirectory: '$(System.DefaultWorkingDirectory)' + +- task: Bash@3 + name: UploadCodecov + displayName: Upload coverage to Codecov + inputs: + targetType: 'inline' + script: | + set -e + curl -Os https://cli.codecov.io/latest/linux/codecov + chmod +x codecov + ./codecov upload-process --disable-search -t $(CODECOV_TOKEN) -f coverage.info + workingDirectory: '$(System.DefaultWorkingDirectory)' + - task: Bash@3 name: PyTests displayName: Run pytests