-
Notifications
You must be signed in to change notification settings - Fork 346
Description
From @nobitagamer on June 8, 2017 2:42
I'm trying to run a build inside a docker container, everything is ok except i can't enable Code Coverage feature because of below error.
Here is what i'm tried:
- Container run with Administrator privilege (check with
whoamiinside container). - When uncheck
Code Coveragethis task will run normally. - Visual Studio is installed from chocolatey https://chocolatey.org/packages/visualstudio2017enterprise
- Agent.Version: 2.117.1
2017-06-07T08:58:03.1455639Z ##[warning]Overriding test run parameters is supported only with runsettings file. This option will be ignored. 2017-06-07T08:58:03.1620491Z [command]"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" W:\_work\1\s\tests\FlexiCore.Tests\bin\Release\net452\FlexiCore.Tests.dll /Settings:W:\_work\_temp\6a1002e0-4b5f-11e7-a46c-47b345f25b7d.runsettings /EnableCodeCoverage /InIsolation /logger:trx "/TestAdapterPath:\"W:\_work\1\s\tests\"" 2017-06-07T08:58:03.1687666Z <RunSettings> 2017-06-07T08:58:03.1687666Z <RunConfiguration> 2017-06-07T08:58:03.1687666Z <MaxCpuCount>0</MaxCpuCount> 2017-06-07T08:58:03.1687666Z </RunConfiguration> 2017-06-07T08:58:03.1687666Z </RunSettings> 2017-06-07T08:58:04.1483998Z Microsoft (R) Test Execution Command Line Tool Version 15.0.26228.0 2017-06-07T08:58:04.1483998Z Copyright (c) Microsoft Corporation. All rights reserved. 2017-06-07T08:58:04.1483998Z 2017-06-07T08:58:04.6405259Z Starting test execution, please wait... 2017-06-07T08:58:08.3865000Z 2017-06-07T08:58:08.3922932Z Unhandled Exception: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) ---> System.ServiceModel.FaultException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) 2017-06-07T08:58:08.3922932Z 2017-06-07T08:58:08.3922932Z Server stack trace: 2017-06-07T08:58:08.3922932Z at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) 2017-06-07T08:58:08.3922932Z at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) 2017-06-07T08:58:08.3922932Z at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) 2017-06-07T08:58:08.3922932Z at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) 2017-06-07T08:58:08.3922932Z 2017-06-07T08:58:08.3922932Z Exception rethrown at [0]: 2017-06-07T08:58:08.3922932Z at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 2017-06-07T08:58:08.3922932Z at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 2017-06-07T08:58:08.3922932Z at Microsoft.VisualStudio.TestPlatform.Common.Interfaces.ITestRunEventSinkService.BeforeTestRunStart(String settingsXml, Boolean resetDataCollectors, Boolean isRunStartingNow) 2017-06-07T08:58:08.3922932Z at Microsoft.VisualStudio.TestPlatform.Client.TestRunEventSinkProxy.BeforeTestRunStart(String settingsXml, Boolean resetDataCollectors, Boolean isRunStartingNow) 2017-06-07T08:58:08.3922932Z --- End of inner exception stack trace --- 2017-06-07T08:58:08.3922932Z at Microsoft.VisualStudio.TestPlatform.Client.TestRunEventSinkProxy.BeforeTestRunStart(String settingsXml, Boolean resetDataCollectors, Boolean isRunStartingNow) 2017-06-07T08:58:08.3922932Z at Microsoft.VisualStudio.TestPlatform.Client.DataCollectionClient.BeforeTestRunStart(String settingsXml, Boolean resetDataCollectors, Boolean isRunStartingNow, IDataCollectionLog dataCollectionLog) 2017-06-07T08:58:08.3922932Z at Microsoft.VisualStudio.TestPlatform.Client.ParallelDataCollectionClient.BeforeTestRunStart(String settingsXml, Boolean resetDataCollectors, Boolean isRunStartingNow, IDataCollectionLog dataCollectionLog) 2017-06-07T08:58:08.3922932Z at Microsoft.VisualStudio.TestPlatform.Client.Rocksteady.RocksteadyDataCollectionClient.<>c__DisplayClass12_1.<BeforeTestRunStart>b__0() 2017-06-07T08:58:08.3922932Z at Microsoft.VisualStudio.TestPlatform.Client.Rocksteady.RocksteadyDataCollectionClient.InvokeDataCollectionServiceAction(Action action, ITestMessageEventHandler runEventsHandler) 2017-06-07T08:58:08.3932919Z at Microsoft.VisualStudio.TestPlatform.Client.Rocksteady.RocksteadyDataCollectionClient.BeforeTestRunStart(String settingsXml, Boolean resetDataCollectors, Boolean isRunStartingNow, ITestDataCollectionLogEventsHandler dataCollectionLogEventsHandler, ITestMessageEventHandler runEventsHandler) 2017-06-07T08:58:08.3932919Z at Microsoft.VisualStudio.TestPlatform.Client.TestRunRequest.ExecuteAsync() 2017-06-07T08:58:08.3932919Z at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.RunTestsArgumentProcessor.RunTests(IEnumerable1 sources, String packageFullName, String deviceInfo, Boolean isPhoneAppx, Boolean isUniversalTestAppx)
2017-06-07T08:58:08.3932919Z at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.RunTestsArgumentProcessor.Execute()
2017-06-07T08:58:08.3932919Z at Microsoft.VisualStudio.TestPlatform.CommandLine.Executor.Execute(String[] args)
2017-06-07T08:58:08.3932919Z at RockSteady.Program.Main(String[] args)
2017-06-07T08:58:09.5261035Z ##[warning]Vstest failed with error. Check logs for failures. There might be failed tests.
2017-06-07T08:58:09.5291957Z ##[error]Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe failed with return code: 3762504530
2017-06-07T08:58:09.5320068Z ##[warning]No results found to publish.
2017-06-07T08:58:09.5320068Z ##[error]Vstest exited with return code: 1.`
Copied from original issue: microsoft/azure-pipelines-tasks#4483