You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BUG]: PublishCodeCoverageResults@2 Error occured while parsing coverage files. System.InvalidOperationException: Nullable object must have a value.
#20673
Closed
4 of 7 tasks
Aerodynamite opened this issue
Nov 19, 2024
· 3 comments
Publishing code coverage stopped working in version 2.248.3 with error Error occured while parsing coverage files. System.InvalidOperationException: Nullable object must have a value.
I have a build from a couple of days ago which worked and was using version 2.242.1 of the task. Running the pipeline from the exact same commit today fails with the only difference being the new task version.
Environment type (Please select at least one enviroment where you face this issue)
Self-Hosted
Microsoft Hosted
VMSS Pool
Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
ubuntu-latest
Relevant log output
2024-11-19T13:59:02: Creating report 621/622 (Assembly: MyModule.Application, Class: MyModule.Application.MyModuleApplicationAssemblyMarker)
2024-11-19T13:59:02: Writing report file 'MyModule.Application_MyModuleApplicationAssemblyMarker.html'
2024-11-19T13:59:02: Creating report 622/622 (Assembly: MyModule.Application, Class: MyModule.Application.MyModuleMappingProfile)
2024-11-19T13:59:02: Writing report file 'MyModule.Application_MyModuleMappingProfile.html'
2024-11-19T13:59:02: Creating summary
2024-11-19T13:59:02: Writing report file '/home/vsts/work/_temp/5011078a-bc1a-4766-afe9-f0f7048b5a65/index.html'##[error]Error occured while parsing coverage files. System.InvalidOperationException: Nullable object must have a value.
at System.Nullable`1.get_Value()
at Microsoft.Azure.Pipelines.CoveragePublisher.Parsers.ReportGeneratorTool.GetFileCoverageInfos() in D:\a\1\s\src\CoveragePublisher\Parsers\CoverageParserTools\ReportGeneratorTool.cs:line 63
at Microsoft.Azure.Pipelines.CoveragePublisher.Parsers.Parser.GetFileCoverageInfos() in D:\a\1\s\src\CoveragePublisher\Parsers\Parser.cs:line 35
Full task logs with system.debug enabled
No response
Repro steps
The text was updated successfully, but these errors were encountered:
We've also seen the same issue today in production, and have also since that the task version has since been reverted back to 2.248.1, fixing our build.
I think this issue however can probably be closed, as i think the fix for this went in 4 days ago in !79 in this commit
New issue checklist
Task name
PublishCodeCoverageResults
Task version
2.248.3
Issue Description
Publishing code coverage stopped working in version 2.248.3 with error Error occured while parsing coverage files. System.InvalidOperationException: Nullable object must have a value.
I have a build from a couple of days ago which worked and was using version 2.242.1 of the task. Running the pipeline from the exact same commit today fails with the only difference being the new task version.
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
ubuntu-latest
Relevant log output
Full task logs with system.debug enabled
No response
Repro steps
The text was updated successfully, but these errors were encountered: