microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.51k stars 2.62k forks source link

Upgrading PCCRV2 task for NRE fix #20662

Closed vinayakmsft closed 1 week ago

vinayakmsft commented 1 week ago

Task name: PublishCodeCoverageResultsV2

Description: Fixing NRE exception in FileCoverageInfo

This was the NRE issue that we fixed in the logic - https://github.com/microsoft/azure-pipelines-coveragepublisher/pull/79

Testing for various file:

image image image

Task logs: image

Checklist:

virekumar commented 1 week ago

Can you share what issues occurs in case this NRE is hit ?

virekumar commented 1 week ago

Also share pre/post view of job/logs

vinayakmsft commented 1 week ago

It was an NRE issue in case the TotalBranches is null (not 0). Hence, we had to fix it for that particular edge case