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

Fix Intermittent Integration Test Failures #240

Open
PlagueHO opened this issue Jun 16, 2020 · 0 comments
Open

Fix Intermittent Integration Test Failures #240

PlagueHO opened this issue Jun 16, 2020 · 0 comments
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.

Comments

@PlagueHO
Copy link
Member

PlagueHO commented Jun 16, 2020

There are intermittent integration test failures occurring in OpticalDiskDriveLetter:

VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = 
SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = 
root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer WIN-B3R5QEEO4UF with user sid 
S-1-5-21-4047340035-1406749611-3780686611-500.
VERBOSE: [WIN-B3R5QEEO4UF]: LCM:  [ Start  Set      ]
VERBOSE: [WIN-B3R5QEEO4UF]: LCM:  [ Start  Resource ]  [[OpticalDiskDriveLetter]Integration_Test]
VERBOSE: [WIN-B3R5QEEO4UF]: LCM:  [ Start  Test     ]  [[OpticalDiskDriveLetter]Integration_Test]
VERBOSE: [WIN-B3R5QEEO4UF]:                            [[OpticalDiskDriveLetter]Integration_Test] 
Get-OpticalDiskDriveLetter: Using Get-CimInstance to get the drive letter of optical disk 2 in the system.
VERBOSE: [WIN-B3R5QEEO4UF]:                            [[OpticalDiskDriveLetter]Integration_Test] Perform operation 
'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_CDROMDrive'.
VERBOSE: [WIN-B3R5QEEO4UF]:                            [[OpticalDiskDriveLetter]Integration_Test] Operation 'Enumerate 
CimInstances' complete.
VERBOSE: [WIN-B3R5QEEO4UF]:                            [[OpticalDiskDriveLetter]Integration_Test] 
Get-OpticalDiskDriveLetter: The optical disk 2 could not be found in the system.
VERBOSE: [WIN-B3R5QEEO4UF]: LCM:  [ End    Test     ]  [[OpticalDiskDriveLetter]Integration_Test]  in 0.1880 seconds.
      [-] Should compile and apply the MOF without throwing 389ms
        Expected no exception to be thrown, but an exception "PowerShell DSC resource DSC_OpticalDiskDriveLetter  failed to execute Test-TargetResource functionality with error message: The optical disk 2 could not be found in the system, so this resource has nothing to do. This resource does not change the drive letter of mounted ISOs.
        Parameter name: DiskId " was thrown from D:\a\1\s\tests\Integration\DSC_OpticalDiskDriveLetter.Integration.Tests.ps1:199 char:21
            +                     Start-DscConfiguration `
            +                     ~~~~~~~~~~~~~~~~~~~~~~~~.
        206:                 } | Should -Not -Throw
        at <ScriptBlock>, D:\a\1\s\tests\Integration\DSC_OpticalDiskDriveLetter.Integration.Tests.ps1: line 182
VERBOSE: An LCM method call arrived from computer WIN-B3R5QEEO4UF with user sid 
S-1-5-21-4047340035-1406749611-3780686611-500.

https://dev.azure.com/dsccommunity/StorageDsc/_build/results?buildId=2281&view=logs&j=e5903dc0-299b-5c16-f4a4-7b2df32e77c1&t=43d65258-a80c-540d-cc9c-6272089b2054&l=2142

The issue occurs more frequently on Windows Server 2019.

@PlagueHO PlagueHO added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. labels Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

1 participant