Azure-pipelines-tasks: VS Test Tool Platform installer not using Proxy setting

Created on 21 Aug 2019  路  11Comments  路  Source: microsoft/azure-pipelines-tasks

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: VsTestPlatformToolInstallerV1

Environment

  • Server - Azure Pipelines
  • Agent - Private:
    * Current agent version: '2.155.1'
    * Windows server 2016

Issue Description

We using Azure devops with on premise hosted build agents. Using the VS test platform installer task to download the platform. At first we used an offline hosted nexus environment with a proxy to Nuget.org. We are currently transferring to Azure Artifacts en configure a packagefeed with an upstream to Nuget.org.

But the the task is getting a time out when trying to reach the azure artifacts url/ we get the same error by using nuget.org directly.

We see in our corporate proxy that there is no rule to block this communication. But we see that the specific communication from the buildagent for this task is bypassing the proxy. even when a system proxy and proxy settings on the agent are set.

The corporate firewall log is showing the communication bypassing the proxy

Task logs

2019-08-21T09:04:32.9840535Z ##[section]Starting: Visual Studio Test Platform Installer
2019-08-21T09:04:32.9926297Z ==============================================================================
2019-08-21T09:04:32.9926376Z Task         : Visual Studio test platform installer
2019-08-21T09:04:32.9926466Z Description  : Acquire the test platform from nuget.org or the tool cache. Satisfies the 芒鈧渧stest芒鈧劉 demand and can be used for running tests and collecting diagnostic data using the Visual Studio Test task.
2019-08-21T09:04:32.9926537Z Version      : 1.151.1
2019-08-21T09:04:32.9926604Z Author       : Microsoft Corporation
2019-08-21T09:04:32.9926698Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/tool/vstest-platform-tool-installer
2019-08-21T09:04:32.9926769Z ==============================================================================
2019-08-21T09:04:33.2577131Z ##[debug]agent.TempDirectory=D:\Agents\Agent_Azuredevops_35283_1\_work\_temp
2019-08-21T09:04:33.2625957Z ##[debug]loading inputs and endpoints
2019-08-21T09:04:33.2631404Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2019-08-21T09:04:33.2643547Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2019-08-21T09:04:33.2647422Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2019-08-21T09:04:33.2649927Z ##[debug]loading INPUT_CUSTOMFEED
2019-08-21T09:04:33.2652188Z ##[debug]loading INPUT_PACKAGEFEEDSELECTOR
2019-08-21T09:04:33.2654291Z ##[debug]loading INPUT_PASSWORD
2019-08-21T09:04:33.2656465Z ##[debug]loading INPUT_VERSIONSELECTOR
2019-08-21T09:04:33.2661219Z ##[debug]loaded 7
2019-08-21T09:04:33.2676201Z ##[debug]Agent.ProxyUrl=http://<ServerURL>:<port>
2019-08-21T09:04:33.2683243Z ##[debug]Agent.ProxyUsername=undefined
2019-08-21T09:04:33.2683578Z ##[debug]Agent.ProxyPassword=undefined
2019-08-21T09:04:33.2683842Z ##[debug]Agent.ProxyBypassList=["<.local>"]
2019-08-21T09:04:33.2685102Z ##[debug]expose agent proxy configuration.
2019-08-21T09:04:33.2686560Z ##[debug]Agent.CAInfo=undefined
2019-08-21T09:04:33.2686843Z ##[debug]Agent.ClientCert=undefined
2019-08-21T09:04:33.2687072Z ##[debug]Agent.SkipCertValidation=undefined
2019-08-21T09:04:33.3269590Z ##[debug]Agent.ProxyUrl=http://<ServerURL>:<port>
2019-08-21T09:04:33.3269743Z ##[debug]Agent.ProxyUsername=undefined
2019-08-21T09:04:33.3269842Z ##[debug]Agent.ProxyPassword=undefined
2019-08-21T09:04:33.3269960Z ##[debug]Agent.ProxyBypassList=["<.local>"]
2019-08-21T09:04:33.3276049Z ##[debug]check path : D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\node_modules\vsts-task-tool-lib\lib.json
2019-08-21T09:04:33.3278298Z ##[debug]adding resource file: D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\node_modules\vsts-task-tool-lib\lib.json
2019-08-21T09:04:33.3278444Z ##[debug]system.culture=en-US
2019-08-21T09:04:33.3538850Z ##[debug]check path : D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\task.json
2019-08-21T09:04:33.3540519Z ##[debug]adding resource file: D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\task.json
2019-08-21T09:04:33.3540878Z ##[debug]system.culture=en-US
2019-08-21T09:04:33.3727570Z Starting VsTest platform tools installer task.
2019-08-21T09:04:33.3728031Z ==============================================================================
2019-08-21T09:04:33.3737668Z ##[debug]packageFeedSelector=customFeed
2019-08-21T09:04:33.3741638Z ##[debug]versionSelector=latestPreRelease
2019-08-21T09:04:33.3742107Z ##[debug]testPlatformVersion=null
2019-08-21T09:04:33.3742355Z ##[debug]netShare=null
2019-08-21T09:04:33.3742568Z ##[debug]username=null
2019-08-21T09:04:33.3743872Z ##[debug]password=<PAT>
2019-08-21T09:04:33.3744199Z ##[debug]Selected package feed: customFeed
2019-08-21T09:04:33.3744455Z ##[debug]Going via custom feed download flow.
2019-08-21T09:04:33.3753230Z ##[debug]Attempting to write feed details along with provided credentials to temporary config file.
2019-08-21T09:04:33.3759141Z ##[debug]Agent.Version=2.155.1
2019-08-21T09:04:33.3759441Z ##[debug]Agent.TempDirectory=D:\Agents\Agent_Azuredevops_35283_1\_work\_temp
2019-08-21T09:04:33.3764640Z ##[debug]customFeed=https://pkgs.dev.azure.com/<Organization>/_packaging/<AAUpstreamFeed>/nuget/v3/index.json
2019-08-21T09:04:33.3764970Z ##[debug]Writing package source details to temp config file D:\Agents\Agent_Azuredevops_35283_1\_work\_temp\b12f7490-c3f2-11e9-a05d-5d7c678104c9.config
2019-08-21T09:04:33.3827298Z ##[debug]which 'D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe'
2019-08-21T09:04:33.3835668Z ##[debug]found: 'D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe'
2019-08-21T09:04:33.3836235Z ##[debug]which 'D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe'
2019-08-21T09:04:33.3837385Z ##[debug]found: 'D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe'
2019-08-21T09:04:33.3840366Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: sources
2019-08-21T09:04:33.3841406Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: Add
2019-08-21T09:04:33.3843289Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: -NonInteractive
2019-08-21T09:04:33.3843482Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: -Name
2019-08-21T09:04:33.3843698Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: b12f7491-c3f2-11e9-a05d-5d7c678104c9
2019-08-21T09:04:33.3844080Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: -Source
2019-08-21T09:04:33.3844399Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: https://pkgs.dev.azure.com/<Organization>/_packaging/<AAUpstreamFeed>/nuget/v3/index.json
2019-08-21T09:04:33.3844675Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: -ValidAuthenticationTypes
2019-08-21T09:04:33.3844959Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: basic
2019-08-21T09:04:33.3845262Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: -Username
2019-08-21T09:04:33.3845522Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: vstestPlatformToolInstaller
2019-08-21T09:04:33.3846255Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: -Password
2019-08-21T09:04:33.3846644Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: <PAT>
2019-08-21T09:04:33.3846928Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: -ConfigFile
2019-08-21T09:04:33.3847239Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: D:\Agents\Agent_Azuredevops_35283_1\_work\_temp\b12f7490-c3f2-11e9-a05d-5d7c678104c9.config
2019-08-21T09:04:33.3851792Z ##[debug]exec tool: D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe
2019-08-21T09:04:33.3851922Z ##[debug]arguments:
2019-08-21T09:04:33.3852284Z ##[debug]   sources
2019-08-21T09:04:33.3852521Z ##[debug]   Add
2019-08-21T09:04:33.3852757Z ##[debug]   -NonInteractive
2019-08-21T09:04:33.3852962Z ##[debug]   -Name
2019-08-21T09:04:33.3853332Z ##[debug]   b12f7491-c3f2-11e9-a05d-5d7c678104c9
2019-08-21T09:04:33.3853698Z ##[debug]   -Source
2019-08-21T09:04:33.3853919Z ##[debug]   https://pkgs.dev.azure.com/<ORG>/_packaging/<>/nuget/v3/index.json
2019-08-21T09:04:33.3854128Z ##[debug]   -ValidAuthenticationTypes
2019-08-21T09:04:33.3856309Z ##[debug]   basic
2019-08-21T09:04:33.3858983Z ##[debug]   -Username
2019-08-21T09:04:33.3859318Z ##[debug]   vstestPlatformToolInstaller
2019-08-21T09:04:33.3859531Z ##[debug]   -Password
2019-08-21T09:04:33.3859743Z ##[debug]   <PAT>
2019-08-21T09:04:33.3859932Z ##[debug]   -ConfigFile
2019-08-21T09:04:33.3860161Z ##[debug]   D:\Agents\Agent_Azuredevops_35283_1\_work\_temp\b12f7490-c3f2-11e9-a05d-5d7c678104c9.config
2019-08-21T09:04:33.3868625Z [command]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe sources Add -NonInteractive -Name b12f7491-c3f2-11e9-a05d-5d7c678104c9 -Source https://pkgs.dev.azure.com/<Organization>/_packaging/<AAUpstreamFeed>/nuget/v3/index.json -ValidAuthenticationTypes basic -Username vstestPlatformToolInstaller -Password <PAT> -ConfigFile D:\Agents\Agent_Azuredevops_35283_1\_work\_temp\b12f7490-c3f2-11e9-a05d-5d7c678104c9.config
2019-08-21T09:04:33.9048848Z Package source with Name: b12f7491-c3f2-11e9-a05d-5d7c678104c9 added successfully.
2019-08-21T09:04:33.9050053Z ##[debug]Setting the source to feed with id b12f7491-c3f2-11e9-a05d-5d7c678104c9 whose details were written to the config file.
2019-08-21T09:04:33.9051258Z ##[debug]Agent.Version=2.155.1
2019-08-21T09:04:33.9051691Z ##[debug]Release.ReleaseUri=undefined
2019-08-21T09:04:33.9052046Z ##[debug]Release.ReleaseId=undefined
2019-08-21T09:04:33.9052286Z ##[debug]Build.BuildUri=vstfs:///Build/Build/34291
2019-08-21T09:04:33.9052550Z ##[debug]Build.Buildid=34291
2019-08-21T09:04:33.9052830Z ##[debug]telemetry area: TestExecution feature: VsTestToolsInstaller data: {"builduri":"vstfs:///Build/Build/34291","buildid":"34291","packageSource":"customFeed","subFeature":"PackageSourceOverridden"}
2019-08-21T09:04:33.9534973Z ##[debug]Processed: ##vso[telemetry.publish area=TestExecution;feature=VsTestToolsInstaller;]{"builduri":"vstfs:///Build/Build/34291","buildid":"34291","packageSource":"customFeed","subFeature":"PackageSourceOverridden"}
2019-08-21T09:04:33.9535513Z ##[debug]Using the package source b12f7491-c3f2-11e9-a05d-5d7c678104c9 to get the Microsoft.TestPlatform nuget package.
2019-08-21T09:04:33.9536426Z ##[debug]Using provided config file D:\Agents\Agent_Azuredevops_35283_1\_work\_temp\b12f7490-c3f2-11e9-a05d-5d7c678104c9.config.
2019-08-21T09:04:33.9536564Z Looking for the latest pre-release version of the Microsoft.Testplatform.
2019-08-21T09:04:33.9536722Z ##[debug]which 'D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe'
2019-08-21T09:04:33.9536872Z ##[debug]found: 'D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe'
2019-08-21T09:04:33.9537005Z ##[debug]which 'D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe'
2019-08-21T09:04:33.9537135Z ##[debug]found: 'D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe'
2019-08-21T09:04:33.9537265Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: list
2019-08-21T09:04:33.9537407Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: Microsoft.TestPlatform
2019-08-21T09:04:33.9537545Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: -PreRelease
2019-08-21T09:04:33.9537836Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: -NonInteractive
2019-08-21T09:04:33.9537974Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: -Source
2019-08-21T09:04:33.9538116Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: b12f7491-c3f2-11e9-a05d-5d7c678104c9
2019-08-21T09:04:33.9538258Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: -ConfigFile
2019-08-21T09:04:33.9538404Z ##[debug]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe arg: D:\Agents\Agent_Azuredevops_35283_1\_work\_temp\b12f7490-c3f2-11e9-a05d-5d7c678104c9.config
2019-08-21T09:04:33.9538561Z ##[debug]exec tool: D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe
2019-08-21T09:04:33.9538668Z ##[debug]arguments:
2019-08-21T09:04:33.9538754Z ##[debug]   list
2019-08-21T09:04:33.9538849Z ##[debug]   Microsoft.TestPlatform
2019-08-21T09:04:33.9538947Z ##[debug]   -PreRelease
2019-08-21T09:04:33.9539030Z ##[debug]   -NonInteractive
2019-08-21T09:04:33.9539124Z ##[debug]   -Source
2019-08-21T09:04:33.9539231Z ##[debug]   b12f7491-c3f2-11e9-a05d-5d7c678104c9
2019-08-21T09:04:33.9539325Z ##[debug]   -ConfigFile
2019-08-21T09:04:33.9539428Z ##[debug]   D:\Agents\Agent_Azuredevops_35283_1\_work\_temp\b12f7490-c3f2-11e9-a05d-5d7c678104c9.config
2019-08-21T09:04:33.9539562Z [command]D:\Agents\Agent_Azuredevops_35283_1\_work\_tasks\VisualStudioTestPlatformInstaller_2c65196a-54fd-4a02-9be8-d9d1837b7111\1.151.1\nuget.exe list Microsoft.TestPlatform -PreRelease -NonInteractive -Source b12f7491-c3f2-11e9-a05d-5d7c678104c9 -ConfigFile D:\Agents\Agent_Azuredevops_35283_1\_work\_temp\b12f7490-c3f2-11e9-a05d-5d7c678104c9.config
2019-08-21T09:05:37.7358486Z Unable to load the service index for source https://pkgs.dev.azure.com/<Organization>/_packaging/<AAUpstreamFeed>/nuget/v3/index.json.
2019-08-21T09:05:37.7358643Z   An error occurred while sending the request.
2019-08-21T09:05:37.7358722Z   Unable to connect to the remote server
2019-08-21T09:05:37.7359073Z   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 13.107.42.20:443
2019-08-21T09:05:37.7427785Z ##[error]Nuget.exe returned error code: 1
2019-08-21T09:05:37.7436391Z ##[debug]Processed: ##vso[task.issue type=error;]Nuget.exe returned error code: 1
2019-08-21T09:05:37.7437131Z ##[error]Failed to fetch list of available packages from nuget, looking for latest stable version cached.
Error: Listing packages failed. Nuget.exe returned 1.
Standard Error:
Unable to load the service index for source https://pkgs.dev.azure.com/<Organization>/_packaging/<AAUpstreamFeed>/nuget/v3/index.json.
  An error occurred while sending the request.
  Unable to connect to the remote server
  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 13.107.42.20:443
Standard Out:

2019-08-21T09:05:37.7437501Z ##[debug]Processed: ##vso[task.issue type=error;]Failed to fetch list of available packages from nuget, looking for latest stable version cached.%0AError: Listing packages failed. Nuget.exe returned 1.%0AStandard Error:%0AUnable to load the service index for source https://pkgs.dev.azure.com/<Organization>/_packaging/<AAUpstreamFeed>/nuget/v3/index.json.%0D%0A  An error occurred while sending the request.%0D%0A  Unable to connect to the remote server%0D%0A  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 13.107.42.20:443%0D%0AStandard Out:%0A
2019-08-21T09:05:37.7438640Z ##[debug]Looking for latest stable version available version in cache.
2019-08-21T09:05:37.7438770Z ##[debug]Agent.Version=2.155.1
2019-08-21T09:05:37.7438880Z ##[debug]Release.ReleaseUri=undefined
2019-08-21T09:05:37.7438998Z ##[debug]Release.ReleaseId=undefined
2019-08-21T09:05:37.7439104Z ##[debug]Build.BuildUri=vstfs:///Build/Build/34291
2019-08-21T09:05:37.7439215Z ##[debug]Build.Buildid=34291
2019-08-21T09:05:37.7439368Z ##[debug]telemetry area: TestExecution feature: VsTestToolsInstaller data: {"builduri":"vstfs:///Build/Build/34291","buildid":"34291","action":"getLatestAvailableInCache","error":{},"subFeature":"RequestedVersionListFailed"}
2019-08-21T09:05:37.7862650Z ##[debug]Processed: ##vso[telemetry.publish area=TestExecution;feature=VsTestToolsInstaller;]{"builduri":"vstfs:///Build/Build/34291","buildid":"34291","action":"getLatestAvailableInCache","error":{},"subFeature":"RequestedVersionListFailed"}
2019-08-21T09:05:37.7863095Z ##[debug]Looking for version x in the tools cache.
2019-08-21T09:05:37.7863217Z ##[debug]isExplicit: null
2019-08-21T09:05:37.7863308Z ##[debug]explicit? false
2019-08-21T09:05:37.7863399Z ##[debug]Agent.Version=2.155.1
2019-08-21T09:05:37.7863493Z ##[debug]Agent.ToolsDirectory=D:\Agents\Agent_Azuredevops_35283_1\_work\_tool
2019-08-21T09:05:37.7863678Z ##[debug]isExplicit: 16.0.0-preview-20190203-03
2019-08-21T09:05:37.7863777Z ##[debug]explicit? true
2019-08-21T09:05:37.7863863Z ##[debug]isExplicit: 16.0.1
2019-08-21T09:05:37.7863946Z ##[debug]explicit? true
2019-08-21T09:05:37.7864041Z ##[debug]isExplicit: 16.0.2-preview-20190502-01
2019-08-21T09:05:37.7864143Z ##[debug]explicit? true
2019-08-21T09:05:37.7864226Z ##[debug]isExplicit: 16.1.0
2019-08-21T09:05:37.7864308Z ##[debug]explicit? true
2019-08-21T09:05:37.7864395Z ##[debug]isExplicit: 16.1.1
2019-08-21T09:05:37.7864529Z ##[debug]explicit? true
2019-08-21T09:05:37.7864627Z ##[debug]isExplicit: 16.2.0-preview-20190606-02
2019-08-21T09:05:37.7864880Z ##[debug]explicit? true
2019-08-21T09:05:37.7864982Z ##[debug]isExplicit: 16.3.0-preview-20190715-02
2019-08-21T09:05:37.7865120Z ##[debug]explicit? true
2019-08-21T09:05:37.7865254Z ##[debug]isExplicit: 16.3.0-preview-20190808-03
2019-08-21T09:05:37.7865384Z ##[debug]explicit? true
2019-08-21T09:05:37.7865466Z ##[debug]evaluating 8 versions
2019-08-21T09:05:37.7865789Z ##[debug]matched: 16.1.1
2019-08-21T09:05:37.7865959Z ##[debug]Agent.Version=2.155.1
2019-08-21T09:05:37.7866100Z ##[debug]Agent.ToolsDirectory=D:\Agents\Agent_Azuredevops_35283_1\_work\_tool
2019-08-21T09:05:37.7866211Z ##[debug]checking cache: D:\Agents\Agent_Azuredevops_35283_1\_work\_tool\VsTest\16.1.1\x64
2019-08-21T09:05:37.7866333Z Found tool in cache: VsTest 16.1.1 x64
2019-08-21T09:05:37.7866502Z ##[debug]set VsTestToolsInstallerInstalledToolLocation=D:\Agents\Agent_Azuredevops_35283_1\_work\_tool\VsTest\16.1.1\x64
2019-08-21T09:05:37.7881654Z ##[debug]Processed: ##vso[task.setvariable variable=VsTestToolsInstallerInstalledToolLocation;issecret=false;]D:\Agents\Agent_Azuredevops_35283_1\_work\_tool\VsTest\16.1.1\x64
2019-08-21T09:05:37.7881788Z VsTest will use the Test Platform package found in D:\Agents\Agent_Azuredevops_35283_1\_work\_tool\VsTest\16.1.1\x64
2019-08-21T09:05:37.7882020Z ##[debug]Set variable VsTestToolsInstallerInstalledToolLocation value to D:\Agents\Agent_Azuredevops_35283_1\_work\_tool\VsTest\16.1.1\x64.
2019-08-21T09:05:37.7882174Z ##[debug]Agent.Version=2.155.1
2019-08-21T09:05:37.7882304Z ##[debug]Release.ReleaseUri=undefined
2019-08-21T09:05:37.7882394Z ##[debug]Release.ReleaseId=undefined
2019-08-21T09:05:37.7882603Z ##[debug]Build.BuildUri=vstfs:///Build/Build/34291
2019-08-21T09:05:37.7883576Z ##[debug]Build.Buildid=34291
2019-08-21T09:05:37.7883836Z ##[debug]telemetry area: TestExecution feature: VsTestToolsInstaller data: {"builduri":"vstfs:///Build/Build/34291","buildid":"34291","operatingSystem":"win32","result":"succeeded","packageFeedSelectorInput":"customFeed","prepareConfigFileTime":517.73529,"passwordProvided":"true","usernameProvided":"false","versionSelectorInput":"latestPreRelease","latestVersionIdentified":"false","includePreRelease":"true","ListLatestPackageTime":63825.777393,"listingPackagesFailed":"true","cacheLookupTime":16.4883719999998,"firstCacheLookupSucceeded":"true","executionTime":64392.675326,"subFeature":"vstestToolInstallerConsolidatedCiEvent"}
2019-08-21T09:05:37.8477609Z ##[debug]Processed: ##vso[telemetry.publish area=TestExecution;feature=VsTestToolsInstaller;]{"builduri":"vstfs:///Build/Build/34291","buildid":"34291","operatingSystem":"win32","result":"succeeded","packageFeedSelectorInput":"customFeed","prepareConfigFileTime":517.73529,"passwordProvided":"true","usernameProvided":"false","versionSelectorInput":"latestPreRelease","latestVersionIdentified":"false","includePreRelease":"true","ListLatestPackageTime":63825.777393,"listingPackagesFailed":"true","cacheLookupTime":16.4883719999998,"firstCacheLookupSucceeded":"true","executionTime":64392.675326,"subFeature":"vstestToolInstallerConsolidatedCiEvent"}
2019-08-21T09:05:37.8495663Z ##[section]Finishing: Visual Studio Test Platform Installer

Error logs

2019-08-21T09:05:37.7436391Z ##[debug]Processed: ##vso[task.issue type=error;]Nuget.exe returned error code: 1
2019-08-21T09:05:37.7437131Z ##[error]Failed to fetch list of available packages from nuget, looking for latest stable version cached.
Error: Listing packages failed. Nuget.exe returned 1.
Standard Error:
Unable to load the service index for source https://pkgs.dev.azure.com/<Organization>/_packaging/<AAUpstreamFeed>/nuget/v3/index.json.
  An error occurred while sending the request.
  Unable to connect to the remote server
  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 13.107.42.20:443
Standard Out:

2019-08-21T09:05:37.7437501Z ##[debug]Processed: ##vso[task.issue type=error;]Failed to fetch list of available packages from nuget, looking for latest stable version cached.%0AError: Listing packages failed. Nuget.exe returned 1.%0AStandard Error:%0AUnable to load the service index for source https://pkgs.dev.azure.com/<Organization>/_packaging/<AAUpstreamFeed>/nuget/v3/index.json.%0D%0A  An error occurred while sending the request.%0D%0A  Unable to connect to the remote server%0D%0A  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 13.107.42.20:443%0D%0AStandard Out:%0A
Test bug

All 11 comments

@Shortcheese How are you configuring your agent? This contains information on how to run a self hosted agent behind a web proxy. The settings passed to the agent are flown down to the tasks as well. Can you please check if your agent was configured properly as per the instructions?

Hi @vagisha-nidhi
We configured all our agents to work behind our corporate proxy, following the given instructions.

2019-08-21T09:04:33.2676201Z ##[debug]Agent.ProxyUrl=http://<ServerURL>:<port> 2019-08-21T09:04:33.2683243Z ##[debug]Agent.ProxyUsername=undefined 2019-08-21T09:04:33.2683578Z ##[debug]Agent.ProxyPassword=undefined 2019-08-21T09:04:33.2683842Z ##[debug]Agent.ProxyBypassList=["<.local>"] 2019-08-21T09:04:33.2685102Z ##[debug]expose agent proxy configuration. 2019-08-21T09:04:33.2686560Z ##[debug]Agent.CAInfo=undefined 2019-08-21T09:04:33.2686843Z ##[debug]Agent.ClientCert=undefined 2019-08-21T09:04:33.2687072Z ##[debug]Agent.SkipCertValidation=undefined 2019-08-21T09:04:33.3269590Z ##[debug]Agent.ProxyUrl=http://<ServerURL>:<port> 2019-08-21T09:04:33.3269743Z ##[debug]Agent.ProxyUsername=undefined 2019-08-21T09:04:33.3269842Z ##[debug]Agent.ProxyPassword=undefined 2019-08-21T09:04:33.3269960Z ##[debug]Agent.ProxyBypassList=["<.local>"]

We see in our other task that the connection towards Azure goes by the proxy. Only this task is bypassing it.

@Shortcheese This sure seems like a bug. We are using nuget.exe in the tools installer task but we don't pass the agent proxy settings to this. I'll mark this as bug and see how this can be resolved.

@Shortcheese for this task atleast this should be easy to fix.
https://stackoverflow.com/questions/9232160/nuget-behind-a-proxy

We would need to add the proxy details to the nuget config file in the task here

You can take a look at the vstest task for reading the proxy details from the agent in the file inputparser.ts.

It would be amazing if you could contribute to fixing this, I will of course provide any assistance needed. Let me know

We are working on this and should have a fix out shortly.

We were unable to go ahead with this due to an issue we found with nuget.exe

In the meantime this can be worked around by running the following set of commands on the machine on which the build agents are running. This will set the proxy details in the global nuget.config which nuget.exe will use when making any calls.

nuget.exe config -set http_proxy=http://my.proxy.address:port
nuget.exe config -set http_proxy.user=mydomain\myUserName
nuget.exe config -set http_proxy.password=mySuperSecretPassword

Closing this for now. We will re-open this if the issue gets fixed on nuget.exe or if the workaround provided does not work for you.

Hello @ShreyasRmsft
We have the same issue as described from Shortchees. Unfortunatelly the workaround you described is not working on our on-premise buils server. Our Proxy need no credentials so I added only the first line. I added also to several nuget.config files I found on the Server, but we still have the Problem that VSTest can not upload any test files.
Thank you

@Simon-DevOps this workaround was for the VsTest Platform Tool installer task not the VsTest task.

Can you please open a new issue for the uploading test file issues and provide the link here?

Hi @Simon-DevOps
Is it the same issue as I describe in issue #11292

Hi all, sorry for the wrong post and thank you for the reference.

Was this page helpful?
0 / 5 - 0 ratings