FAIL: testHelp (TianoCompress.Tests) - edk2

I met a problem that compile source code FAIL with ubuntu-18.04.6. I try to lots of EDK2 version that always met the same error. Have any idea? thank so much.
Here is my environment.
OS: Windows base install virtual BOX and then install ubuntu-18.04.6
Python 3.8.13
GCC (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Build Process
Git clone from https://github.com/tianocore/edk2 and switch this branch edk2-stable202105
Update sub-module by git.
Change to the edk2 directory
make -C BaseTools
FAIL: testHelp (TianoCompress.Tests)
Traceback (most recent call last):
File "/root/edk2/BaseTools/Tests/TianoCompress.py", line 29, in testHelp
self.assertTrue(result == 0)
AssertionError: False is not true
FAIL: testRandomDataCycles (TianoCompress.Tests)
Traceback (most recent call last):
File "/root/edk2/BaseTools/Tests/TianoCompress.py", line 60, in testRandomDataCycles
self.compressionTestCycle(data)
File "/root/edk2/BaseTools/Tests/TianoCompress.py", line 39, in compressionTestCycle
self.assertTrue(result == 0)
AssertionError: False is not true
<pre>
root#jasper-VirtualBox:~/edk2# make -C BaseTools/
make: Entering directory &apos;/root/edk2/BaseTools&apos;
make -C Source/C
make[1]: Entering directory &apos;/root/edk2/BaseTools/Source/C&apos;
Attempting to detect HOST_ARCH from &apos;uname -m&apos;: x86_64
Detected HOST_ARCH of X64 using uname.
mkdir -p .
make -C Common
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/Common&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/Common&apos;
make -C BrotliCompress
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/BrotliCompress&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/BrotliCompress&apos;
make -C VfrCompile
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/VfrCompile&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/VfrCompile&apos;
make -C EfiRom
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/EfiRom&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/EfiRom&apos;
make -C GenFfs
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/GenFfs&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/GenFfs&apos;
make -C GenFv
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/GenFv&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/GenFv&apos;
make -C GenFw
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/GenFw&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/GenFw&apos;
make -C GenSec
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/GenSec&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/GenSec&apos;
make -C GenCrc32
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/GenCrc32&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/GenCrc32&apos;
make -C LzmaCompress
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/LzmaCompress&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/LzmaCompress&apos;
make -C TianoCompress
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/TianoCompress&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/TianoCompress&apos;
make -C VolInfo
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/VolInfo&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/VolInfo&apos;
make -C DevicePath
make[2]: Entering directory &apos;/root/edk2/BaseTools/Source/C/DevicePath&apos;
make[2]: Nothing to be done for &apos;all&apos;.
make[2]: Leaving directory &apos;/root/edk2/BaseTools/Source/C/DevicePath&apos;
Finished building BaseTools C Tools with HOST_ARCH=X64
make[1]: Leaving directory &apos;/root/edk2/BaseTools/Source/C&apos;
make -C Source/Python
make[1]: Entering directory &apos;/root/edk2/BaseTools/Source/Python&apos;
make[1]: Nothing to be done for &apos;all&apos;.
make[1]: Leaving directory &apos;/root/edk2/BaseTools/Source/Python&apos;
make -C Tests
make[1]: Entering directory &apos;/root/edk2/BaseTools/Tests&apos;
testHelp (TianoCompress.Tests) ... FAIL
testRandomDataCycles (TianoCompress.Tests) ... FAIL
test_AmlToC_AmlToC (CheckPythonSyntax.Tests) ... ok
test_AutoGen_AutoGen (CheckPythonSyntax.Tests) ... ok
test_AutoGen_AutoGenWorker (CheckPythonSyntax.Tests) ... ok
test_AutoGen_BuildEngine (CheckPythonSyntax.Tests) ... ok
test_AutoGen_DataPipe (CheckPythonSyntax.Tests) ... ok
test_AutoGen_GenC (CheckPythonSyntax.Tests) ... ok
test_AutoGen_GenDepex (CheckPythonSyntax.Tests) ... ok
test_AutoGen_GenMake (CheckPythonSyntax.Tests) ... ok
test_AutoGen_GenPcdDb (CheckPythonSyntax.Tests) ... ok
test_AutoGen_GenVar (CheckPythonSyntax.Tests) ... ok
test_AutoGen_IdfClassObject (CheckPythonSyntax.Tests) ... ok
test_AutoGen_IncludesAutoGen (CheckPythonSyntax.Tests) ... ok
test_AutoGen_InfSectionParser (CheckPythonSyntax.Tests) ... ok
test_AutoGen_ModuleAutoGen (CheckPythonSyntax.Tests) ... ok
test_AutoGen_ModuleAutoGenHelper (CheckPythonSyntax.Tests) ... ok
test_AutoGen_PlatformAutoGen (CheckPythonSyntax.Tests) ... ok
test_AutoGen_StrGather (CheckPythonSyntax.Tests) ... ok
test_AutoGen_UniClassObject (CheckPythonSyntax.Tests) ... ok
test_AutoGen_ValidCheckingInfoObject (CheckPythonSyntax.Tests) ... ok
test_AutoGen_WorkspaceAutoGen (CheckPythonSyntax.Tests) ... ok
test_AutoGen___init__ (CheckPythonSyntax.Tests) ... ok
test_BPDG_BPDG (CheckPythonSyntax.Tests) ... ok
test_BPDG_GenVpd (CheckPythonSyntax.Tests) ... ok
test_BPDG_StringTable (CheckPythonSyntax.Tests) ... ok
test_BPDG___init__ (CheckPythonSyntax.Tests) ... ok
test_Capsule_GenerateCapsule (CheckPythonSyntax.Tests) ... ok
test_Capsule_GenerateWindowsDriver (CheckPythonSyntax.Tests) ... ok
test_Capsule_WindowsCapsuleSupportHelper (CheckPythonSyntax.Tests) ... ok
test_CommonDataClass_CommonClass (CheckPythonSyntax.Tests) ... ok
test_CommonDataClass_DataClass (CheckPythonSyntax.Tests) ... ok
test_CommonDataClass_Exceptions (CheckPythonSyntax.Tests) ... ok
test_CommonDataClass_FdfClass (CheckPythonSyntax.Tests) ... ok
test_CommonDataClass___init__ (CheckPythonSyntax.Tests) ... ok
test_Common_BuildToolError (CheckPythonSyntax.Tests) ... ok
test_Common_BuildVersion (CheckPythonSyntax.Tests) ... ok
test_Common_DataType (CheckPythonSyntax.Tests) ... ok
test_Common_Edk2_Capsule_FmpPayloadHeader (CheckPythonSyntax.Tests) ... ok
test_Common_Edk2_Capsule___init__ (CheckPythonSyntax.Tests) ... ok
test_Common_Edk2___init__ (CheckPythonSyntax.Tests) ... ok
test_Common_EdkLogger (CheckPythonSyntax.Tests) ... ok
test_Common_Expression (CheckPythonSyntax.Tests) ... ok
test_Common_GlobalData (CheckPythonSyntax.Tests) ... ok
test_Common_LongFilePathOs (CheckPythonSyntax.Tests) ... ok
test_Common_LongFilePathOsPath (CheckPythonSyntax.Tests) ... ok
test_Common_LongFilePathSupport (CheckPythonSyntax.Tests) ... ok
test_Common_Misc (CheckPythonSyntax.Tests) ... ok
test_Common_MultipleWorkspace (CheckPythonSyntax.Tests) ... ok
test_Common_Parsing (CheckPythonSyntax.Tests) ... ok
test_Common_RangeExpression (CheckPythonSyntax.Tests) ... ok
test_Common_StringUtils (CheckPythonSyntax.Tests) ... ok
test_Common_TargetTxtClassObject (CheckPythonSyntax.Tests) ... ok
test_Common_ToolDefClassObject (CheckPythonSyntax.Tests) ... ok
test_Common_Uefi_Capsule_CapsuleDependency (CheckPythonSyntax.Tests) ... ok
test_Common_Uefi_Capsule_FmpAuthHeader (CheckPythonSyntax.Tests) ... ok
test_Common_Uefi_Capsule_FmpCapsuleHeader (CheckPythonSyntax.Tests) ... ok
test_Common_Uefi_Capsule_UefiCapsuleHeader (CheckPythonSyntax.Tests) ... ok
test_Common_Uefi_Capsule___init__ (CheckPythonSyntax.Tests) ... ok
test_Common_Uefi___init__ (CheckPythonSyntax.Tests) ... ok
test_Common_VariableAttributes (CheckPythonSyntax.Tests) ... ok
test_Common_VpdInfoFile (CheckPythonSyntax.Tests) ... ok
test_Common___init__ (CheckPythonSyntax.Tests) ... ok
test_Common_caching (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser3_CLexer (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser3_CParser (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser3___init__ (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser4_CLexer (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser4_CListener (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser4_CParser (CheckPythonSyntax.Tests) ... ok
test_Ecc_CParser4___init__ (CheckPythonSyntax.Tests) ... ok
test_Ecc_Check (CheckPythonSyntax.Tests) ... ok
test_Ecc_CodeFragment (CheckPythonSyntax.Tests) ... ok
test_Ecc_CodeFragmentCollector (CheckPythonSyntax.Tests) ... ok
test_Ecc_Configuration (CheckPythonSyntax.Tests) ... ok
test_Ecc_Database (CheckPythonSyntax.Tests) ... ok
test_Ecc_EccGlobalData (CheckPythonSyntax.Tests) ... ok
test_Ecc_EccMain (CheckPythonSyntax.Tests) ... ok
test_Ecc_EccToolError (CheckPythonSyntax.Tests) ... ok
test_Ecc_Exception (CheckPythonSyntax.Tests) ... ok
test_Ecc_FileProfile (CheckPythonSyntax.Tests) ... ok
test_Ecc_MetaDataParser (CheckPythonSyntax.Tests) ... ok
test_Ecc_MetaFileWorkspace_MetaDataTable (CheckPythonSyntax.Tests) ... ok
test_Ecc_MetaFileWorkspace_MetaFileParser (CheckPythonSyntax.Tests) ... ok
test_Ecc_MetaFileWorkspace_MetaFileTable (CheckPythonSyntax.Tests) ... ok
test_Ecc_MetaFileWorkspace___init__ (CheckPythonSyntax.Tests) ... ok
test_Ecc_ParserWarning (CheckPythonSyntax.Tests) ... ok
test_Ecc_Xml_XmlRoutines (CheckPythonSyntax.Tests) ... ok
test_Ecc_Xml___init__ (CheckPythonSyntax.Tests) ... ok
test_Ecc___init__ (CheckPythonSyntax.Tests) ... ok
test_Ecc_c (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser3_CLexer (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser3_CParser (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser3___init__ (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser4_CLexer (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser4_CListener (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser4_CParser (CheckPythonSyntax.Tests) ... ok
test_Eot_CParser4___init__ (CheckPythonSyntax.Tests) ... ok
test_Eot_CodeFragment (CheckPythonSyntax.Tests) ... ok
test_Eot_CodeFragmentCollector (CheckPythonSyntax.Tests) ... ok
test_Eot_Database (CheckPythonSyntax.Tests) ... ok
test_Eot_EotGlobalData (CheckPythonSyntax.Tests) ... ok
test_Eot_EotMain (CheckPythonSyntax.Tests) ... ok
test_Eot_EotToolError (CheckPythonSyntax.Tests) ... ok
test_Eot_FileProfile (CheckPythonSyntax.Tests) ... ok
test_Eot_Identification (CheckPythonSyntax.Tests) ... ok
test_Eot_InfParserLite (CheckPythonSyntax.Tests) ... ok
test_Eot_Parser (CheckPythonSyntax.Tests) ... ok
test_Eot_ParserWarning (CheckPythonSyntax.Tests) ... ok
test_Eot_Report (CheckPythonSyntax.Tests) ... ok
test_Eot___init__ (CheckPythonSyntax.Tests) ... ok
test_Eot_c (CheckPythonSyntax.Tests) ... ok
test_GenFds_AprioriSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_Capsule (CheckPythonSyntax.Tests) ... ok
test_GenFds_CapsuleData (CheckPythonSyntax.Tests) ... ok
test_GenFds_CompressSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_DataSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_DepexSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_EfiSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_Fd (CheckPythonSyntax.Tests) ... ok
test_GenFds_FdfParser (CheckPythonSyntax.Tests) ... ok
test_GenFds_Ffs (CheckPythonSyntax.Tests) ... ok
test_GenFds_FfsFileStatement (CheckPythonSyntax.Tests) ... ok
test_GenFds_FfsInfStatement (CheckPythonSyntax.Tests) ... ok
test_GenFds_Fv (CheckPythonSyntax.Tests) ... ok
test_GenFds_FvImageSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_GenFds (CheckPythonSyntax.Tests) ... ok
test_GenFds_GenFdsGlobalVariable (CheckPythonSyntax.Tests) ... ok
test_GenFds_GuidSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_OptRomFileStatement (CheckPythonSyntax.Tests) ... ok
test_GenFds_OptRomInfStatement (CheckPythonSyntax.Tests) ... ok
test_GenFds_OptionRom (CheckPythonSyntax.Tests) ... ok
test_GenFds_Region (CheckPythonSyntax.Tests) ... ok
test_GenFds_Rule (CheckPythonSyntax.Tests) ... ok
test_GenFds_RuleComplexFile (CheckPythonSyntax.Tests) ... ok
test_GenFds_RuleSimpleFile (CheckPythonSyntax.Tests) ... ok
test_GenFds_Section (CheckPythonSyntax.Tests) ... ok
test_GenFds_UiSection (CheckPythonSyntax.Tests) ... ok
test_GenFds_VerSection (CheckPythonSyntax.Tests) ... ok
test_GenFds___init__ (CheckPythonSyntax.Tests) ... ok
test_GenPatchPcdTable_GenPatchPcdTable (CheckPythonSyntax.Tests) ... ok
test_GenPatchPcdTable___init__ (CheckPythonSyntax.Tests) ... ok
test_PatchPcdValue_PatchPcdValue (CheckPythonSyntax.Tests) ... ok
test_PatchPcdValue___init__ (CheckPythonSyntax.Tests) ... ok
test_Pkcs7Sign_Pkcs7Sign (CheckPythonSyntax.Tests) ... ok
test_Rsa2048Sha256Sign_Rsa2048Sha256GenerateKeys (CheckPythonSyntax.Tests) ... ok
test_Rsa2048Sha256Sign_Rsa2048Sha256Sign (CheckPythonSyntax.Tests) ... ok
test_Split_Split (CheckPythonSyntax.Tests) ... ok
test_Split___init__ (CheckPythonSyntax.Tests) ... ok
test_Table_Table (CheckPythonSyntax.Tests) ... ok
test_Table_TableDataModel (CheckPythonSyntax.Tests) ... ok
test_Table_TableDec (CheckPythonSyntax.Tests) ... ok
test_Table_TableDsc (CheckPythonSyntax.Tests) ... ok
test_Table_TableEotReport (CheckPythonSyntax.Tests) ... ok
test_Table_TableFdf (CheckPythonSyntax.Tests) ... ok
test_Table_TableFile (CheckPythonSyntax.Tests) ... ok
test_Table_TableFunction (CheckPythonSyntax.Tests) ... ok
test_Table_TableIdentifier (CheckPythonSyntax.Tests) ... ok
test_Table_TableInf (CheckPythonSyntax.Tests) ... ok
test_Table_TablePcd (CheckPythonSyntax.Tests) ... ok
test_Table_TableQuery (CheckPythonSyntax.Tests) ... ok
test_Table_TableReport (CheckPythonSyntax.Tests) ... ok
test_Table___init__ (CheckPythonSyntax.Tests) ... ok
test_TargetTool_TargetTool (CheckPythonSyntax.Tests) ... ok
test_TargetTool___init__ (CheckPythonSyntax.Tests) ... ok
test_Trim_Trim (CheckPythonSyntax.Tests) ... ok
test_UPT_BuildVersion (CheckPythonSyntax.Tests) ... ok
test_UPT_Core_DependencyRules (CheckPythonSyntax.Tests) ... ok
test_UPT_Core_DistributionPackageClass (CheckPythonSyntax.Tests) ... ok
test_UPT_Core_FileHook (CheckPythonSyntax.Tests) ... ok
test_UPT_Core_IpiDb (CheckPythonSyntax.Tests) ... ok
test_UPT_Core_PackageFile (CheckPythonSyntax.Tests) ... ok
test_UPT_Core___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_GenMetaFile_GenDecFile (CheckPythonSyntax.Tests) ... ok
test_UPT_GenMetaFile_GenInfFile (CheckPythonSyntax.Tests) ... ok
test_UPT_GenMetaFile_GenMetaFileMisc (CheckPythonSyntax.Tests) ... ok
test_UPT_GenMetaFile_GenXmlFile (CheckPythonSyntax.Tests) ... ok
test_UPT_GenMetaFile___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_InstallPkg (CheckPythonSyntax.Tests) ... ok
test_UPT_InventoryWs (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_CommentGenerating (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_CommentParsing (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_DataType (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_ExpressionValidate (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_GlobalData (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_Misc (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_ParserValidate (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_Parsing (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_StringUtils (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_UniClassObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_Xml_XmlRoutines (CheckPythonSyntax.Tests) ... ok
test_UPT_Library_Xml___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_Library___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_Logger_Log (CheckPythonSyntax.Tests) ... ok
test_UPT_Logger_StringTable (CheckPythonSyntax.Tests) ... ok
test_UPT_Logger_ToolError (CheckPythonSyntax.Tests) ... ok
test_UPT_Logger___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_MkPkg (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_POM_CommonObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_POM_ModuleObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_POM_PackageObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_POM___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_DecObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfBinaryObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfBuildOptionObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfCommonObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfDefineCommonObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfDefineObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfDepexObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfGuidObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfHeaderObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfLibraryClassesObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfMisc (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfPackagesObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfPcdObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfPpiObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfProtocolObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfSoucesObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser_InfUserExtensionObject (CheckPythonSyntax.Tests) ... ok
test_UPT_Object_Parser___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_Object___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_DecParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_DecParserMisc (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfAsBuiltProcess (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfBinarySectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfBuildOptionSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfDefineSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfDepexSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfGuidPpiProtocolSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfLibrarySectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfPackageSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfParserMisc (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfPcdSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser_InfSourceSectionParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Parser___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_PomAdapter_DecPomAlignment (CheckPythonSyntax.Tests) ... ok
test_UPT_PomAdapter_InfPomAlignment (CheckPythonSyntax.Tests) ... ok
test_UPT_PomAdapter_InfPomAlignmentMisc (CheckPythonSyntax.Tests) ... ok
test_UPT_PomAdapter___init__ (CheckPythonSyntax.Tests) ... ok
test_UPT_ReplacePkg (CheckPythonSyntax.Tests) ... ok
test_UPT_RmPkg (CheckPythonSyntax.Tests) ... ok
test_UPT_TestInstall (CheckPythonSyntax.Tests) ... ok
test_UPT_UPT (CheckPythonSyntax.Tests) ... ok
test_UPT_UnitTest_CommentGeneratingUnitTest (CheckPythonSyntax.Tests) ... ok
test_UPT_UnitTest_CommentParsingUnitTest (CheckPythonSyntax.Tests) ... ok
test_UPT_UnitTest_DecParserTest (CheckPythonSyntax.Tests) ... ok
test_UPT_UnitTest_DecParserUnitTest (CheckPythonSyntax.Tests) ... ok
test_UPT_UnitTest_InfBinarySectionTest (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_CommonXml (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_GuidProtocolPpiXml (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_IniToXml (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_ModuleSurfaceAreaXml (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_PackageSurfaceAreaXml (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_PcdXml (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_XmlParser (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml_XmlParserMisc (CheckPythonSyntax.Tests) ... ok
test_UPT_Xml___init__ (CheckPythonSyntax.Tests) ... ok
test_Workspace_BuildClassObject (CheckPythonSyntax.Tests) ... ok
test_Workspace_DecBuildData (CheckPythonSyntax.Tests) ... ok
test_Workspace_DscBuildData (CheckPythonSyntax.Tests) ... ok
test_Workspace_InfBuildData (CheckPythonSyntax.Tests) ... ok
test_Workspace_MetaDataTable (CheckPythonSyntax.Tests) ... ok
test_Workspace_MetaFileCommentParser (CheckPythonSyntax.Tests) ... ok
test_Workspace_MetaFileParser (CheckPythonSyntax.Tests) ... ok
test_Workspace_MetaFileTable (CheckPythonSyntax.Tests) ... ok
test_Workspace_WorkspaceCommon (CheckPythonSyntax.Tests) ... ok
test_Workspace_WorkspaceDatabase (CheckPythonSyntax.Tests) ... ok
test_Workspace___init__ (CheckPythonSyntax.Tests) ... ok
test_build_BuildReport (CheckPythonSyntax.Tests) ... ok
test_build___init__ (CheckPythonSyntax.Tests) ... ok
test_build_build (CheckPythonSyntax.Tests) ... ok
test_build_buildoptions (CheckPythonSyntax.Tests) ... ok
test_sitecustomize (CheckPythonSyntax.Tests) ... ok
test_tests_Split_test_split (CheckPythonSyntax.Tests) ... ok
test32bitUnicodeCharInUtf8Comment (CheckUnicodeSourceFiles.Tests) ... ok
test32bitUnicodeCharInUtf8File (CheckUnicodeSourceFiles.Tests) ... ok
testSupplementaryPlaneUnicodeCharInUtf16File (CheckUnicodeSourceFiles.Tests) ... ok
testSurrogatePairUnicodeCharInUtf16File (CheckUnicodeSourceFiles.Tests) ... ok
testSurrogatePairUnicodeCharInUtf8File (CheckUnicodeSourceFiles.Tests) ... ok
testSurrogatePairUnicodeCharInUtf8FileWithBom (CheckUnicodeSourceFiles.Tests) ... ok
testUtf16InUniFile (CheckUnicodeSourceFiles.Tests) ... ok
testValidUtf8File (CheckUnicodeSourceFiles.Tests) ... ok
testValidUtf8FileWithBom (CheckUnicodeSourceFiles.Tests) ... ok
======================================================================
FAIL: testHelp (TianoCompress.Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/edk2/BaseTools/Tests/TianoCompress.py", line 29, in testHelp
self.assertTrue(result == 0)
AssertionError: False is not true
======================================================================
FAIL: testRandomDataCycles (TianoCompress.Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/edk2/BaseTools/Tests/TianoCompress.py", line 60, in testRandomDataCycles
self.compressionTestCycle(data)
File "/root/edk2/BaseTools/Tests/TianoCompress.py", line 39, in compressionTestCycle
self.assertTrue(result == 0)
AssertionError: False is not true
----------------------------------------------------------------------
Ran 285 tests in 0.549s
FAILED (failures=2)
make[1]: Leaving directory &apos;/root/edk2/BaseTools/Tests&apos;
make: Leaving directory &apos;/root/edk2/BaseTools&apos;
root#jasper-VirtualBox:~/edk2#
</pre>

Related

ESBuild and postcss are adding \ (slashes) into my css and I can't figure out why

I have been coding along and have started to get these warning on compile now.
It seems that I have started to use "[:has" and the precompiler can't handle that. If this output is ok, I am ok with it, but if there is something that can be done to fix this, it would be great.
My console log...
▲ [WARNING] Expected "]" to go with "[" [css-syntax-error]
postcss:/home/encompass/Projects/SNAP/LOCAL/pp_alue/app/public/wp-content/themes/ppshp-modular-theme/src/assets/styles/style.pcss:9561:36:
9561 │ .language-switcher-container[\:has\(.language-switcher-selected\[aria-expanded\%3D\%22true\%2...
│ ^
╵ ]
The unbalanced "[" is here:
postcss:/home/encompass/Projects/SNAP/LOCAL/pp_alue/app/public/wp-content/themes/ppshp-modular-theme/src/assets/styles/style.pcss:9561:28:
9561 │ .language-switcher-container[\:has\(.language-switcher-selected\[aria-expanded\%3D\%22true\%2...
╵ ^
▲ [WARNING] Unexpected "]" [css-syntax-error]
postcss:/home/encompass/Projects/SNAP/LOCAL/pp_alue/app/public/wp-content/themes/ppshp-modular-theme/src/assets/styles/style.pcss:9561:98:
9561 │ ...e-switcher-container[\:has\(.language-switcher-selected\[aria-expanded\%3D\%22true\%22\]\)] {
╵
Looking into my css it does seem to be adding these "" (slashes) to the code. It is Halloween season and all, but I don't need any more slashes then I put in the code.'
Example of the problem output...
.language-switcher-container[\:has\(.language-switcher-selected\[aria-expanded\%3D\%22true\%22\]\)] {
background-color: var(--colors-primary-blue-10);
border-radius: 4px 4px 0 0;
}
.language-switcher-container:has(.language-switcher-selected[aria-expanded="true"]) {
background-color: var(--colors-primary-blue-10);
border-radius: 4px 4px 0 0;
}
My build configuration...
I seems that if I change the stage to 3 the errors stop, so it certainly seems to have something to do with postCssPresetEnv
const stylesPlugin = [
postCssPlugin({
plugins: [
postCssPresetEnv({ stage: 1}),
postCssEasyImport({ extensions: ['.css', '.pcss'] }),
postCssExtendRule,
postCssReporter(),
url({ url: 'inline' })
],
}),
];
const lint = async () => {
try {
const eslint = new ESLint();
const results = await eslint.lintFiles(['src/**/*.js']);
const formatter = await eslint.loadFormatter('stylish');
const resultText = formatter.format(results);
console.log(resultText);
} catch (err) {
console.error(err);
}
};
const buildScripts = async () => {
console.log('Building scripts ...');
try {
const timerStart = Date.now();
// Build code
await esbuild.build({
entryPoints: [
'src/endpoints/scripts.js',
'src/endpoints/scripts.admin.js',
],
format: 'iife',
bundle: true,
minify: true,
outdir: 'dist/',
plugins: [...stylesPlugin],
sourcemap: true,
external: ['*.svg', '*.woff', '*.css', '*.jpg', '*.png'],
});
const timerEnd = Date.now();
console.log(`Done! Scripts built in ${timerEnd - timerStart} ms.`);
} catch (error) {
console.log(error);
}
};
Other notes:
I checked for character encoding issues, and they don't seem to be anything but UTF-8
I am using the latest node.
node v18.12.0 (npm v8.19.2)
I eventually figure out how to at least make the error go away.
I stopped using :has() selectors as they are not compatible with firefox at the time of this post. I think eslint was bailing because of this and causes further errors down the pipeline.

WebPack React - Support for the experimental syntax 'jsx' isn't currently enabled

I've checked every other question and none seem to provide an answer that work for me.
Getting this error when attempting to compile:
27 |
28 | return (
> 29 | <G x={logoPosition} y={logoPosition}>
| ^
30 | <Defs>
31 | <ClipPath id='clip-logo-background'>
32 | <Rect
Add #babel/preset-react (https://git.io/JfeDR) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add #babel/plugin-syntax-jsx (https://git.io/vb4yA) to the 'plugins' section to enable parsing.
This is the code that is causing it:
import * as React from "react";
import WalletConnectProvider from "#walletconnect/react-native-dapp";
import AsyncStorage from "#react-native-async-storage/async-storage";
export default function WalletConnector() {
return (
<WalletConnectProvider
bridge="https://bridge.walletconnect.org"
clientMeta={{
description: "Connect with WalletConnect",
url: "https://walletconnect.org",
icons: ["https://walletconnect.org/walletconnect-logo.png"],
name: "WalletConnect",
}}
redirectUrl={window.location.origin}
storageOptions={{
asyncStorage: AsyncStorage as any,
}}
>
<>{/* awesome app here */}</>
</WalletConnectProvider>
);
}
This is the package causing it: "#walletconnect/react-native-dapp": "^1.4.1"
I've added .babelrc with the following and problem persists.
"presets": ["#babel/preset-env", "#babel/preset-react"]
}
I've also added babel.confis.json which didn't help and added a babel section in my package.json with the proper plugins/presets and still no change.
For bare CLI project update below files.
Reference: https://github.com/WalletConnect/walletconnect-monorepo/issues/753
Update metro-config.js
module.exports = {
resolver: {
extraNodeModules: require("node-libs-react-native")
},
. . .
};
Add following statement in index.js
require("node-libs-react-native/globals.js");

React warning "export 'GetTheFilteredPosts' was not found in

I am trying to export/import two functions:
export function LoadMoreButtonLogic(
...
) {
...
return ...
}
export function GetTheFilteredPosts(
...
) {
return (...);
}
And importing them this way in another file:
import { GetTheFilteredPosts } from '#src/components/commons/load-more-button/LoadMoreButton';
import { LoadMoreButtonLogic } from '#src/components/commons/load-more-button/LoadMoreButton';
However I am getting such warnings:
warning "export 'GetTheFilteredPosts' was not found in '#src/components/commons/load-more-button/LoadMoreButton'
warning "export 'LoadMoreButtonLogic' was not found in '#src/components/commons/load-more-button/LoadMoreButton'
But... if I rename the file LoadMoreButton.js to the name of a function exported or I rename the name of the exported function to match the filename, the warning for this function disappears.
#src is setup in jsconfig:
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"#src/*": ["src/*"],
}
}
}
as well as in gatsby-config:
'#src': path.join(__dirname, './src'),
And #src is working fine in other components. It is used in tens of places.
If I try the path without # I get the same:
warning "export 'GetTheFilteredPosts' was not found in '../../../../components/commons/load-more-button/LoadMoreButton'
warning "export 'LoadMoreButtonLogic' was not found in '../../../../components/commons/load-more-button/LoadMoreButton'
What am I doing wrong?
Why can't I export them freely?

eslint error in React app persists after attempts to disable

I'm developing a Chrome extension using create-react-app. I've gotten my extension to load properly and communicate with the extension background. To get this working I had to flag the chrome global message for eslint.
// This works perfectly
/* global chrome */
let port = chrome.runtime.connect('extensionID',
{name: "bgconnect"})
// Background responses are handled here
port.onMessage.addListener(msg => {
console.log('Got message from background',msg)
if (msg.error) {
this.setState({error: msg.error})
}
})
When I try to add an additional chrome function using chrome.local.storage, however, I get
chrome.storage.local.get(['myKey'], result => {
if (result.myKey) {
this.setState({signedIn: true})
}
})
TypeError: Cannot read property 'local' of undefined
Here's what I've tried:
Verify manifest.js
...
"permissions": [
"<all_urls>",
"tabs",
"storage"
]
...
eslint 1
/* global chrome */
chrome.storage.local.get(['myKey'], result => {
if (result.myKey) {
this.setState({signedIn: true})
}
})
eslint 2
/* eslint-disable no-undef */
chrome.storage.local.get(['myKey'], result => {
if (result.myKey) {
this.setState({signedIn: true})
}
})
/* eslint-enable no-undef */
eslint 3
// eslint-disable-next-line
chrome.storage.local.get(['myKey'], result => {
if (result.myKey) {
this.setState({signedIn: true})
}
})
package.json
...
"eslintConfig": {
"extends": "react-app",
"globals": {
"chrome": true
}
},
...
I still get the same error despite making these changes.
One other weird thing is in console (Windows Powershell) it compiles, while normally when there is an error in the browser it's mirrored here. Instead the console output is:
Compiled successfully!
You can now view extension in the browser.
Local: http://localhost:3000/
On Your Network: http://10.0.0.110:3000/
Note that the development build is not optimized.
To create a production build, use npm run build.
Here's a screen shot of the error message. This happens in create-react-app when you run the app using npm start from the project folder.

Jest + Next/Dynamic is throwing not supported error

I am facing this error when writing test for my component which has:
...
const Rating = dynamic(import('components/Rating'));
...
I am using also jest-next-dynamic:
beforeAll(async () => {
await preloadAll();
});
and then I am getting this:
Not supported
4 | import dynamic from 'next/dynamic';
Any idea of what that could be?
I was able to fix it by using "babel-plugin-transform-dynamic-import" package.
yarn add babel-plugin-transform-dynamic-import
and then I added this on .babelrc:
...
"plugins": [
["transform-dynamic-import"],
...
]
...
It solved my issues. Snapshot being generated properly again.

Resources