-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
PublishCodeCoverageResults Fails to Generate HTML Report #13914
Comments
This is happening to me too. I confirm it is also happening with the 1.175.2 version. I have a previous run on version 1.175.1 that worked, so something broke in 1.175.2.
|
Can confirm this issue with version 1.175.2. Earlier pipeline runs with version 1.175.0 worked fine, now I'm running into the same error messages:
|
I can confirm this as well. I've managed to work around the problem by explicitly pinning the task to an older version, like this: I can also confirm that both 1.175.0 and 1.175.1 work correctly, but 1.175.2 doesn't. I think the reason that 1.175.2 doesn't work is because it added a change to add quotes around the path to the ReportGenerator.dll file. Here's the PRs corresponding to those new version:
And here's the issue relating to the changes: #13062. It seems to have been trying to solve a problem where the task would fail if there were spaces in the path to the report generator dll by quoting the path. My guess is that the quoting is fine on Windows but causes issues on Linux. This corresponds with what I can see from the build logs. Here's an example of the command run by 1.175.0: /usr/bin/dotnet /home/vsts/work/_tasks/PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97/1.175.1/netcoreapp2.0/ReportGenerator.dll -reports:"/home/vsts/work/_temp/*/coverage.cobertura.xml" -targetdir:"/home/vsts/work/_temp/cchtml" -reporttypes:HtmlInline_AzurePipelines And here's an example of the command run by 1.175.2: /usr/bin/dotnet "/home/vsts/work/_tasks/PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97/1.175.2/netcoreapp2.0/ReportGenerator.dll" -reports:"/home/vsts/work/_temp/*/coverage.cobertura.xml" -targetdir:"/home/vsts/work/_temp/cchtml" -reporttypes:HtmlInline_AzurePipelines I'll add a comment to the issue that this change was introduced for asking for it to be reverted until it can be fixed properly. |
We will try and patch this immediately. Please use the workaround of pinning it to the previous minor version immediately |
I have observed the same bug. Most of my pipelines are using vmIImage: ubuntu-latest, and they all have the same error. I have just seen a pipeline using vmImage: windows-latest work correctly with the exact same PublicCodeCoverageResults@1 (v1.175.2) task. The failing ubuntu runs are trying to locate the file /home/vsts/work/_tasks/PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97/1.175.2/netcoreapp2.0/ReportGenerator.dll, |
@dkstringer @adamconnelly @knom @MatthiasNistl @aressler38 @trangevi Thank you for the information you've provided! |
Thanks @egor-bryzgalov. I can see it working now in 1.178.0. |
@aressler38 |
I confirmed it's working for me now as well. Thank you for the quick turn around! |
Me too - thanks for getting it sorted so quickly! |
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: PublishCodeCoverageResultsV1
list here (V# not needed):
https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/PublishCodeCoverageResultsV1
Environment
Server - Azure Pipelines or TFS on-premises?
Azure Pipelines
Agent - Hosted or Private:
Private Ubuntu 16.04
Issue Description
The PublishCodeCoverageResults task in our build has recently been unable to generate the HTML report, which I believe is what is causing us to be unable to view the CodeCoverage tab we are used to. It seems to be an issue with finding ReportGenerator, but I've included the task logs as I'm unclear what specifically to be looking for.
It seems like it could be introduced in the newest version of the task, as it was working on version 1.175.0, but is now failing on 1.175.2 (I don't have any runs on patch version 1). Nothing else has changed on our pipeline between the two, however it's possible some assumption of ours on how to use the task is no longer valid.
I've attached full debug logs for the failed run. Please let me know if I can provide any further information. Thanks in advance.
Task logs
PublishCodeCoverageResults_failed.zip
Error logs
The text was updated successfully, but these errors were encountered: