From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [edk2-devel] EDK2 CI build error "Uncrustify Coding Standard" To: Ashish Kalra ,devel@edk2.groups.io From: "Ashish Kalra" X-Originating-Location: US (161.69.112.11) X-Originating-Platform: Windows Chrome 99 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Mon, 04 Apr 2022 23:09:40 -0700 References: <14608.1649138274027224886@groups.io> In-Reply-To: <14608.1649138274027224886@groups.io> Message-ID: <18598.1649138980553258823@groups.io> Content-Type: multipart/alternative; boundary="6RmNBSDdJqMx33ddZGSH" --6RmNBSDdJqMx33ddZGSH Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Mike, I am following up on Brijesh's email, i am running the CI tests related to = my SEV live migration patches, which i am in process of posting. I am running the CI tests locally and getting errors while building OvmfPkg= , my patches include two new header files, error log is copied below. Do you have updated instructions on how to r un through uncrustify locally = and get my patch updated with those formatting changes, especially for Linux ? (your above instructions seem specific to Windows). Thanks, Ashish Error log: ../.local/bin/stuart_ci_build -c .pytool/CISettings.py TOOL_CHAIN_TAG=3DGCC= 5 -p OvmfPkg SECTION - Init SDE WARNING - Using Pip Tools based BaseTools S= ECTION - Loading Plugins SECTION - Start Invocable Tool SECTION - Getting E= nvironment SECTION - Loading plugins SECTION - Building OvmfPkg Package PRO= GRESS - --Running OvmfPkg: Uncrustify Coding Standard Test NO-TARGET -- WAR= NING - A file header template is not specified in the config file. WARNING = - A function header template is not specified in the config file. ERROR - /= home/amd/edk2-upstream/OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSe= vLibInternal.c ERROR - /home/amd/edk2-upstream/OvmfPkg/Library/BaseMemEncry= ptSevLib/DxeMemEncryptSevLibInternal.c ERROR - --->Test Failed: Uncrustify = Coding Standard Test NO-TARGET returned 2 PROGRESS - --Running OvmfPkg: Gui= d Check Test NO-TARGET -- PROGRESS - --->Test Success: Guid Check Test NO-T= ARGET PROGRESS - --Running OvmfPkg: Char Encoding Check Test NO-TARGET -- P= ROGRESS - --->Test Success: Char Encoding Check Test NO-TARGET PROGRESS - -= -Running OvmfPkg: Spell Check Test NO-TARGET -- WARNING - NodeJs not instal= led. Test can't run WARNING - --->Test Skipped: in plugin! Spell Check Test= NO-TARGET PROGRESS - --Running OvmfPkg: Dsc Complete Check Test NO-TARGET = -- PROGRESS - --->Test Success: Dsc Complete Check Test NO-TARGET PROGRESS = - --Running OvmfPkg: Host Unit Test Dsc Complete Check Test NO-TARGET -- PR= OGRESS - --->Test Success: Host Unit Test Dsc Complete Check Test NO-TARGET= PROGRESS - --Running OvmfPkg: Host Unit Test Compiler Plugin NOOPT -- WARN= ING - --->Test Skipped: in plugin! Host Unit Test Compiler Plugin NOOPT PRO= GRESS - --Running OvmfPkg: Library Class Check Test NO-TARGET -- PROGRESS -= --->Test Success: Library Class Check Test NO-TARGET PROGRESS - --Running = OvmfPkg: EccCheck Test NO-TARGET -- PROGRESS - --->Test Skipped by package!= EccCheck Test PROGRESS - --Running OvmfPkg: Compiler Plugin DEBUG -- WARNI= NG - --->Test Skipped: in plugin! Compiler Plugin DEBUG PROGRESS - --Runnin= g OvmfPkg: Compiler Plugin RELEASE -- WARNING - --->Test Skipped: in plugin= ! Compiler Plugin RELEASE PROGRESS - --Running OvmfPkg: Dependency Check Te= st NO-TARGET -- PROGRESS - --->Test Success: Dependency Check Test NO-TARGE= T PROGRESS - --Running OvmfPkg: License Check Test NO-TARGET -- PROGRESS - = --->Test Success: License Check Test NO-TARGET ERROR - Overall Build Status= : Error PROGRESS - There were 1 failures out of 13 attempts SECTION - Summa= ry ERROR - Error --6RmNBSDdJqMx33ddZGSH Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Mike, 

I am following up on Brijesh's email, i am runnin= g the CI tests related to my SEV live migration patches,
which i am in= process of posting.

I am running the CI tests locally and getti= ng errors while building OvmfPkg, my patches include two new
header fi= les, error log is copied below.

Do you have updated instructions= on how to run through uncrustify lo= cally and
get my patch updated with those formatting changes, esp= ecially for Linux ?
(your above instructions seem specific to W= indows).

Thanks,Ashish

Error l= og:

../.local/bin/stuart_= ci_build -c .pytool/CISettings.py TOOL_CHAIN_TAG=3DGCC5 -p OvmfPkg SECTION = - Init SDE WARNING - Using Pip Tools based BaseTools SECTION - Loading Plug= ins SECTION - Start Invocable Tool SECTION - Getting Environment SECTION - = Loading plugins SECTION - Building OvmfPkg Package PROGRESS - --Running Ovm= fPkg: Uncrustify Coding Standard Test NO-TARGET -- WARNING - A file header = template is not specified in the config file. WARNING - A function header t= emplate is not specified in the config file. ERROR - /home/amd/edk2-upstrea= m/OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLibInternal.c ERROR = - /home/amd/edk2-upstream/OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryp= tSevLibInternal.c ERROR - --->Test Failed: Uncrustify Coding Standard Te= st NO-TARGET returned 2 PROGRESS - --Running OvmfPkg: Guid Check Test NO-TA= RGET -- PROGRESS - --->Test Success: Guid Check Test NO-TARGET PROGRESS = - --Running OvmfPkg: Char Encoding Check Test NO-TARGET -- PROGRESS - ---&g= t;Test Success: Char Encoding Check Test NO-TARGET PROGRESS - --Running Ovm= fPkg: Spell Check Test NO-TARGET -- WARNING - NodeJs not installed. Test ca= n't run WARNING - --->Test Skipped: in plugin! Spell Check Test NO-TARGE= T PROGRESS - --Running OvmfPkg: Dsc Complete Check Test NO-TARGET -- PROGRE= SS - --->Test Success: Dsc Complete Check Test NO-TARGET PROGRESS - --Ru= nning OvmfPkg: Host Unit Test Dsc Complete Check Test NO-TARGET -- PROGRESS= - --->Test Success: Host Unit Test Dsc Complete Check Test NO-TARGET PR= OGRESS - --Running OvmfPkg: Host Unit Test Compiler Plugin NOOPT -- WARNING= - --->Test Skipped: in plugin! Host Unit Test Compiler Plugin NOOPT PRO= GRESS - --Running OvmfPkg: Library Class Check Test NO-TARGET -- PROGRESS -= --->Test Success: Library Class Check Test NO-TARGET PROGRESS - --Runni= ng OvmfPkg: EccCheck Test NO-TARGET -- PROGRESS - --->Test Skipped by pa= ckage! EccCheck Test PROGRESS - --Running OvmfPkg: Compiler Plugin DEBUG --= WARNING - --->Test Skipped: in plugin! Compiler Plugin DEBUG PROGRESS -= --Running OvmfPkg: Compiler Plugin RELEASE -- WARNING - --->Test Skippe= d: in plugin! Compiler Plugin RELEASE PROGRESS - --Running OvmfPkg: Depende= ncy Check Test NO-TARGET -- PROGRESS - --->Test Success: Dependency Chec= k Test NO-TARGET PROGRESS - --Running OvmfPkg: License Check Test NO-TARGET= -- PROGRESS - --->Test Success: License Check Test NO-TARGET ERROR - Ov= erall Build Status: Error PROGRESS - There were 1 failures out of 13 attemp= ts SECTION - Summary ERROR - Error --6RmNBSDdJqMx33ddZGSH--