From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mx.groups.io with SMTP id smtpd.web09.10905.1624984623390886597 for ; Tue, 29 Jun 2021 09:37:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=nQuNBlI7; spf=pass (domain: nuviainc.com, ip: 209.85.215.172, mailfrom: rebecca@nuviainc.com) Received: by mail-pg1-f172.google.com with SMTP id e33so19021293pgm.3 for ; Tue, 29 Jun 2021 09:37:03 -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=72VaEuA3eiQ967wliRiqE9xvTSqVeqdN+z6qTn4sYGM=; b=nQuNBlI7Mz93tGz/nxIDDHCYdS8aXIl212pzFkarYQCksMweiiUuj3nAm06Jmf/5zV 0LAEbHVSga7fkpOgLGtew9CiCipBzDKh6BgeWgAGcTm/8eTbbmU7RCjKxb3cdYL/INpv PqNlBWJ6PamFI2V9NmC6U0ZxxeUbVO9tKllnfYtrt0YJZhVI7bNjjyC9dF4iOYncUg7m aVYtlt4sT4TE6A+jEXiVChtAPzcQyDnnp6di4UGW/NOrQtkve9tVGH1DgwKM4A1lXPMW mfA4tD7CyuphR799gnarpwp9cIGDOCT8hDhRhQWMB62Fo2xZZ13MbNI98q2ojwlP2fen s7vA== 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=72VaEuA3eiQ967wliRiqE9xvTSqVeqdN+z6qTn4sYGM=; b=Wd5yT3qCofvN3+6ytl1wSokZRwPsuKXQF5KcF1ZvvuHaDabyvCjPffaYNJ9iP6NAXK W6dVfNpX7r33arTyKYJpZfrS/JzN6iXaTW3FUHULiOKK4MbXCXHaNfIs7Qy17QEumgY7 dCenfCLZAmVp8ODNP7SsRUnFqx/5t7TMvz0EPZ5Oy4tyVRLg9dhebjkwsJjIKtLmDQuE AZWQO8aii6QXc4imP8w/YKJ7JvoFiQnPxB6zJ7gZks3LpJq5K7YY+QBl9d7rhPDxWOXe 82m390489PulYHdA7S49lcXgdv/jNmWCF+n0pdjnatnxI/MxuC0ZlywOk8C0eBsfAUkY VPHA== X-Gm-Message-State: AOAM5325T9W9YPZHeIZvli9BnykOjAIDgP+FsQqJPlXMoh4bViNJoaAs yf0TmSs4xR1KOePHmDCVKmPXCw== X-Google-Smtp-Source: ABdhPJwhSHH2d8nlyK5AKYDKtgMnG3Eu0HK/AfqsPjD2ngIF/22xCwS35gM5DYF1aV+Eo/JC/Upc0A== X-Received: by 2002:aa7:8605:0:b029:30a:30f:af5e with SMTP id p5-20020aa786050000b029030a030faf5emr21043964pfn.19.1624984622983; Tue, 29 Jun 2021 09:37:02 -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 j17sm17959212pfc.139.2021.06.29.09.37.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Jun 2021 09:37:02 -0700 (PDT) Subject: Re: [edk2-devel] Do the edk2 CI unit tests work in Linux? To: Bret Barkelew , "devel@edk2.groups.io" , "steven.shi@intel.com" References: <1493b987-b1ed-cb10-8049-107ba1b6f3b0@nuviainc.com> From: "Rebecca Cran" Message-ID: <30a871f5-6b9e-dfbb-a8a2-1ef043cdff0c@nuviainc.com> Date: Tue, 29 Jun 2021 10:37:00 -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: X-Groupsio-MsgNum: 77289 Content-Type: multipart/alternative; boundary="------------1A1B5535E0404AB7EF4AF308" Content-Language: en-US --------------1A1B5535E0404AB7EF4AF308 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit I think he's referring to NuGet.exe, which unless you're familiar with .NET appears to be a Windows executable. -- Rebecca Cran On 6/29/21 9:59 AM, Bret Barkelew wrote: > > Which executable are you referring to? > > Also, yes, it is entirely possible that Linux has more dependencies > since the dependency list has conditionals based on your OS. > > - Bret > > *From: *Steven Shi via groups.io > *Sent: *Tuesday, June 29, 2021 8:44 AM > *To: *devel@edk2.groups.io ; > rebecca@nuviainc.com > *Subject: *[EXTERNAL] Re: [edk2-devel] Do the edk2 CI unit tests work > in Linux? > > 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 > > 2. 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* > > ** > > ** > > > --------------1A1B5535E0404AB7EF4AF308 Content-Type: multipart/related; boundary="------------4A699705663C08E735823636" --------------4A699705663C08E735823636 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit

I think he's referring to NuGet.exe, which unless you're familiar with .NET appears to be a Windows executable.


--

Rebecca Cran


On 6/29/21 9:59 AM, Bret Barkelew wrote:

Which executable are you referring to?

 

Also, yes, it is entirely possible that Linux has more dependencies since the dependency list has conditionals based on your OS.

 

- Bret

 

From: Steven Shi via groups.io
Sent: Tuesday, June 29, 2021 8:44 AM
To: devel@edk2.groups.io; rebecca@nuviainc.com
Subject: [EXTERNAL] Re: [edk2-devel] Do the edk2 CI unit tests work in Linux?

 

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 <devel@edk2.groups.io> 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?

 

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

 

 

 

 

--------------4A699705663C08E735823636 Content-Type: image/png; name="3DD9830017BC4F93AACE34599E80F4A7.png" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="3DD9830017BC4F93AACE34599E80F4A7.png" iVBORw0KGgoAAAANSUhEUgAAAsQAAAABCAYAAADZ77itAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAhSURBVEhL7cMBDQAACAMg+5cygQkeRoMIG9WT VVXVn7MHYi5moJeByLMAAAAASUVORK5CYII= --------------4A699705663C08E735823636-- --------------1A1B5535E0404AB7EF4AF308--