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

[REGRESSION]: PublishCodeCoverageResults V2 doesn't publish with network errors #19811

Open
3 of 7 tasks
gt97 opened this issue Apr 24, 2024 · 3 comments
Open
3 of 7 tasks
Labels
bug regression This used to work, but a change in the service/tasks broke it. Task: PublishCodeCoverageResults triage

Comments

@gt97
Copy link

gt97 commented Apr 24, 2024

New issue checklist

Task name

PublishCodeCoverageResults

Breaking task version

2.238.1

Last working task version

1.238.3

Regression Description

Using the V2 version of PublishCodeCoverageResults I have network errors.
I am using a self hosted agent behind a corporate proxy.

No Issue using the V1 version

Looks to me the proxy configuration of the agent is not used.

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

windows server 2022

Relevant log output

Could not connect to Azure Pipelines. System.Net.Http.HttpRequestException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (dev.azure.com:443)
 ---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|281_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState)
   at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.EnsureConnectedAsync(ConnectOptions optionsNeeded, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.CheckForServerUpdatesAsync(CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.FindServiceDefinitionsAsync(String serviceType, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetResourceLocationsAsync(CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssConnection.GetClientInstanceAsync(Type managedType, Guid serviceIdentifier, CancellationToken cancellationToken, VssHttpRequestSettings settings, DelegatingHandler[] handlers)
   at Microsoft.VisualStudio.Services.WebApi.VssConnection.GetClientServiceImplAsync(Type requestedType, Guid serviceIdentifier, Func`4 getInstanceAsync, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssConnection.GetClientAsync[T](CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.TaskExtensions.SyncResult[T](Task`1 task)
   at Microsoft.VisualStudio.Services.WebApi.VssConnection.GetClient[T]()
   at Microsoft.Azure.Pipelines.CoveragePublisher.Publishers.DefaultPublisher.ClientFactory.GetClient[T]() in D:\a\1\s\src\CoveragePublisher\Publishers\DefaultPublisher\ClientFactory.cs:line 20
   at Microsoft.Azure.Pipelines.CoveragePublisher.Publishers.DefaultPublisher.PipelinesTelemetry..ctor(IClientFactory clientFactory, Boolean enableTelemetryCollection) in D:\a\1\s\src\CoveragePublisher\Publishers\DefaultPublisher\PipelinesTelemetry.cs:line 23
   at Microsoft.Azure.Pipelines.CoveragePublisher.Publishers.DefaultPublisher.AzurePipelinesPublisher..ctor(Boolean enableTelemetry) in D:\a\1\s\src\CoveragePublisher\Publishers\DefaultPublisher\AzurePipelinesPublisher.cs:line 58
   at Microsoft.Azure.Pipelines.CoveragePublisher.Program.ProcessCoverage(PublisherConfiguration config, CancellationToken cancellationToken) in D:\a\1\s\src\CoveragePublisher.C

Full task logs with system.debug enabled

Could not connect to Azure Pipelines. System.Net.Http.HttpRequestException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (dev.azure.com:443)
---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.g__WaitForConnectWithCancellation|281_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.EnsureConnectedAsync(ConnectOptions optionsNeeded, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.CheckForServerUpdatesAsync(CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.FindServiceDefinitionsAsync(String serviceType, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetResourceLocationsAsync(CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.WebApi.VssConnection.GetClientInstanceAsync(Type managedType, Guid serviceIdentifier, CancellationToken cancellationToken, VssHttpRequestSettings settings, DelegatingHandler[] handlers)
at Microsoft.VisualStudio.Services.WebApi.VssConnection.GetClientServiceImplAsync(Type requestedType, Guid serviceIdentifier, Func4 getInstanceAsync, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.VssConnection.GetClientAsync[T](CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.TaskExtensions.SyncResult[T](Task1 task)
at Microsoft.VisualStudio.Services.WebApi.VssConnection.GetClientT
at Microsoft.Azure.Pipelines.CoveragePublisher.Publishers.DefaultPublisher.ClientFactory.GetClientT in D:\a\1\s\src\CoveragePublisher\Publishers\DefaultPublisher\ClientFactory.cs:line 20
at Microsoft.Azure.Pipelines.CoveragePublisher.Publishers.DefaultPublisher.PipelinesTelemetry..ctor(IClientFactory clientFactory, Boolean enableTelemetryCollection) in D:\a\1\s\src\CoveragePublisher\Publishers\DefaultPublisher\PipelinesTelemetry.cs:line 23
at Microsoft.Azure.Pipelines.CoveragePublisher.Publishers.DefaultPublisher.AzurePipelinesPublisher..ctor(Boolean enableTelemetry) in D:\a\1\s\src\CoveragePublisher\Publishers\DefaultPublisher\AzurePipelinesPublisher.cs:line 58
at Microsoft.Azure.Pipelines.CoveragePublisher.Program.ProcessCoverage(PublisherConfiguration config, CancellationToken cancellationToken) in D:\a\1\s\src\CoveragePublisher.C

Repro steps

# V2 version (fails)
          - task: PublishCodeCoverageResults@2
            displayName: "Publish code coverage results"
            inputs:
              summaryFileLocation: $(System.DefaultWorkingDirectory)/target/site/jacoco/jacoco.xml
              pathToSources: $(System.DefaultWorkingDirectory)/src/main/java/

# V1 version (works)
          - task: PublishCodeCoverageResults@1
            displayName: "Publish code coverage results"
            inputs:
              summaryFileLocation: $(System.DefaultWorkingDirectory)/target/site/jacoco/jacoco.xml
              pathToSources: $(System.DefaultWorkingDirectory)/src/main/java/
@gt97 gt97 added bug regression This used to work, but a change in the service/tasks broke it. labels Apr 24, 2024
@dengyakui
Copy link

I had the same issue for AzureDevOpsServer. if I switch back to V1 version , it works well.
i guess it was the client SDK's internal constraint for VSS_ALLOW_UNSAFE_BASICAUTH, is there some workaround ? I dont need HTTS for my intranet AzureDevopsServer.

V2 version

2024-04-24T09:30:29.3712808Z ##[debug]Evaluating condition for step: 'Publish code coverage results'
2024-04-24T09:30:29.3714259Z ##[debug]Evaluating: succeeded()
2024-04-24T09:30:29.3714647Z ##[debug]Evaluating succeeded:
2024-04-24T09:30:29.3715495Z ##[debug]=> True
2024-04-24T09:30:29.3715919Z ##[debug]Result: True
2024-04-24T09:30:29.3716315Z ##[section]Starting: Publish code coverage results
2024-04-24T09:30:29.3722810Z ==============================================================================
2024-04-24T09:30:29.3722995Z Task         : Publish code coverage results v2
2024-04-24T09:30:29.3723125Z Description  : Publish any of the code coverage results from a build
2024-04-24T09:30:29.3723299Z Version      : 2.225.0
2024-04-24T09:30:29.3723392Z Author       : Microsoft Corporation
2024-04-24T09:30:29.3723498Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-code-coverage-results
2024-04-24T09:30:29.3723687Z ==============================================================================
2024-04-24T09:30:29.4313069Z ##[debug]Using node path: D:\myagent\agent01\externals\node16\bin\node.exe
2024-04-24T09:30:29.5412192Z ##[debug]agent.TempDirectory=D:\myagent\agent01\_work\_temp
2024-04-24T09:30:29.5424931Z ##[debug]loading inputs and endpoints
2024-04-24T09:30:29.5431974Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2024-04-24T09:30:29.5444432Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2024-04-24T09:30:29.5447573Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2024-04-24T09:30:29.5450256Z ##[debug]loading INPUT_FAILIFCOVERAGEEMPTY
2024-04-24T09:30:29.5452666Z ##[debug]loading INPUT_SUMMARYFILELOCATION
2024-04-24T09:30:29.5461392Z ##[debug]loaded 5
2024-04-24T09:30:29.5467403Z ##[debug]Agent.ProxyUrl=undefined
2024-04-24T09:30:29.5468284Z ##[debug]Agent.CAInfo=undefined
2024-04-24T09:30:29.5468842Z ##[debug]Agent.ClientCert=undefined
2024-04-24T09:30:29.5469387Z ##[debug]Agent.SkipCertValidation=undefined
2024-04-24T09:30:29.5483463Z ##[debug]check path : D:\myagent\agent01\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\2.225.0\task.json
2024-04-24T09:30:29.5487699Z ##[debug]adding resource file: D:\myagent\agent01\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\2.225.0\task.json
2024-04-24T09:30:29.5488755Z ##[debug]system.culture=en-US
2024-04-24T09:30:29.5504700Z ##[debug]summaryFileLocation=my-app/coverage/cobertura-coverage.xml
2024-04-24T09:30:29.5506774Z ##[debug]failIfCoverageEmpty=false
2024-04-24T09:30:29.5507420Z ##[debug]System.DefaultWorkingDirectory=D:\myagent\agent01\_work\7\s
2024-04-24T09:30:29.5507902Z ##[debug]pathToSources=undefined
2024-04-24T09:30:29.5511532Z ##[debug]defaultRoot: 'D:\myagent\agent01\_work\7\s'
2024-04-24T09:30:29.5512203Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'false'
2024-04-24T09:30:29.5512886Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'false'
2024-04-24T09:30:29.5513631Z ##[debug]findOptions.followSymbolicLinks: 'false'
2024-04-24T09:30:29.5514210Z ##[debug]findOptions.skipMissingFiles: 'undefined'
2024-04-24T09:30:29.5515094Z ##[debug]matchOptions.debug: 'false'
2024-04-24T09:30:29.5515797Z ##[debug]matchOptions.nobrace: 'true'
2024-04-24T09:30:29.5516299Z ##[debug]matchOptions.noglobstar: 'false'
2024-04-24T09:30:29.5516831Z ##[debug]matchOptions.dot: 'true'
2024-04-24T09:30:29.5517333Z ##[debug]matchOptions.noext: 'false'
2024-04-24T09:30:29.5517752Z ##[debug]matchOptions.nocase: 'true'
2024-04-24T09:30:29.5518280Z ##[debug]matchOptions.nonull: 'false'
2024-04-24T09:30:29.5518909Z ##[debug]matchOptions.matchBase: 'false'
2024-04-24T09:30:29.5519331Z ##[debug]matchOptions.nocomment: 'false'
2024-04-24T09:30:29.5519749Z ##[debug]matchOptions.nonegate: 'false'
2024-04-24T09:30:29.5520171Z ##[debug]matchOptions.flipNegate: 'false'
2024-04-24T09:30:29.5520614Z ##[debug]pattern: 'my-app/coverage/cobertura-coverage.xml'
2024-04-24T09:30:29.5536184Z ##[debug]findPath: 'D:\myagent\agent01\_work\7\s\my-app\coverage\cobertura-coverage.xml'
2024-04-24T09:30:29.5538014Z ##[debug]statOnly: 'true'
2024-04-24T09:30:29.5538401Z ##[debug]found 1 paths
2024-04-24T09:30:29.5538797Z ##[debug]applying include pattern
2024-04-24T09:30:29.5539290Z ##[debug]adjustedPattern: 'D:\myagent\agent01\_work\7\s\my-app/coverage/cobertura-coverage.xml'
2024-04-24T09:30:29.5544602Z ##[debug]1 matches
2024-04-24T09:30:29.5545131Z ##[debug]1 final results
2024-04-24T09:30:29.5561538Z Found 1 result(s) matching pattern: my-app/coverage/cobertura-coverage.xml
2024-04-24T09:30:29.5565904Z D:\myagent\agent01\_work\7\s\my-app\coverage\cobertura-coverage.xml
2024-04-24T09:30:29.5568443Z ##[debug]Agent.Version=2.217.2
2024-04-24T09:30:29.5569061Z ##[debug]Agent.TempDirectory=D:\myagent\agent01\_work\_temp
2024-04-24T09:30:29.5576377Z ##[debug]which 'dotnet'
2024-04-24T09:30:29.5730663Z ##[debug]found: 'C:\Program Files\dotnet\dotnet.exe'
2024-04-24T09:30:29.5732747Z ##[debug]which 'D:\myagent\agent01\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\2.225.0\node_modules\coveragepublisher\CoveragePublisher\CoveragePublisher.Console.exe'
2024-04-24T09:30:29.5735051Z ##[debug]found: 'D:\myagent\agent01\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\2.225.0\node_modules\coveragepublisher\CoveragePublisher\CoveragePublisher.Console.exe'
2024-04-24T09:30:29.5736227Z ##[debug]D:\myagent\agent01\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\2.225.0\node_modules\coveragepublisher\CoveragePublisher\CoveragePublisher.Console.exe arg: D:\myagent\agent01\_work\7\s\my-app\coverage\cobertura-coverage.xml
2024-04-24T09:30:29.5737677Z ##[debug]D:\myagent\agent01\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\2.225.0\node_modules\coveragepublisher\CoveragePublisher\CoveragePublisher.Console.exe arg: --reportDirectory
2024-04-24T09:30:29.5738682Z ##[debug]D:\myagent\agent01\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\2.225.0\node_modules\coveragepublisher\CoveragePublisher\CoveragePublisher.Console.exe arg: D:\myagent\agent01\_work\_temp\5ee5a6bf-c392-47e2-8869-7f6644790722
2024-04-24T09:30:29.5743968Z ##[debug]SystemVssConnection auth param AccessToken = ***
2024-04-24T09:30:29.5744584Z ##[debug]System.TeamFoundationCollectionUri=http://quintos:8080/tfs/DefaultCollection/
2024-04-24T09:30:29.5745368Z ##[debug]Build.BuildId=137
2024-04-24T09:30:29.5745995Z ##[debug]Build.ContainerId=20967
2024-04-24T09:30:29.5746715Z ##[debug]Agent.TempPath=undefined
2024-04-24T09:30:29.5747489Z ##[debug]System.TeamProjectId=808aa72b-83b4-4261-afc9-146fe01e6a46
2024-04-24T09:30:29.5748074Z ##[debug]PIPELINES_COVERAGEPUBLISHER_DEBUG=undefined
2024-04-24T09:30:29.5748883Z ##[debug]exec tool: D:\myagent\agent01\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\2.225.0\node_modules\coveragepublisher\CoveragePublisher\CoveragePublisher.Console.exe
2024-04-24T09:30:29.5749602Z ##[debug]arguments:
2024-04-24T09:30:29.5750162Z ##[debug]   D:\myagent\agent01\_work\7\s\my-app\coverage\cobertura-coverage.xml
2024-04-24T09:30:29.5750715Z ##[debug]   --reportDirectory
2024-04-24T09:30:29.5751169Z ##[debug]   D:\myagent\agent01\_work\_temp\5ee5a6bf-c392-47e2-8869-7f6644790722
2024-04-24T09:30:29.5751960Z [command]"D:\myagent\agent01\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\2.225.0\node_modules\coveragepublisher\CoveragePublisher\CoveragePublisher.Console.exe" D:\myagent\agent01\_work\7\s\my-app\coverage\cobertura-coverage.xml --reportDirectory D:\myagent\agent01\_work\_temp\5ee5a6bf-c392-47e2-8869-7f6644790722
2024-04-24T09:30:29.8272396Z Could not connect to Azure Pipelines. System.InvalidOperationException: Basic authentication requires a secure connection to the server.
2024-04-24T09:30:29.8273614Z    at Microsoft.VisualStudio.Services.Common.VssBasicCredential.OnCreateTokenProvider(Uri serverUrl, IHttpResponse response)
2024-04-24T09:30:29.8274542Z    at Microsoft.VisualStudio.Services.Common.IssuedTokenCredential.CreateTokenProvider(Uri serverUrl, IHttpResponse response, IssuedToken failedToken)
2024-04-24T09:30:29.8276310Z    at Microsoft.VisualStudio.Services.Common.VssCredentials.TryGetTokenProvider(Uri serverUrl, IssuedTokenProvider& provider)
2024-04-24T09:30:29.8277150Z    at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
2024-04-24T09:30:29.8277718Z    at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
2024-04-24T09:30:29.8278660Z    at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
2024-04-24T09:30:29.8279486Z    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
2024-04-24T09:30:29.8280155Z    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
2024-04-24T09:30:29.8280971Z    at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState)
2024-04-24T09:30:29.8281688Z    at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken)
2024-04-24T09:30:29.8282335Z    at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken)
2024-04-24T09:30:29.8283045Z    at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.EnsureConnectedAsync(ConnectOptions optionsNeeded, CancellationToken cancellationToken)
2024-04-24T09:30:29.8283739Z    at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.CheckForServerUpdatesAsync(CancellationToken cancellationToken)
2024-04-24T09:30:29.8284320Z    at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.FindServiceDefinitionsAsync(String serviceType, CancellationToken cancellationToken)
2024-04-24T09:30:29.8284900Z    at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetResourceLocationsAsync(CancellationToken cancellationToken)
2024-04-24T09:30:29.8285573Z    at Microsoft.VisualStudio.Services.WebApi.VssConnection.GetClientInstanceAsync(Type managedType, Guid serviceIdentifier, CancellationToken cancellationToken, VssHttpRequestSettings settings, DelegatingHandler[] handlers)
2024-04-24T09:30:29.8286423Z    at Microsoft.VisualStudio.Services.WebApi.VssConnection.GetClientServiceImplAsync(Type requestedType, Guid serviceIdentifier, Func`4 getInstanceAsync, CancellationToken cancellationToken)
2024-04-24T09:30:29.8287420Z    at Microsoft.VisualStudio.Services.WebApi.VssConnection.GetClientAsync[T](CancellationToken cancellationToken)
2024-04-24T09:30:29.8287853Z    at Microsoft.VisualStudio.Services.WebApi.TaskExtensions.SyncResult[T](Task`1 task)
2024-04-24T09:30:29.8288222Z    at Microsoft.VisualStudio.Services.WebApi.VssConnection.GetClient[T]()
2024-04-24T09:30:29.8288779Z    at Microsoft.Azure.Pipelines.CoveragePublisher.Publishers.DefaultPublisher.ClientFactory.GetClient[T]() in D:\a\1\s\src\CoveragePublisher\Publishers\DefaultPublisher\ClientFactory.cs:line 20
2024-04-24T09:30:29.8289773Z    at Microsoft.Azure.Pipelines.CoveragePublisher.Publishers.DefaultPublisher.PipelinesTelemetry..ctor(IClientFactory clientFactory, Boolean enableTelemetryCollection) in D:\a\1\s\src\CoveragePublisher\Publishers\DefaultPublisher\PipelinesTelemetry.cs:line 23
2024-04-24T09:30:29.8290677Z    at Microsoft.Azure.Pipelines.CoveragePublisher.Publishers.DefaultPublisher.AzurePipelinesPublisher..ctor(Boolean enableTelemetry) in D:\a\1\s\src\CoveragePublisher\Publishers\DefaultPublisher\AzurePipelinesPublisher.cs:line 58
2024-04-24T09:30:29.8291573Z    at Microsoft.Azure.Pipelines.CoveragePublisher.Program.ProcessCoverage(PublisherConfiguration config, CancellationToken cancellationToken) in D:\a\1\s\src\CoveragePublisher.Console\Program.cs:line 43
2024-04-24T09:30:29.8292568Z ##[debug]task result: Failed
2024-04-24T09:30:29.8300723Z ##[debug]Processed: ##vso[task.complete result=Failed;]
2024-04-24T09:30:29.8360662Z ##[debug]Exit code 0 received from tool 'D:\myagent\agent01\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\2.225.0\node_modules\coveragepublisher\CoveragePublisher\CoveragePublisher.Console.exe'
2024-04-24T09:30:29.8366534Z ##[debug]STDIO streams have closed for tool 'D:\myagent\agent01\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\2.225.0\node_modules\coveragepublisher\CoveragePublisher\CoveragePublisher.Console.exe'
2024-04-24T09:30:29.8445362Z ##[section]Finishing: Publish code coverage results

v1 version

2024-04-24T09:19:56.2984327Z ##[section]Starting: Publish code coverage results
2024-04-24T09:19:56.2991177Z ==============================================================================
2024-04-24T09:19:56.2991371Z Task         : Publish code coverage results
2024-04-24T09:19:56.2991487Z Description  : Publish Cobertura or JaCoCo code coverage results from a build
2024-04-24T09:19:56.2991640Z Version      : 1.219.0
2024-04-24T09:19:56.2991743Z Author       : Microsoft Corporation
2024-04-24T09:19:56.2991859Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-code-coverage-results
2024-04-24T09:19:56.2992048Z ==============================================================================
2024-04-24T09:19:56.8180730Z [command]"C:\Program Files\dotnet\dotnet.exe" D:\myagent\agent01\_work\_tasks\PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97\1.219.0\netcoreapp2.0\ReportGenerator.dll -reports:my-app/coverage/cobertura-coverage.xml -targetdir:D:\myagent\agent01\_work\_temp\cchtml -reporttypes:HtmlInline_AzurePipelines
2024-04-24T09:19:56.8766113Z 2024-04-24T17:19:56: Arguments
2024-04-24T09:19:56.8766640Z 2024-04-24T17:19:56:  -reports:my-app/coverage/cobertura-coverage.xml
2024-04-24T09:19:56.8768579Z 2024-04-24T17:19:56:  -targetdir:D:\myagent\agent01\_work\_temp\cchtml
2024-04-24T09:19:56.8769159Z 2024-04-24T17:19:56:  -reporttypes:HtmlInline_AzurePipelines
2024-04-24T09:19:57.1396094Z 2024-04-24T17:19:57: Writing report file 'D:\myagent\agent01\_work\_temp\cchtml\index.html'
2024-04-24T09:19:57.1765134Z 2024-04-24T17:19:57: Report generation took 0.2 seconds
2024-04-24T09:19:57.1854207Z Generated code coverage html report: D:\myagent\agent01\_work\_temp\cchtml
2024-04-24T09:19:57.1882437Z Reading code coverage summary from 'D:\myagent\agent01\_work\7\s\my-app\coverage\cobertura-coverage.xml'
2024-04-24T09:19:57.2523554Z ##[section]Async Command Start: Publish code coverage
2024-04-24T09:19:57.2523795Z Publishing coverage summary data to TFS server.
2024-04-24T09:19:57.2524206Z  Lines- 1 of 12 covered.
2024-04-24T09:19:57.2524433Z  Branches- 0 of 4 covered.
2024-04-24T09:19:57.5865696Z Modifying Cobertura Index file
2024-04-24T09:19:57.5865907Z Publishing code coverage files to TFS server.
2024-04-24T09:19:57.5866058Z Uploading 6 files
2024-04-24T09:19:57.5866201Z File upload succeed.
2024-04-24T09:19:57.5866420Z Published 'D:\myagent\agent01\_work\_temp\cchtml' as artifact 'Code Coverage Report_135'
2024-04-24T09:19:57.5866854Z ##[section]Async Command End: Publish code coverage
2024-04-24T09:19:57.5868210Z ##[section]Finishing: Publish code coverage results

@gt97
Copy link
Author

gt97 commented Apr 29, 2024

I am using Azure Devops cloud so all connection are https

Bye

@KaiBNET
Copy link

KaiBNET commented Apr 30, 2024

Same problem here with Azure Devops cloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug regression This used to work, but a change in the service/tasks broke it. Task: PublishCodeCoverageResults triage
Projects
None yet
Development

No branches or pull requests

4 participants