From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web09.4674.1625193847340374182 for ; Thu, 01 Jul 2021 19:44:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=J70gJvbg; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: steven.shi@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10032"; a="205655698" X-IronPort-AV: E=Sophos;i="5.83,316,1616482800"; d="png'150?scan'150,208,217,150";a="205655698" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2021 19:44:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,316,1616482800"; d="png'150?scan'150,208,217,150";a="559614058" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga001.fm.intel.com with ESMTP; 01 Jul 2021 19:44:05 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 1 Jul 2021 19:44:04 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 1 Jul 2021 19:44:03 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Thu, 1 Jul 2021 19:44:03 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.107) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Thu, 1 Jul 2021 19:44:03 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KK8Z164xr0NefyVy1ZaXewQ+OuEsJ5F/oSBhhOZf7OFua36Lo1O48MgDjwz1Gck8ETkSG9RKXXSGhMsb/5o8To9/E7o9r3WWxsiO3QHtvJKcYaXU27i568tc8PZOjEehy9eAEht//gdak+ACoY0vjII5V6j1xSu1bve+DeZj1GqugC52wnYPw+lVurqCxQbCYURmtz0zuk2kfOnXLuRDXgqlGbgepR0epaWyrmJbXWck6UbTPQqjqpSV+IaDGAn3ASXz1hGakB47zF3IjKnAb/shQuaQM/pX0T4SXGLwxcEz3Lu9SkJ5t/RGHdfIFCTd3hOdE+8YN1GanDnONc4pAQ== 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=fJEdcd4fudguBkVlNbYf5Hpb6QMdZnI/ElMoWG49qSE=; b=nIoJLmOhtcE52Tj0oX8ab1t2trPndr0xraJOlQGHvKapv7wK4cOTRchI+ZZEaiADL3y+8fiTdbdAJRz9C3wvNL/K4pY2jt5QFVA/gzBrwLfiMlI9w/oI7nk8RV+PZgX5rKA3KzLkmN3TTQvRFuo3+ZrCJZRGPbP6mqGmKSk12a8cVET2cPNRumyJbOK7Ntcbl7gLsKyPcGcxMIQsfjl3Fl4tF6s6p60fXUXoiC2oh8WxBPgYHqeLbOPJPppTQkGKEVUEQV/ZA/qH9G1OhJG9SHBkSh4IiBN6Gwz9FrqGSt5ClVpNXdp06H89KDcKJ4odgIaPH+whhtAQLqM4fKZV1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fJEdcd4fudguBkVlNbYf5Hpb6QMdZnI/ElMoWG49qSE=; b=J70gJvbgu8xPQ60YRQS6DU96N/bXjeizUXJZtin4TlduWv7eIQ/YQxULjWX56bkFQECBh5OAuZ6MyetJz0T8VOdvTAcGkPHEOPEjyuS0yWF19VDQZUkaKZZkA+vxZgscvemkGC+QBu4BK8EdLC6wIJ3ODf6WYAuCjxZPHhieO/M= Received: from DM4PR11MB5549.namprd11.prod.outlook.com (2603:10b6:5:388::7) by DM5PR11MB1866.namprd11.prod.outlook.com (2603:10b6:3:10a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.23; Fri, 2 Jul 2021 02:43:59 +0000 Received: from DM4PR11MB5549.namprd11.prod.outlook.com ([fe80::d4bb:d75e:3801:1b2d]) by DM4PR11MB5549.namprd11.prod.outlook.com ([fe80::d4bb:d75e:3801:1b2d%6]) with mapi id 15.20.4287.027; Fri, 2 Jul 2021 02:43:59 +0000 From: "Steven Shi" 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? Thread-Topic: [EXTERNAL] Re: [edk2-devel] Do the edk2 CI unit tests work in Linux? Thread-Index: Addsh/lWzUAlUAcaQu2uOb3cnLs5EgAWBDaAAAcGFCAAAmkagAAArvCAAHTqBaAAAH15AAAAxSMwAAExVQAAATCF8A== Date: Fri, 2 Jul 2021 02:43:59 +0000 Message-ID: References: <1493b987-b1ed-cb10-8049-107ba1b6f3b0@nuviainc.com> <18761d7c-2069-93e2-b444-1ada9e0a8966@nuviainc.com> <1350abe8-83ba-3b4e-6b8d-8f872c73347d@bsdio.com> In-Reply-To: <1350abe8-83ba-3b4e-6b8d-8f872c73347d@bsdio.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: bsdio.com; dkim=none (message not signed) header.d=none;bsdio.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.142.22] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f8f679c9-93eb-47b8-3937-08d93d033eb5 x-ms-traffictypediagnostic: DM5PR11MB1866: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OWwToDLBB4kR00J07Pbwb6YvKrgptvFyPXz9pVp7RYzVbTutb/i41Fro83H/VKhBCYVroEyp76rLkC7n/3s74oPPOTQKaI+bKuSvoFwKxD6P5F+NvJ6Nyhh3nTxW39wbO6KKJXfFikFvseT/LrqnLXgD3f8sP05A6nDV1yfqqL4T4QrkmrcJiYNVyIF0fLzQS7wzULKP76qd3CbYY9u3xgDHMKm4GU1Idr3d7yPhkdCIxFRxe7OsAzYB1A9QB+QGoJXbro3+oQSFPwsiqxz9RKCgOXvf6pKUmYNs6BZ4UCVbOZOyagoZft0Z3LlD8zRkc6DHrIbwlIYLYhBQGmvzYymIMky6I2C/Vg+vllzpOP4FwxHrzkg1ngnMpQRreP+1Qp+88e2IRTcl+opDwSI54mKKYSuRZzjglpWD3etap4nJvIFhjp1hqjWv0//HdxO3PzAfYWOZS4EgisUdv5FSoULPqg2zHw93zE/462OylX7nqYDrcYIKObkwtaPcQmFpl4te8Vk4otSIODJOlJOm+iXuzWJQHes3lbbQj+rXIaAF/WzyEn2Kofb8R/JRmQX2OxP6BEtLzN/Li75YWzPFb+MFYgBMNRoqpLmdjul38yFLubdpLehlGtDmU5LsXRUjxfKxw1HYSzQnyX1q3XomS0K8q9JRTQWJCtVj107hVNoDc6EtFkBnGPSZ3dGoLFd8Jxv6MyJOS4+pivQk9iI59YjtZcw+XLZ2VD3dfYChhkZ9AQHD2d6ynuUTM4vFP3vOSpeZzKR51l0kW26vXNY+bG1VBHlCKUgyPqRJbc9nO+5JJ3jzm3O2CphiRhYKK4mz/whSmMsTaZ6ah8Cr05l/RrX/9yEy4NbxhaSxutzVbmY8N+8Xt34yTFRi8XGcLKBpDb6RrOoPaEoNyJQwh9iJUg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5549.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(376002)(396003)(366004)(346002)(39860400002)(136003)(83380400001)(166002)(71200400001)(99936003)(45080400002)(30864003)(966005)(52536014)(26005)(6506007)(8936002)(76236003)(186003)(478600001)(53546011)(55016002)(9686003)(7696005)(76116006)(86362001)(316002)(2906002)(110136005)(33656002)(66946007)(5660300002)(38100700002)(66556008)(8676002)(66476007)(66446008)(66616009)(64756008)(122000001)(460985005)(2480315003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?b5RuwhRMhrFR0VQyhj0zbhzyynmejb3GfGVUXwONtyEIimZ9AsMTZq6GSJG3?= =?us-ascii?Q?8470B82fIb0VdrxQ5lNUTMyhAKDPX9FVBwthwG8jpoKWQmbZNx883D46+ypt?= =?us-ascii?Q?ydBhgKiaCXjFc8tA5pznxqPX+m6GEMmliDJ1ne8QUbB4DEmVM86beDDN/ndE?= =?us-ascii?Q?LRc+9D4pUZErCAj6ILEbVeM/3LcGv1p/npK/lCZ201V8IwAXNqHWJhJgW5/K?= =?us-ascii?Q?dqCPEDP2d/sQmd331BKrwlgwAnRcjdF1IP7Ac1s0vYYZc67PSu05Uq2cGaDA?= =?us-ascii?Q?TWyTT1fKmlfEgdc8gjJ5px8pDOAsvCQuWjB3mIzHnbUyZ03NhUjRGb4ItqgQ?= =?us-ascii?Q?ICSqDPKeT/X6Uyj2FxeDyaWRSyZqVSYeOTlksAig1c3mVvWlAH8H0/VRLPDU?= =?us-ascii?Q?0oSMSMfwA2PZYfhsIGQOCIQn3nBQF8xI5+YiFMM+E+Up/zFLXmvyJmDV3h67?= =?us-ascii?Q?9n+yaFlJqNAQ+xdCnpmjuVb845eSGaauZwPDMKoc8L41vEswuyj6Wr0kjkgx?= =?us-ascii?Q?yHmUmoVcciD91GblD++gpEkC/fxXj/DAmknqSnG7EI4rousqAi0cB3LbPxbX?= =?us-ascii?Q?KIJzMrGL0iMZjwjprvaW8g9d3fet9xBV+3y+BeNs+KiS75LboWlcn3ZsC7aW?= =?us-ascii?Q?zYRTJMyCdiQX/2XDd1iru4mAawx3guUIj65lisqcPa4Fi1GKi3hF1LMYH8pG?= =?us-ascii?Q?S7DKNMI52kLto5h11CRpsDSnYIdZaijUYh4RcPFQ1GAQMKuask15wxkc+bqw?= =?us-ascii?Q?9ootnn5GTofL6nOpSKDF2igFA9koal0ZWD82W4zhhZs0fYEuo70t0SY5XBp7?= =?us-ascii?Q?VUrF8eIHHwOiRyKqmYzYgCEYhRQMSYJxtjxgD6y+jD064n+4DQsnoUKa0kWe?= =?us-ascii?Q?PbyfDnTofLyP7An2Y7kzH5p9Ie9PjxRwyA4gTM87kKxr9ZIJf8jjO0XUQ1Ut?= =?us-ascii?Q?ZCpeFP8yj2dENpw4QnBYSz1DRQza4TmFIK8ZWz8olNwBOPyGGn/DhcayEwru?= =?us-ascii?Q?V8J/Ntwgl8jrc9ySVCCW8eOVmQPyHd/Mc7Wpz2rAzJEav+xRgU1BmXjWsKoj?= =?us-ascii?Q?riffqONnJSu/sV4WjH45dsgyzmt07kdDhc5vBSw/FMzhl8+CSrQcYAJYs7Pv?= =?us-ascii?Q?Jt948NQXq9RKzHjjypACvQwNgNioSbZP4KFTfTb+I4Te25NrDTUoNMcMLUSg?= =?us-ascii?Q?eaivJJZ8sxPjOPrfLIOqkvV85QD8vxLRXoBg/sVh/PXrQ/EerphjBgX7uvLh?= =?us-ascii?Q?GVihDf5RR8v6LwKtove4ZmJbcevCNIsw5FoNYq35qP/Q5LyqR30hy7OTmpz1?= =?us-ascii?Q?sEc1ibN2g+2MrTqh4vn5iE/q?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5549.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8f679c9-93eb-47b8-3937-08d93d033eb5 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2021 02:43:59.4562 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: chwzi1X9lcmIencfdQsVyAktXZOBedXNvx4LBJCzj/q8ndoiceyAwy9NQIlC1Q+7O66VRREO5yKVqBkr6i49FQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1866 Return-Path: steven.shi@intel.com X-OriginatorOrg: intel.com X-Groupsio-MsgNum: 77434 Content-Language: en-US Content-Type: multipart/related; boundary="_004_DM4PR11MB55490EFF4FC73FE1EDAEB8468C1F9DM4PR11MB5549namp_"; type="multipart/alternative" --_004_DM4PR11MB55490EFF4FC73FE1EDAEB8468C1F9DM4PR11MB5549namp_ Content-Type: multipart/alternative; boundary="_000_DM4PR11MB55490EFF4FC73FE1EDAEB8468C1F9DM4PR11MB5549namp_" --_000_DM4PR11MB55490EFF4FC73FE1EDAEB8468C1F9DM4PR11MB5549namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 -l= ist' pass. (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ sudo apt-get instal= l libmono-system-net-http4.0-cil (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ sudo apt-get instal= l 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 .p= ytool/CISettings.py TOOL_CHAIN_TAG=3DGCC5 -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/in= dex.json -ExcludeVersion -NonInteractive -Version 20200717.0.0 -Verbosity d= etailed -OutputDirectory "/home/jshi19/wksp_efi/edk2-2/BaseTools/Bin/edk2-a= cpica-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.0= 5 -Verbosity detailed -OutputDirectory "/home/jshi19/wksp_efi/edk2-2/BaseTo= ols/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/nu= get/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/m= u_nasm_extdep_temp', targeting 'Any,Version=3Dv0.0' INFO - INFO - INFO - Attempting to gather dependency information for package 'edk2-acpic= a-iasl.20200717.0.0' with respect to project '/home/jshi19/wksp_efi/edk2-2/= BaseTools/Bin/edk2-acpica-iasl_extdep_temp', targeting 'Any,Version=3Dv0.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/n= uget/v3/index.json. ---> NuGet.Protocol.Core.Types.FatalProtocolException: = Unable to load the service index for source https://pkgs.dev.azure.com/proj= ectmu/acpica/_packaging/mu_iasl/nuget/v3/index.json. ---> System.ComponentM= odel.Win32Exception: GSSAPI operation failed with error - An invalid name w= as supplied (Configuration file does not specify default realm). INFO - at System.Net.Security.NegotiateStreamPal.AcquireCredentialsHandl= e (System.String package, System.Boolean isServer, System.Net.NetworkCreden= tial 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 Barkele= w ; 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 li= bmono-system-net-http4.0-cil package in Ubuntu. I spent some time chasing down the dependencies last year which got very f= rustrating and tedious, but have forgotten which were needed. All I remembe= r 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 .py= tool. Below is my verbose error message. (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ stuart_update -c .p= ytool/CISettings.py TOOL_CHAIN_TAG=3DGCC5 -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=3D4.0.= 0.0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its de= pendencies. INFO - Could not load file or assembly 'System.Net.Http, Version=3D4.0.0= .0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dep= endencies. INFO - Could not load file or assembly 'System.Net.Http, Version=3D4.0.0= .0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dep= endencies. INFO - Could not load file or assembly 'System.Net.Http, Version=3D4.0.0= .0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dep= endencies. INFO - Could not load file or assembly 'System.Net.Http, Version=3D4.0.0= .0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dep= endencies. INFO - System.AggregateException: One or more errors occurred. (Could not = load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutra= l, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.) (Could n= ot load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneu= tral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.) (Coul= d not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3D= neutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.) (C= ould not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture= = =3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.= ) (Could not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Cul= ture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependenci= es.) ---> System.IO.FileNotFoundException: Could not load file or assembly = 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db0= 3f5f7f11d50a3a' 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/w= ksp_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=3D4.0.0.0, Cultu= re=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies= . Could not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Cul= ture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependenci= es. Could not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Cul= ture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependenci= es. Could not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Cul= ture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependenci= es. Could not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Cul= ture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependenci= es. System.AggregateException: One or more errors occurred. (Could not load fi= le or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, Publ= icKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.) (Could not load= file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, P= ublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.) (Could not l= oad file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral= , PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.) (Could no= t load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneut= ral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.) (Could= not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dn= eutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.) ---= > System.IO.FileNotFoundException: Could not load file or assembly 'System.= Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11= d50a3a' or one of its dependencies. --- End of inner exception stack trace --- at NuGet.CommandLine.Program.Initialize (NuGet.IFileSystem fileSystem, N= uGet.CommandLine.IConsole console) [0x000ce] in :0 at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, S= ystem.String[] args) [0x000d8] in :0 ---> (Inner Exception #0) System.IO.FileNotFoundException: Could not load = file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, Pu= blicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies. File name: 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, PublicK= eyToken=3Db03f5f7f11d50a3a'<--- ---> (Inner Exception #1) System.IO.FileNotFoundException: Could not load = file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, Pu= blicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies. File name: 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, PublicK= eyToken=3Db03f5f7f11d50a3a'<--- ---> (Inner Exception #2) System.IO.FileNotFoundException: Could not load = file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, Pu= blicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies. File name: 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, PublicK= eyToken=3Db03f5f7f11d50a3a'<--- ---> (Inner Exception #3) System.IO.FileNotFoundException: Could not load = file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, Pu= blicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies. File name: 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, PublicK= eyToken=3Db03f5f7f11d50a3a'<--- ---> (Inner Exception #4) System.IO.FileNotFoundException: Could not load = file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, Pu= blicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies. File name: 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, PublicK= eyToken=3Db03f5f7f11d50a3a'<--- 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 pipel= ine 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.co= m; 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 an= d picking based on the host OS. - Bret From: devel@edk2.groups.io > on behalf of Rebecca Cran via groups.io <= rebecca=3Dnuviainc.com@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 Lin= ux? 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 instal= l 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 no= t 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 s= upport 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.t= xt (unit_test_env) c:\steven\edk2>stuart_setup -c .pytool/CISettings.py TOOL_= CHAIN_TAG=3DVS2019 (unit_test_env) c:\steven\edk2>stuart_update -c .pytool/CISettings.py TOOL= _CHAIN_TAG=3DVS2019 (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 TO= OL_CHAIN_TAG=3DVS2019 -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 --upgra= de -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 .py= tool/CISettings.py TOOL_CHAIN_TAG=3DGCC5 (unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ stuart_update -c .p= ytool/CISettings.py TOOL_CHAIN_TAG=3DGCC5 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@2= 0200717.0.0: [Nuget] We failed to ins= tall 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@2= 0200717.0.0: [Nuget] We failed to ins= tall 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 environmen= t SECTION - Summary ERROR - Error Thanks Steven Shi --_000_DM4PR11MB55490EFF4FC73FE1EDAEB8468C1F9DM4PR11MB5549namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Thank you to Rebecca. After install the libmono-sys= tem-net-http4.0-cil and mono-devel pkg as below, the ‘mono /home/jshi= 19/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=3DGCC5 -v

… …

INFO - Cmd to run is: mono /home/jshi19/wksp_efi/un= it_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe locals gl= obal-packages -list

INFO - Cmd to run is: mono /home/jshi19/wksp_efi/un= it_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe locals gl= obal-packages -list

INFO - --------------------------------------------= ----

INFO - --------------------------------------------= ----

INFO - --------------Cmd Output Starting-----------= ----

INFO - --------------Cmd Output Starting-----------= ----

INFO - --------------------------------------------= ----

INFO - --------------------------------------------= ----

...INFO - global-packages: /home/jshi19/.nuget/pack= ages/

INFO - global-packages: /home/jshi19/.nuget/package= s/

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 ca= che location.

INFO - --------------------------------------------= ----

INFO - Cmd to run is: mono /home/jshi19/wksp_efi/un= it_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe install e= dk2-acpica-iasl -Source https://pkgs.dev.azure.com/projectmu/acpica/_packag= ing/mu_iasl/nuget/v3/index.json -ExcludeVersion -NonInteractive -Version 20200717.0.0 -Verbosity detailed -OutputDirector= y "/home/jshi19/wksp_efi/edk2-2/BaseTools/Bin/edk2-acpica-iasl_extdep_= temp"

INFO - Could not determine Nuget global packages ca= che location.

INFO - --------------------------------------------= ----

INFO - --------------Cmd Output Starting-----------= ----

INFO - Cmd to run is: mono /home/jshi19/wksp_efi/un= it_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe install m= u_nasm -Source https://api.nuget.org/v3/index.json -ExcludeVersion -NonInte= ractive -Version 2.15.05 -Verbosity detailed -OutputDirectory "/home/jshi19/wksp_efi/edk2-2/BaseTools/Bi= n/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.j= son

INFO -

INFO -

INFO -

INFO - Feeds used:

INFO -   https://pkgs.dev.azure.com/proje= ctmu/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=3Dv0.0'<= o:p>

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', targeti= ng 'Any,Version=3Dv0.0'

INFO - Unable to load the= service index for source https://pkgs.dev.azure.com/projectmu/acpica/_pack= aging/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/acpi= ca/_packaging/mu_iasl/nuget/v3/index.json. ---> NuGet.Protocol.Core.Type= s.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.Win32= Exception: GSSAPI operation failed with error - An invalid name was supplie= d (Configuration file does not specify default realm).

INFO -   at System.Net.Security.Negotiate= StreamPal.AcquireCredentialsHandle (System.String package, System.Boolean i= sServer, System.Net.NetworkCredential credential) [0x000a3] in <a85c1a57= 0f9a4f9f9c3d2cfa5504e34f>:0

… …

 

Thanks

 

Steven Shi

Intel\IAGS\SFP\FIA (Firmware Infrastructure Autom= ation)

 

 

From: Rebecca Cran <rebecca@bsdio.com>=
Sent: Friday, July 2, 2021 10:00 AM
To: devel@edk2.groups.io; Shi, Steven <steven.shi@intel.com>;= Bret Barkelew <Bret.Barkelew@microsoft.com>; 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-htt= p4.0-cil package in Ubuntu.

I spent some time c= hasing down the dependencies last year which got very frustrating and tedio= us, but have forgotten which were needed. All I remember is there were quit= e 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 c= onfigure 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=3DGCC5 -v

… …

SECTION - Start Invocable Tool

SECTION - Initial update of environment<= /p>

DEBUG - --- self_describing_environment.update_extd= eps()

DEBUG - Verify 'mu_nasm' returning 'False'.

DEBUG - Verify 'edk2-acpica-iasl' returning 'False'= .

DEBUG - Creating 5 threads for the SDE update<= /o:p>

UpdatingDEBUG - Verify 'gcc_aarch64_linux' returnin= g 'True'.

DEBUG - Verify 'gcc_riscv64_unknown' returning 'Tru= e'.

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-acp= ica-iasl'...

INFO - Cmd to run is: mono /home/jshi19/wksp_efi/un= it_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe locals gl= obal-packages -list

INFO - Cmd to run is: mono /home/jshi19/wksp_efi/un= it_test_env/lib/python3.8/site-packages/edk2toolext/bin/NuGet.exe locals gl= obal-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=3D4.0.0.0, Culture=3Dneutral, Pu= blicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.

INFO -   Could = not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dne= utral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.

INFO -   Could = not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dne= utral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.

INFO -   Could = not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dne= utral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.

INFO -   Could = not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dne= utral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.

INFO - System.AggregateException: One or more error= s occurred. (Could not load file or assembly 'System.Net.Http, Version=3D4.= 0.0.0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its = dependencies.) (Could not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, PublicKeyToken=3D= b03f5f7f11d50a3a' or one of its dependencies.) (Could not load file or asse= mbly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, PublicKeyToken= = =3Db03f5f7f11d50a3a' or one of its dependencies.) (Could not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Cul= ture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependenci= es.) (Could not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, = Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.) ---> System.IO.FileNotFoundException: Cou= ld not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture= =3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.=

INFO -    --- End of inner exception= stack trace ---

… …

 

 

If I run the Cmd manually, I get below error:<= /o:p>

(unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk2= -2$ mono /home/jshi19/wksp_efi/unit_test_env/lib/python3.8/site-packages/ed= k2toolext/bin/NuGet.exe locals global-packages -list

Could not load file or as= sembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, PublicKeyTok= en=3Db03f5f7f11d50a3a' or one of its dependencies.

  Could not load fil= e or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, Publi= cKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.=

  Could not load fil= e or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, Publi= cKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.=

  Could not load fil= e or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, Publi= cKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.=

  Could not load fil= e or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, Publi= cKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.=

System.AggregateException: One or more errors occur= red. (Could not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, = Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its depende= ncies.) (Could not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, PublicKeyToken=3D= b03f5f7f11d50a3a' or one of its dependencies.) (Could not load file or asse= mbly 'System.Net.Http, Version=3D4.0.0.0, Culture=3Dneutral, PublicKeyToken= = =3Db03f5f7f11d50a3a' or one of its dependencies.) (Could not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Cul= ture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependenci= es.) (Could not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, = Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.) ---> System.IO.FileNotFoundException: Cou= ld not load file or assembly 'System.Net.Http, Version=3D4.0.0.0, Culture= =3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its dependencies.=

   --- End of inner exception stack trace= ---

  at NuGet.CommandLine.Program.Initialize (NuG= et.IFileSystem fileSystem, NuGet.CommandLine.IConsole console) [0x000ce] in= <ff502667b3fe4a85827635c6fe6b0d0d>:0

  at NuGet.CommandLine.Program.MainCore (Syste= m.String workingDirectory, System.String[] args) [0x000d8] in <ff502667b= 3fe4a85827635c6fe6b0d0d>:0

---> (Inner Exception #0) System.IO.FileNotFound= Exception: Could not load file or assembly 'System.Net.Http, Version=3D4.0.= 0.0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its de= pendencies.

File name: 'System.Net.Http, Version=3D4.0.0.0, Cul= ture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a'<---

 

---> (Inner Exception #1) System.IO.FileNotFound= Exception: Could not load file or assembly 'System.Net.Http, Version=3D4.0.= 0.0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its de= pendencies.

File name: 'System.Net.Http, Version=3D4.0.0.0, Cul= ture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a'<---

 

---> (Inner Exception #2) System.IO.FileNotFound= Exception: Could not load file or assembly 'System.Net.Http, Version=3D4.0.= 0.0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its de= pendencies.

File name: 'System.Net.Http, Version=3D4.0.0.0, Cul= ture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a'<---

 

---> (Inner Exception #3) System.IO.FileNotFound= Exception: Could not load file or assembly 'System.Net.Http, Version=3D4.0.= 0.0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its de= pendencies.

File name: 'System.Net.Http, Version=3D4.0.0.0, Cul= ture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a'<---

 

---> (Inner Exception #4) System.IO.FileNotFound= Exception: Could not load file or assembly 'System.Net.Http, Version=3D4.0.= 0.0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' or one of its de= pendencies.

File name: 'System.Net.Http, Version=3D4.0.0.0, Cul= ture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a'<---

 

 

Thanks

 

Steven Shi

 

 

From: Bret Barkelew <Bret.Barkelew@microsoft.com>
Sent: Friday, July 2, 2021 9:04 AM
To: Shi, Steven <steven.= shi@intel.com>; 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 us= ed 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@nuviain= c.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 u= nit tests in Linux? If yes, how does edk2 CI solve the nuget dependency pro= blem in Linux right now?

 

 

Thanks

 

Steven Shi

 

 

From: devel@edk2.groups.io <deve= l@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 <steven.shi@intel.com>
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: deve= l@edk2.groups.io <devel@edk2.groups.io> on behalf of= Rebecca Cran via groups.io <rebecca=3Dnuviainc.com@groups.io>
Sent: Tuesday, June 29, 2021 9:42:41 AM
To: devel@edk2.groups.io <devel@edk2.groups.io>; stev= en.shi@intel.com <steven.shi@intel.com>
Subject: [EXTERNAL] Re: [edk2-devel] Do the edk2 CI unit tests work= in Linux?

 

Your Linux distribu= tion 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 .pytoo= l 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 Auto= mation)

 

 

From: devel@edk2.groups.io <devel@edk2.groups.io> <= b>On Behalf Of Rebecca Cran
Sent: Tuesday, June 29, 2021 8:13 PM
To: devel@edk2.groups.io; Shi, Steven <steven.shi@intel.com> Subject: Re: [edk2-devel] Do the edk2 CI unit tests work in Linux?<= o:p>

 

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 Li= nux. 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 L= inux. 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 --up= grade -r pip-requirements.txt

(unit_test_env) c:\steven\edk2>stuart_setup -c = .pytool/CISettings.py TOOL_CHAIN_TAG=3DVS2019

(unit_test_env) c:\steven\edk2>stuart_update -c= .pytool/CISettings.py TOOL_CHAIN_TAG=3DVS2019

(unit_test_env) c:\steven\edk2>edksetup.bat

(unit_test_env) c:\steven\edk2>edksetup.bat Reb= uild

(unit_test_env) c:\steven\edk2>stuart_ci_build = -c .pytool/CISettings.py TOOL_CHAIN_TAG=3DVS2019 -a X64,IA32 -t DEBUG --ver= bose

PROGRESS - Overall Build Status: Success

SECTION - Summary

PROGRESS - Success

 

  1. Linux:

jshi19@ub2-uefi-b01:~/wksp_efi$ python3 -m venv un= it_test_env

jshi19@ub2-uefi-b01:~/wksp_efi$ source unit_test_e= nv/bin/activate

(unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk= 2-2$ pip install --upgrade -r pip-requirements.txt

(unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk= 2-2$ make -C BaseTools/

(unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk= 2-2$ stuart_setup -c .pytool/CISettings.py TOOL_CHAIN_TAG=3DGCC5=

(unit_test_env) jshi19@ub2-uefi-b01:~/wksp_efi/edk= 2-2$ stuart_update -c .pytool/CISettings.py TOOL_CHAIN_TAG=3DGCC5

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-ac= pica-iasl

WARNING - [SDE] Failed t= o fetch NugetDependecy: mu_nasm@2.15.05: [Nuget] We failed = to install this version 2.15.05 of mu_nasm

. Done=

SECTION -       Upda= ted/Verified 3 dependencies

SECTION - Second pass update of environment

UpdatingWARNING - [SDE] Failed to fetch NugetDepen= decy: edk2-acpica-iasl@20200717.0.0: [Nuget] We failed to install this versi= on 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 -       Upda= ted/Verified 3 dependencies

ERROR - We were unable to successfully update 2 de= pendencies in environment

SECTION - Summary

ERROR - Error

 

 

 

 

Thanks

 

Steven Shi

 

 

 

 

 

 

 

--_000_DM4PR11MB55490EFF4FC73FE1EDAEB8468C1F9DM4PR11MB5549namp_-- --_004_DM4PR11MB55490EFF4FC73FE1EDAEB8468C1F9DM4PR11MB5549namp_ Content-Type: image/png; name="image001.png" Content-Description: image001.png Content-Disposition: inline; filename="image001.png"; size=195; creation-date="Fri, 02 Jul 2021 02:43:58 GMT"; modification-date="Fri, 02 Jul 2021 02:43:58 GMT" Content-ID: Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAisAAAACCAYAAACZkpz/AAAAAXNSR0IArs4c6QAAAAlwSFlzAAAO xAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUATWljcm9zb2Z0IE9mZmljZX/tNXEAAABDSURBVFhH 7dAxEQAgDACxDijC/4ACDOCChYkWGwx5BX9pY66bVSdEgAABAgQIEPhQoGXWurH7h2+WCBAgQIAA AQLxAIkkDVkDoC+rAAAAAElFTkSuQmCC --_004_DM4PR11MB55490EFF4FC73FE1EDAEB8468C1F9DM4PR11MB5549namp_--