Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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

Comments

@Aerodynamite
Copy link

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)

  • 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

@Aerodynamite
Copy link
Author

I notice the Microsoft Hosted Agents have reverted the task version back to 2.248.1, which does not seem to have this issue.

@jdngray77
Copy link

jdngray77 commented Nov 19, 2024

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

@vinayakmsft
Copy link
Contributor

Task version is reverted to 2.248.1, which does not have the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants