From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mx.groups.io with SMTP id smtpd.web12.7161.1624968756584051360 for ; Tue, 29 Jun 2021 05:12:36 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=R67LAwXb; spf=pass (domain: nuviainc.com, ip: 209.85.216.43, mailfrom: rebecca@nuviainc.com) Received: by mail-pj1-f43.google.com with SMTP id cs1-20020a17090af501b0290170856e1a8aso1763967pjb.3 for ; Tue, 29 Jun 2021 05:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=xMoOtDvsDQ9sTdph8nHGpoyJkjm0LJOUQMqaSKrffgU=; b=R67LAwXbGxVaWig7HXxdDcCZrjhjlcP7W97zDuGdkqKHVrHHqapNKW9BIZx6rdp3Sn bYxvZgVKvf9Awgmt5Ozakh6jWwBUZ1H5lWuDscm1eTkFajMnGjqMWOYPAoPbXx1cuMdQ WutqhRvdL1xFpZDuVkNcLNPPSTQL/SgSBd3MlnUzORUavF84z5AMENMcpK3ZCuC2GwuW Yhd5gVgU025TdFcsY8sPG5L29mc0o2DHHjFZ+0YD57iAv1MHY8JzbFeYSHXrBgmbOoIQ Yq+QpY6zu5RxmvodrzhQFVxAl7NaLjs8vzsucgkaZGVyQGz3Qbe3ZPAHERSkuue5saxF 2LoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=xMoOtDvsDQ9sTdph8nHGpoyJkjm0LJOUQMqaSKrffgU=; b=TS32SlJ4ZDxsRhTB81QN0BX42tG7zjV/ypi8BMQDekU6Cz9MxsFfToClInh8krblqh vP2NtxxrWmfeOY4mQgEZGvSNQr5GstygososD/qdC7JbZBXJYGAAERzX9legBMiwRV/V O8aspyX18B7tr8KnRI7z+CEmn9sSW7NLavaEUA98pJXWBLdEx6WU1+zlmXE0kPqBWlaf r0DVFPlbUu7bWl2Hr0B+fqZRETstqexllDQ9SE/yNwU4sV8y6DnUKnyjE7b/3hbGXjy+ RoV3s5FW6KV45yFEcszYPrgN+GpKPA1kFfSKqMfyQ6HBSs9zAQ6KIdK4QE+5mn2r3vz0 8NJQ== X-Gm-Message-State: AOAM532b0/Xiy4CLwxMDD853wOYGGPRgbik1uBYNKWeQt0jBF4RYZhtd bQROlD6Vy9a8kjVbGTkFP0+uJg== X-Google-Smtp-Source: ABdhPJxPVXDVlaBrvK9ARc+e9di5hPi6lChQ+EbC8I2b3yHPYdEqhM0nYDFR+i0turPfIDTAso84tQ== X-Received: by 2002:a17:902:d482:b029:127:37f7:e8ad with SMTP id c2-20020a170902d482b029012737f7e8admr27738963plg.49.1624968756179; Tue, 29 Jun 2021 05:12:36 -0700 (PDT) Return-Path: Received: from linbox.int.bluestop.org (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id 11sm626780pfl.41.2021.06.29.05.12.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Jun 2021 05:12:35 -0700 (PDT) Subject: Re: [edk2-devel] Do the edk2 CI unit tests work in Linux? To: devel@edk2.groups.io, steven.shi@intel.com References: From: "Rebecca Cran" Message-ID: <1493b987-b1ed-cb10-8049-107ba1b6f3b0@nuviainc.com> Date: Tue, 29 Jun 2021 06:12:33 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------DD3F872A51115F8ABE4BE089" Content-Language: en-US --------------DD3F872A51115F8ABE4BE089 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit 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? > > * 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 > > * 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*** > > ** > > ** > > --------------DD3F872A51115F8ABE4BE089 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit

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?

 

  • 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

 

  • 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

 

 

 

--------------DD3F872A51115F8ABE4BE089--