Open basit1327 opened 1 year ago
I'm hitting the same problem, just on a self-hosted system.
I looked through the relevant repositories: In https://github.com/microsoft/azure-pipelines-coveragepublisher/blob/master/src/CoveragePublisher/ArgumentsProcessor.cs there is a timeout of 120s. (which fits) Unfortunately the runner: https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/Common/coveragepublisher/coveragepublisher.ts does not support setting the timeout.
The evil thing with this bug is, that the task does not recognize the error (see logs above) https://github.com/microsoft/azure-pipelines-coveragepublisher/blob/master/src/CoveragePublisher.Console/Program.cs apparently does nothing with that information, i.e., no failure is reported upstream.
This literally means, even if the task completed successfully, there is no guarantee that the files are uploaded correctly.
In my case, as all code coverage files have file names before index.html (they start either with A or E), the index.html will never upload, thus the summary report is never available.
Task name
PublishCodeCoverageResults@2
Task version
2.229.0
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
Task log
Aditional info
The PublishCodeCoverageResults@2 task runs for approximately 2 minutes and 6-7 seconds when I have more than 1,000 files. During this time, the task continues execution, but it abruptly finishes by displaying 'Finishing: PublishCodeCoverageResults' without fully uploading the coverage report to artifacts. Conversely, when I have fewer files than the aforementioned threshold, the task works flawlessly and successfully processes all the files, allowing the coverage report to be uploaded. Below are the logs from a successful execution of the task.
logs output of successful task execution
Below are the logs from a successful execution of the task.