Open
Description
Description
This single test case Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsAliasTests.TestAdlsFileSystem
, fails randomly time and time again. This affects our efficiency to review PRs.
Need to investigate.
Sample PR: #10755
CI job: https://dev.azure.com/azure-sdk/public/_build/results?buildId=231953
Log: https://dev.azure.com/azure-sdk/public/_build/results?buildId=231953&view=logs&j=ad07b744-5a1a-5d54-7693-fcb02e666633&t=b0841cae-a6b1-5a5c-4ebd-3cc6b3d3163d&l=704
Log snippet:
[xUnit.net 00:00:15.65] Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsAliasTests.TestAdlsFileSystem [FAIL]
X Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsAliasTests.TestAdlsFileSystem [2s 950ms]
EXEC : error Message: [/home/vsts/work/1/s/build.proj]
System.Management.Automation.ActionPreferenceStopException : The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Object reference not set to an instance of an object.
Stack Trace:
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.Runspaces.Pipeline.Invoke()
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke()
at Microsoft.WindowsAzure.Commands.ScenarioTest.EnvironmentSetupHelper.RunPowerShellTest(String[] scripts) in /home/vsts/work/1/s/tools/ScenarioTest.ResourceManager/EnvironmentSetupHelper.cs:line 571
at Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsTestsBase.RunPsTestWorkflow(Func`1 scriptBuilder, Action cleanup, String callingClassType, String mockName) in /home/vsts/work/1/s/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsTestsBase.cs:line 115
at Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsTestsBase.RunPsTest(XunitTracingInterceptor logger, String[] scripts) in /home/vsts/work/1/s/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsTestsBase.cs:line 66
at Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsAliasTests.TestAdlsFileSystem() in /home/vsts/work/1/s/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsAliasTests.cs:line 76
Standard Output Messages:
$ProgressPreference="SilentlyContinue"
Test-DataLakeStoreFileSystem -fileToCopy '/home/vsts/work/1/s/src/DataLakeStore/DataLakeStore.Test/bin/Debug/netcoreapp2.2/ScenarioTests/AdlsAliasTests.ps1' -location 'westus'
Caught Exception: System.Management.Automation.ActionPreferenceStopException: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Object reference not set to an instance of an object.
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.Runspaces.Pipeline.Invoke()
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke()
at Microsoft.WindowsAzure.Commands.ScenarioTest.EnvironmentSetupHelper.RunPowerShellTest(String[] scripts) in /home/vsts/work/1/s/tools/ScenarioTest.ResourceManager/EnvironmentSetupHelper.cs:line 571
Message: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Object reference not set to an instance of an object.
EXEC : PowerShell error Record: Object reference not set to an instance of an object. [/home/vsts/work/1/s/build.proj]
Exception:System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Azure.Commands.DataLakeStore.Models.DataLakeStoreFileSystemClient.TrackTaskProgress(Task task, Cmdlet commandToUpdateProgressFor, ProgressRecord taskProgress, CancellationToken token) in /home/vsts/work/1/s/src/DataLakeStore/DataLakeStore/DataPlaneModels/DataLakeStoreFileSystemClient.cs:line 886
at Microsoft.Azure.Commands.DataLakeStore.Models.DataLakeStoreFileSystemClient.GetFileProperties(String accountName, String path, Boolean getAclUsage, String dumpFileName, Boolean getDiskUsage, Boolean saveToLocal, Int32 numThreads, Boolean displayFiles, Boolean hideConsistentAcl, Int64 maxDepth, Cmdlet cmdlet, CancellationToken cmdletCancellationToken) in /home/vsts/work/1/s/src/DataLakeStore/DataLakeStore/DataPlaneModels/DataLakeStoreFileSystemClient.cs:line 762
at Microsoft.Azure.Commands.DataLakeStore.ExportAzureRmDataLakeStoreChildItemProperties.ExecuteCmdlet() in /home/vsts/work/1/s/src/DataLakeStore/DataLakeStore/DataPlaneCommands/ExportAzureRmDataLakeStoreChildItemProperties.cs:line 93
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Details:
Script Stack Trace: at Test-DataLakeStoreFileSystem, /home/vsts/work/1/s/src/DataLakeStore/DataLakeStore.Test/bin/Debug/netcoreapp2.2/ScenarioTests/AdlsAliasTests.ps1: line 705