dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.36k stars 4.74k forks source link

[x64] Test failed: Interop_COM._NativeClients_Licensing_Licensing_._NativeClients_Licensing_Licensing_cmd #12329

Closed VincentBu closed 4 years ago

VincentBu commented 5 years ago

Job: https://ci.dot.net/job/dotnet_coreclr/job/master/view/x64/job/x64_release_windows_nt_ilrt/796/

Failed test: Interop_COM._NativeClients_LicensingLicensing._NativeClients_Licensing_Licensing_cmd

Log:

Interop_COM._NativeClients_Licensing_Licensing_._NativeClients_Licensing_Licensing_cmd [FAIL]
  Return code:      1
  Raw output file:      D:\j\workspace\x64_release_w---21e2e994\bin\tests\Windows_NT.x64.Release\Reports\Interop.COM\NativeClients\Licensing\Licensing.output.txt
  Raw output:
  BEGIN EXECUTION
        D:\j\workspace\x64_release_w---21e2e994\bin\tests\Windows_NT.x64.Release\Tests\Core_Root\ildasm.exe /raweh /out=Licensing.dasm.il Licensing.exe
        D:\j\workspace\x64_release_w---21e2e994\bin\tests\Windows_NT.x64.Release\Tests\Core_Root\ilasm.exe /output=Licensing.asm.exe  Licensing.dasm.il 
        Microsoft (R) .NET Framework IL Assembler.  Version 4.5.30319.0
        Copyright (c) Microsoft Corporation.  All rights reserved.
        Assembling 'Licensing.dasm.il'  to EXE --> 'Licensing.asm.exe'
        Source file is ANSI 
        Assembled method Program?<>c::.cctor
        Assembled method Program?<>c::.ctor
        Assembled method Program?<>c::<Main>b__0_0
        Assembled method Program?<>c::<Main>b__0_1
        Assembled method Program::Main
        Assembled method Program::.ctor
        Creating PE file

        Emitting classes:
        Class 1:    Program
        Class 2:    Program?<>c

        Emitting fields and methods:
        Global  
        Class 1 Methods: 2; 
        Class 2 Fields: 3;  Methods: 4; 
        Resolving local member refs: 10 -> 10 defs, 0 refs, 0 unresolved

        Emitting events and properties:
        Global  
        Class 1 
        Class 2 
        Resolving local member refs: 0 -> 0 defs, 0 refs, 0 unresolved
        Writing PE file
        Operation completed successfully
         "D:\j\workspace\x64_release_w---21e2e994\bin\tests\Windows_NT.x64.Release\Tests\Core_Root\corerun.exe" Licensing.asm.exe  
        Searching for exe to launch in D:\j\workspace\x64_release_w---21e2e994\bin\tests\Windows_NT.x64.Release\Interop\COM\NativeClients\Licensing...
        Launching 'D:\j\workspace\x64_release_w---21e2e994\bin\tests\Windows_NT.x64.Release\Interop\COM\NativeClients\Licensing\COMClientLicensing.exe'...
        License test through CoCreateInstance...
        FAILURE: 0x8007007e = ::CoCreateInstance(CLSID_LicenseTesting, nullptr, CLSCTX_INPROC, IID_ILicenseTesting, (void**)&licenseTesting)
        Test Failure: 0x8007007e

        END EXECUTION OF IL{D}ASM BINARY - FAILED 101 vs 100
        FAILED
        Test Harness Exitcode is : 1

  To run the test:
  > set CORE_ROOT=D:\j\workspace\x64_release_w---21e2e994\bin\tests\Windows_NT.x64.Release\Tests\Core_Root
  > D:\j\workspace\x64_release_w---21e2e994\bin\tests\Windows_NT.x64.Release\Interop\COM\NativeClients\Licensing\Licensing.cmd

        Expected: True
        Actual:   False
        Stack Trace:
          D:\j\workspace\x64_release_w---21e2e994\bin\tests\Windows_NT.x64.Release\TestWrappers\Interop.COM\Interop.COM.XUnitWrapper.cs(251,0): at Interop_COM._NativeClients_Licensing_Licensing_._NativeClients_Licensing_Licensing_cmd()
BruceForstall commented 5 years ago

@AaronRobinsonMSFT @jkoritzinsky ? Fails in the IL round-trip test. (I didn't look if it fails elsewhere.)

jkoritzinsky commented 5 years ago

The COM tests need to be disabled on the IL Round-Trip tests since they need the manifest embedded and CoreCLR ilasm can't embed resources. We must have missed it when reviewing.

I'll try to get this fixed today.

jkoritzinsky commented 5 years ago

After more investigation, I realized this is the opposite direction (native activating managed) so the IL Round-Trip test shouldn't be disabled.

It also looks like these tests have been failing in the ILRT scenario on CI for a while (test runs are available going back the last 20 days and the native-clients have been failing in all of the available ILRT runs).

jkoritzinsky commented 5 years ago

I also can't repro these test failures locally.