From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.92.22.94]) by mx.groups.io with SMTP id smtpd.web08.1721.1625684099291479402 for ; Wed, 07 Jul 2021 11:54:59 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=Ng5Bq9gJ; spf=pass (domain: outlook.com, ip: 40.92.22.94, mailfrom: spbrogan@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E/zRBKE1lwxM8yVURz4MdafGpmIuBZ7W4kVuUc2V8NEU7PmqtclAlkxekK6E9gB/D+vrI/8CLoC32LlHGQ2Iss1Q3cr+cFgEALmdNxUX6sQcjaOKaNkhVIPaEcH/Xex7CMYOKdJc4DarVveaT5Vvqzlyy1KQ+R2xNeoxnj26f6ThOTqcv1pD+aIVF6XEfN2kSqaEFXt0kAemo/P2kfUASQ3gs74VlU/+3ajJIwfLEcOdnrdMp5+Of1+LMqeQ0eyGSxLsU3+l8xTUqpMKbyKk+UXxO2dNmzZhflLRz50hJuKXSR6i18HGNb2aggVZi2Ry/wkaeafDppPqwJB9ZDWnTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9cgKrCtKv3UHnEJvwaI7un4FhGJThaZ//OTKuUCC4/0=; b=AVbCoJOGVnB2rDF33W0TqY08Y0yuDhSe7rA1xFHNtxJPJYGFTnZHuG6kYkalIUmIj9GBfiqz1c/rWiMTcmXVggKLuyIicE1KHQn5zHmFN7zQj0bu3gjpzbV6ncdrCLhCBlr9xCsXNNuf3501W+Zmi1ele5itn2+TVPfnSbj65MUWd7ApNIlX1j3yW8voQUsH5vvEXgTeZjdlQLiovLtPMH8VB/JMlLcNH4uRVx2nOIN7MLpWp/8KATmwU4y2uRGHF9bbmkG3YaY9W+nbEizGEkWhp/dRJEmvtxbeq3Zw80Ki3bcncl5gr/ypIrC8a+b52+2isudGdHbsYofHWHHIsw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9cgKrCtKv3UHnEJvwaI7un4FhGJThaZ//OTKuUCC4/0=; b=Ng5Bq9gJuXeORMLZe6WAkFVUwiGf9VM896ttmOIO7N24NXcI0pqOGys3t+2c0kjsVglkEwawCunN4jqePn1g6443ftD8KA1AJNe6whZnwyzYrSReQg30MCcfR/Uqzc6f+C9au8wXTp5S4No7kXDr6tIqlT9aU1DY7xeb7uA2ZxH3PBdI1LB0Hj7DdQOF04rIpOAIHBZ6fiMpjaiSeZHTj0+xw2mNcTlKuN/+g614Pj0anbhjIaqpuH9bpPWB9P8RlynAN2NrsOv3SW+f30tw7RBt3VDSz1q5dEEM8QAmS91oSLJILyIKsv0zcbtOC9TupSlPwp96uhuUBeosK6qYfQ== Received: from MW2NAM12FT045.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc65::44) by MW2NAM12HT128.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc65::332) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.13; Wed, 7 Jul 2021 18:54:57 +0000 Received: from BY3PR19MB4900.namprd19.prod.outlook.com (2a01:111:e400:fc65::40) by MW2NAM12FT045.mail.protection.outlook.com (2a01:111:e400:fc65::268) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.8 via Frontend Transport; Wed, 7 Jul 2021 18:54:57 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:73F3556420C66AF37C9332D283C5737D45D4C1A903C7654158407CCA24F7DADE;UpperCasedChecksum:51F095E54E77A423B6331730D6FCE894ADE7A014EA4627714A254CA3CCF5631B;SizeAsReceived:8727;Count:47 Received: from BY3PR19MB4900.namprd19.prod.outlook.com ([fe80::ace7:1da0:cc6e:c52]) by BY3PR19MB4900.namprd19.prod.outlook.com ([fe80::ace7:1da0:cc6e:c52%6]) with mapi id 15.20.4287.033; Wed, 7 Jul 2021 18:54:57 +0000 Subject: Re: [EXTERNAL] Re: [edk2-devel] Do the edk2 CI unit tests work in Linux? To: devel@edk2.groups.io, steven.shi@intel.com, Rebecca Cran , Bret Barkelew , "rebecca@nuviainc.com" References: <1493b987-b1ed-cb10-8049-107ba1b6f3b0@nuviainc.com> <18761d7c-2069-93e2-b444-1ada9e0a8966@nuviainc.com> <1350abe8-83ba-3b4e-6b8d-8f872c73347d@bsdio.com> From: "Sean" Message-ID: Date: Wed, 7 Jul 2021 11:54:55 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: X-TMN: [0PaBBv5iO/n46/0ltOP7Z3VdpI0gW04B] X-ClientProxiedBy: MW4PR03CA0020.namprd03.prod.outlook.com (2603:10b6:303:8f::25) To BY3PR19MB4900.namprd19.prod.outlook.com (2603:10b6:a03:354::11) Return-Path: spbrogan@outlook.com X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.2.78] (50.47.113.221) by MW4PR03CA0020.namprd03.prod.outlook.com (2603:10b6:303:8f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.21 via Frontend Transport; Wed, 7 Jul 2021 18:54:56 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: de3ea2b4-e505-4107-2b2a-08d94178b6f8 X-MS-TrafficTypeDiagnostic: MW2NAM12HT128: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0+Bg/IJnUK0dthcIOaqLbA5Qj7FAooJkBBT2e/PEGtBvRC73DuZ4CMkdSojrSd17aUKkJq42hQn6TWWlbDBFKYzzo8xlPfGBkKeCrEf4mzVZ7k68WPrQghCyIq+dKzPTvomSVtPV/ain8iZyFBUaaPSkbrPlu8VDXLm/K7CPv03M7PTwNxa+IMpLnlsHmOLZkBxHpQGnsrmvYHucOhvosVysR8zC4ghRiUNcziSYnfYhk68E+SQQULC8qRVZbHhyywQ97U8SC5jX8WpLnq/dA17LgbP3PwStTY+O9m11Q9/jbSzmAQ9oiqUComn8sAr0/bfcWKFlAKcmbS1WYJCE2f9qql2AlYEZMAXb4un7b/TIZjqeTNcIV+4T2Olamg1rbugKPBxw13NMz3SRgMncg5x/y2ZAX1KdPXAH9NirubYTl6E4P7Ge47NJnz2Kd3QDujEtS7HfsAdyPYRRIEc6quNq8VGK4zyMD09fSOOxyI0= X-MS-Exchange-AntiSpam-MessageData: TnpsWMmoN6nKcNrQzW2ZMdLjT8rUyu5wb7Vm/+qwUH9VovkSQwEwhgyC/t6d0Il1FV2zcbSAR0fTPFdYMvMyj/ys3cGO+EwsRN8uTqSYAEGbgvm91Kgy3vKJ1qZReWjy70mm35x56I4GmviYYsb6tA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: de3ea2b4-e505-4107-2b2a-08d94178b6f8 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2021 18:54:57.6271 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: MW2NAM12FT045.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2NAM12HT128 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Steven, Yes, Pytools is cross platform and is used regularly on Linux. Generally mono has been the problem on Linux. Ideally we could move to a native Linux package manager to make this have fewer dependencies but for now can you try following the directions here on getting mono setup. https://github.com/tianocore/edk2-pytool-extensions/blob/master/docs/usability/using_extdep.md#a-note-on-nuget-on-linux That said I have not heard of users using nuget proxy features so that could be an untested path. Definitely want to help get this resolved for you. Thanks Sean On 7/2/2021 12:23 AM, Steven Shi wrote: > Bret, > For my failure of "Unable to load the service index for source...", I see it might be the Nuget proxy setting issue: https://stackoverflow.com/questions/41185443/nuget-connection-attempt-failed-unable-to-load-the-service-index-for-source. I tried to set the Nuget https_proxy and http_proxy as below, but it still does not work. Do you know how to set the Nuget Proxy in Pytool? > > (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ mono /home/jshi19/wksp_efi/unit_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe config -set https_proxy=http://xxx:xxxx@xxxx.intel.com:xxx > (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ mono /home/jshi19/wksp_efi/unit_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe config -set http_proxy=http://xxx:xxxx@xxxx.intel.com:xxx > (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ mono /home/jshi19/wksp_efi/unit_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe install edk2-acpica-iasl -Source https://pkgs.dev.azure.com/projectmu/acpica/_packaging/mu_iasl/nuget/v3/index.json -ExcludeVersion -NonInteractive -Version 20200717.0.0 -Verbosity detailed -OutputDirectory "/home/jshi19/wksp_efi/edk2-2/BaseTools/Bin/edk2-acpica-iasl_extdep_temp" > NuGet Version: 5.3.1.6268 > Feeds used: > https://pkgs.dev.azure.com/projectmu/acpica/_packaging/mu_iasl/nuget/v3/index.json > Attempting to gather dependency information for package 'edk2-acpica-iasl.20200717.0.0' with respect to project '/home/jshi19/wksp_efi/edk2-2/BaseTools/Bin/edk2-acpica-iasl_extdep_temp', targeting 'Any,Version=v0.0' > Unable to load the service index for source https://pkgs.dev.azure.com/projectmu/acpica/_packaging/mu_iasl/nuget/v3/index.json. > GSSAPI operation failed with error - Unspecified GSS failure. Minor code may provide more information (SPNEGO cannot find mechanisms to negotiate). > System.InvalidOperationException: Unable to load the service index for source https://pkgs.dev.azure.com/projectmu/acpica/_packaging/mu_iasl/nuget/v3/index.json. ---> NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://pkgs.dev.azure.com/projectmu/acpica/_packaging/mu_iasl/nuget/v3/index.json. ---> System.ComponentModel.Win32Exception: GSSAPI operation failed with error - Unspecified GSS failure. Minor code may provide more information (SPNEGO cannot find mechanisms to negotiate). > at System.Net.NTAuthentication.GetOutgoingBlob (System.Byte[] incomingBlob, System.Boolean throwOnError, System.Net.SecurityStatusPal& statusCode) [0x00258] in :0 > at System.Net.NTAuthentication.GetOutgoingBlob (System.String incomingBlob) [0x00045] in :0 > > Thanks > > Steven Shi > Intel\IAGS\SFP\FIA (Firmware Infrastructure Automation) > > > From: devel@edk2.groups.io On Behalf Of Steven Shi > Sent: Friday, July 2, 2021 10:44 AM > To: Rebecca Cran ; devel@edk2.groups.io; Bret Barkelew ; rebecca@nuviainc.com > Subject: Re: [EXTERNAL] Re: [edk2-devel] Do the edk2 CI unit tests work in Linux? > > Thank you to Rebecca. After install the libmono-system-net-http4.0-cil and mono-devel pkg as below, the 'mono /home/jshi19/wksp_efi/unit_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe locals global-packages -list' pass. > (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ sudo apt-get install libmono-system-net-http4.0-cil > (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ sudo apt-get install mono-devel > > But now there are new failures show up when install edk2-acpica-iasl: > (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ stuart_update -c .pytool/CISettings.py TOOL_CHAIN_TAG=GCC5 -v > ... ... > INFO - Cmd to run is: mono /home/jshi19/wksp_efi/unit_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe locals global-packages -list > INFO - Cmd to run is: mono /home/jshi19/wksp_efi/unit_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe locals global-packages -list > INFO - ------------------------------------------------ > INFO - ------------------------------------------------ > INFO - --------------Cmd Output Starting--------------- > INFO - --------------Cmd Output Starting--------------- > INFO - ------------------------------------------------ > INFO - ------------------------------------------------ > ...INFO - global-packages: /home/jshi19/.nuget/packages/ > INFO - global-packages: /home/jshi19/.nuget/packages/ > INFO - ------------------------------------------------ > INFO - --------------Cmd Output Finished--------------- > INFO - ------------------------------------------------ > INFO - --------- Running Time (mm:ss): 00:00 ---------- > INFO - --------------Cmd Output Finished--------------- > INFO - ----------- Return Code: 0x00000000 ------------ > INFO - --------- Running Time (mm:ss): 00:00 ---------- > INFO - ------------------------------------------------ > INFO - ----------- Return Code: 0x00000000 ------------ > INFO - Could not determine Nuget global packages cache location. > INFO - ------------------------------------------------ > INFO - Cmd to run is: mono /home/jshi19/wksp_efi/unit_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe install edk2-acpica-iasl -Source https://pkgs.dev.azure.com/projectmu/acpica/_packaging/mu_iasl/nuget/v3/index.json -ExcludeVersion -NonInteractive -Version 20200717.0.0 -Verbosity detailed -OutputDirectory "/home/jshi19/wksp_efi/edk2-2/BaseTools/Bin/edk2-acpica-iasl_extdep_temp" > INFO - Could not determine Nuget global packages cache location. > INFO - ------------------------------------------------ > INFO - --------------Cmd Output Starting--------------- > INFO - Cmd to run is: mono /home/jshi19/wksp_efi/unit_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe install mu_nasm -Source https://api.nuget.org/v3/index.json -ExcludeVersion -NonInteractive -Version 2.15.05 -Verbosity detailed -OutputDirectory "/home/jshi19/wksp_efi/edk2-2/BaseTools/Bin/mu_nasm_extdep_temp" > INFO - ------------------------------------------------ > INFO - ------------------------------------------------ > INFO - --------------Cmd Output Starting--------------- > INFO - ------------------------------------------------ > INFO - NuGet Version: 5.3.1.6268 > INFO - NuGet Version: 5.3.1.6268 > INFO - Feeds used: > INFO - https://api.nuget.org/v3/index.json > INFO - > INFO - > INFO - > INFO - Feeds used: > INFO - https://pkgs.dev.azure.com/projectmu/acpica/_packaging/mu_iasl/nuget/v3/index.json > INFO - > INFO - Attempting to gather dependency information for package 'mu_nasm.2.15.5' with respect to project '/home/jshi19/wksp_efi/edk2-2/BaseTools/Bin/mu_nasm_extdep_temp', targeting 'Any,Version=v0.0' > INFO - > INFO - > INFO - Attempting to gather dependency information for package 'edk2-acpica-iasl.20200717.0.0' with respect to project '/home/jshi19/wksp_efi/edk2-2/BaseTools/Bin/edk2-acpica-iasl_extdep_temp', targeting 'Any,Version=v0.0' > INFO - Unable to load the service index for source https://pkgs.dev.azure.com/projectmu/acpica/_packaging/mu_iasl/nuget/v3/index.json. > INFO - GSSAPI operation failed with error - An invalid name was supplied (Configuration file does not specify default realm). > INFO - System.InvalidOperationException: Unable to load the service index for source https://pkgs.dev.azure.com/projectmu/acpica/_packaging/mu_iasl/nuget/v3/index.json. ---> NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://pkgs.dev.azure.com/projectmu/acpica/_packaging/mu_iasl/nuget/v3/index.json. ---> System.ComponentModel.Win32Exception: GSSAPI operation failed with error - An invalid name was supplied (Configuration file does not specify default realm). > INFO - at System.Net.Security.NegotiateStreamPal.AcquireCredentialsHandle (System.String package, System.Boolean isServer, System.Net.NetworkCredential credential) [0x000a3] in :0 > ... ... > > Thanks > > Steven Shi > Intel\IAGS\SFP\FIA (Firmware Infrastructure Automation) > > > From: Rebecca Cran > > Sent: Friday, July 2, 2021 10:00 AM > To: devel@edk2.groups.io; Shi, Steven >; Bret Barkelew >; rebecca@nuviainc.com > Subject: Re: [EXTERNAL] Re: [edk2-devel] Do the edk2 CI unit tests work in Linux? > > > That means you need to install the various mono assemblies, such as the libmono-system-net-http4.0-cil package in Ubuntu. > > I spent some time chasing down the dependencies last year which got very frustrating and tedious, but have forgotten which were needed. All I remember is there were quite a lot. > > > > -- > Rebecca Cran > > > On 7/1/21 7:36 PM, Steven Shi wrote: > I already installed mono, but NuGet.exe still fails to work in my side. I'm behind a proxy but don't know how to configure the NuGet.exe proxy in .pytool. Below is my verbose error message. > > (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ stuart_update -c .pytool/CISettings.py TOOL_CHAIN_TAG=GCC5 -v > ... ... > SECTION - Start Invocable Tool > SECTION - Initial update of environment > DEBUG - --- self_describing_environment.update_extdeps() > DEBUG - Verify 'mu_nasm' returning 'False'. > DEBUG - Verify 'edk2-acpica-iasl' returning 'False'. > DEBUG - Creating 5 threads for the SDE update > UpdatingDEBUG - Verify 'gcc_aarch64_linux' returning 'True'. > DEBUG - Verify 'gcc_riscv64_unknown' returning 'True'. > DEBUG - Verify 'mu_nasm' returning 'False'. > DEBUG - Verify 'gcc_arm_linux' returning 'True'. > DEBUG - Verify 'edk2-acpica-iasl' returning 'False'. > DEBUG - Cleaning dependency directory for 'mu_nasm'... > DEBUG - Cleaning dependency directory for 'edk2-acpica-iasl'... > INFO - Cmd to run is: mono /home/jshi19/wksp_efi/unit_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe locals global-packages -list > INFO - Cmd to run is: mono /home/jshi19/wksp_efi/unit_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe locals global-packages -list > INFO - ------------------------------------------------ > INFO - ------------------------------------------------ > INFO - --------------Cmd Output Starting--------------- > INFO - --------------Cmd Output Starting--------------- > INFO - ------------------------------------------------ > INFO - ------------------------------------------------ > ...INFO - Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > INFO - Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > INFO - Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > INFO - Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > INFO - Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > INFO - System.AggregateException: One or more errors occurred. (Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.) (Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.) (Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.) (Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.) (Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.) ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > INFO - --- End of inner exception stack trace --- > ... ... > > > If I run the Cmd manually, I get below error: > (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ mono /home/jshi19/wksp_efi/unit_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe locals global-packages -list > Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > System.AggregateException: One or more errors occurred. (Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.) (Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.) (Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.) (Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.) (Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.) ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > --- End of inner exception stack trace --- > at NuGet.CommandLine.Program.Initialize (NuGet.IFileSystem fileSystem, NuGet.CommandLine.IConsole console) [0x000ce] in :0 > at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, System.String[] args) [0x000d8] in :0 > ---> (Inner Exception #0) System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > File name: 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'<--- > > ---> (Inner Exception #1) System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > File name: 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'<--- > > ---> (Inner Exception #2) System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > File name: 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'<--- > > ---> (Inner Exception #3) System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > File name: 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'<--- > > ---> (Inner Exception #4) System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > File name: 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'<--- > > > Thanks > > Steven Shi > > > From: Bret Barkelew > Sent: Friday, July 2, 2021 9:04 AM > To: Shi, Steven ; devel@edk2.groups.io; rebecca@nuviainc.com > Subject: RE: [EXTERNAL] Re: [edk2-devel] Do the edk2 CI unit tests work in Linux? > > I believe the Azure DevOps build agents that are used by the EDK2 CI pipeline already have mono installed. > > - Bret > > From: Shi, Steven > Sent: Thursday, July 1, 2021 5:54 PM > To: devel@edk2.groups.io; Bret Barkelew; rebecca@nuviainc.com > Subject: RE: [EXTERNAL] Re: [edk2-devel] Do the edk2 CI unit tests work in Linux? > > Hi Bret, Rebecca, > Thanks for the info. Does edk2 CI run the .pytool unit tests in Linux? If yes, how does edk2 CI solve the nuget dependency problem in Linux right now? > > > Thanks > > Steven Shi > > > From: devel@edk2.groups.io > On Behalf Of Bret Barkelew via groups.io > Sent: Wednesday, June 30, 2021 1:02 AM > To: devel@edk2.groups.io; rebecca@nuviainc.com; Shi, Steven > > Subject: Re: [EXTERNAL] Re: [edk2-devel] Do the edk2 CI unit tests work in Linux? > > Hmmm. If that works well, we might be able to investigate carrying both and picking based on the host OS. > > - Bret > > From: devel@edk2.groups.io > on behalf of Rebecca Cran via groups.io > > Sent: Tuesday, June 29, 2021 9:42:41 AM > To: devel@edk2.groups.io >; steven.shi@intel.com > > Subject: [EXTERNAL] Re: [edk2-devel] Do the edk2 CI unit tests work in Linux? > > > Your Linux distribution should have a nuget package available (e.g. https://packages.ubuntu.com/hirsute/nuget) but the EDK2 CI is designed to use the copy of nuget installed with the edk2toolext package. > > > > -- > Rebecca Cran > > > On 6/29/21 9:44 AM, Steven Shi wrote: > > Cran, Thanks. I'm curious whether the .pytool has native Linux executable binary to run? It looks the edk2 CI framework has more dependency in Linux than Windows. > > > > > > Thanks > > > > Steven Shi > > Intel\IAGS\SFP\FIA (Firmware Infrastructure Automation) > > > > > > From: devel@edk2.groups.io On Behalf Of Rebecca Cran > Sent: Tuesday, June 29, 2021 8:13 PM > To: devel@edk2.groups.io; Shi, Steven > Subject: Re: [edk2-devel] Do the edk2 CI unit tests work in Linux? > > > > NuGet.exe is a .NET assembly/executable, so on Linux you'll need to install Mono (https://www.mono-project.com/). > > > > -- > > Rebecca Cran > > > > > > On 6/28/21 7:45 PM, Steven Shi wrote: > > Hello, > > I'm interested in the edk2 CI unit tests(https://github.com/tianocore/edk2/tree/master/.pytool). I tested it in my local. It works well in Windows but does not work in Linux. It looks the NuGet in pytool only has windows version (C:\steven\unit_test_env\Lib\site-packages\edk2toolext\bin\NuGet.exe) but not support the Linux. Below is my detail test steps. Do the edk2 CI unit tests work in Linux? > > > > 1. Windows : > > c:\steven>py -m venv unit_test_env > > c:\steven>cd c:\steven\edk2 > > c:\steven\edk2>c:\steven\unit_test_env\Scripts\activate.bat > > (unit_test_env) c:\steven\edk2>pip install --upgrade -r pip-requirements.txt > > (unit_test_env) c:\steven\edk2>stuart_setup -c .pytool/CISettings.py TOOL_CHAIN_TAG=VS2019 > > (unit_test_env) c:\steven\edk2>stuart_update -c .pytool/CISettings.py TOOL_CHAIN_TAG=VS2019 > > (unit_test_env) c:\steven\edk2>edksetup.bat > > (unit_test_env) c:\steven\edk2>edksetup.bat Rebuild > > (unit_test_env) c:\steven\edk2>stuart_ci_build -c .pytool/CISettings.py TOOL_CHAIN_TAG=VS2019 -a X64,IA32 -t DEBUG --verbose > > ... > > PROGRESS - Overall Build Status: Success > > SECTION - Summary > > PROGRESS - Success > > > > 1. Linux: > > jshi19@ub2-uefi-b01:~/wksp_efi$ python3 -m venv unit_test_env > > jshi19@ub2-uefi-b01:~/wksp_efi$ source unit_test_env/bin/activate > > (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ pip install --upgrade -r pip-requirements.txt > > (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ make -C BaseTools/ > > (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ stuart_setup -c .pytool/CISettings.py TOOL_CHAIN_TAG=GCC5 > > (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ stuart_update -c .pytool/CISettings.py TOOL_CHAIN_TAG=GCC5 > > SECTION - Init SDE > > WARNING - Using Pip Tools based BaseTools > > SECTION - Loading Plugins > > SECTION - Start Invocable Tool > > SECTION - Initial update of environment > > UpdatingWARNING - [SDE] Failed to fetch NugetDependecy: edk2-acpica-iasl@20200717.0.0: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl > > WARNING - [SDE] Failed to fetch NugetDependecy: mu_nasm@2.15.05: [Nuget] We failed to install this version 2.15.05 of mu_nasm > > . Done > > SECTION - Updated/Verified 3 dependencies > > SECTION - Second pass update of environment > > UpdatingWARNING - [SDE] Failed to fetch NugetDependecy: edk2-acpica-iasl@20200717.0.0: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl > > WARNING - [SDE] Failed to fetch NugetDependecy: mu_nasm@2.15.05: [Nuget] We failed to install this version 2.15.05 of mu_nasm > > . Done > > SECTION - Updated/Verified 3 dependencies > > ERROR - We were unable to successfully update 2 dependencies in environment > > SECTION - Summary > > ERROR - Error > > > > > > > > > > Thanks > > > > Steven Shi > > > > > > > > > > > > > > > > > >