<div dir="ltr"><div dir="ltr">Hey Steven,<div><br></div><div>So there's a pip requirement file that should keep things in lockstep in terms of dependencies. The initial plan is to have every commit into basetools be released. Changes in BaseTools will be submitted and then edk2 will be updated to consume that new feature. So it will simply be a new patch in the series when people submit. So whenever there's some sort of change where it is required in lockstep, the expectation is that basetools will be updated first. </div><div><br></div><div>Right now, the basetools repo doesn't try to build with EDK2 (though that is coming). It does unit tests, code coverage, linting, and a few other things (most of them won't cause an error, due to it breaking current builds). But we already do CI with EDK2 in the pytools repos (<a href="https://github.com/tianocore/edk2-pytool-extensions">https://github.com/tianocore/edk2-pytool-extensions</a>) where we clone, install locally, and test. It's run as an optional test and the expectation is that build breaks should be well-understood and tested by the person submitting the breaking change. The goal eventually is for the unit tests to provide a very good litmus test for whether it will break edk2 or not, but BaseTools is currently at 4% coverage, so we have a good ways to go there.</div><div><br></div><div>Great question!<br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr">-Matthew Carlson</div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 2, 2020 at 8:54 PM Shi, Steven <<a href="mailto:steven.shi@intel.com">steven.shi@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Carlson,<br>
I'd like to know the validation process of the BaseTools patch in Open CI after we fully adopt the pip based BaseTools. There will be two different repos as edk2-basetools and edk2,  and the two repos closely depend on each other to do the build validation. We might need a mechanism to sync the two repos dependency when we want to change the edk2-basetools. When I send a patch to change edk2-basetools, is there a mechanism in Open CI to let the build agent not to use the pre-installed pip basetools, but to clone the new branch version of edk2-basetools, build&install the new version basetools, and force the edk2 to finish build with the new version basetools?<br>
<br>
<br>
Thanks<br>
Steven Shi<br>
<br>
> -----Original Message-----<br>
> From: <a href="mailto:devel@edk2.groups.io" target="_blank">devel@edk2.groups.io</a> <<a href="mailto:devel@edk2.groups.io" target="_blank">devel@edk2.groups.io</a>> On Behalf Of<br>
> Matthew Carlson<br>
> Sent: Tuesday, November 3, 2020 8:36 AM<br>
> To: <a href="mailto:devel@edk2.groups.io" target="_blank">devel@edk2.groups.io</a><br>
> Cc: Feng, Bob C <<a href="mailto:bob.c.feng@intel.com" target="_blank">bob.c.feng@intel.com</a>>; Liming Gao<br>
> <<a href="mailto:gaoliming@byosoft.com.cn" target="_blank">gaoliming@byosoft.com.cn</a>>; Chen, Christine <<a href="mailto:yuwei.chen@intel.com" target="_blank">yuwei.chen@intel.com</a>>;<br>
> Sean Brogan <<a href="mailto:sean.brogan@microsoft.com" target="_blank">sean.brogan@microsoft.com</a>>; Kinney, Michael D<br>
> <<a href="mailto:michael.d.kinney@intel.com" target="_blank">michael.d.kinney@intel.com</a>><br>
> Subject: [edk2-devel] [PATCH v1 0/1] Use Pip version of BaseTools<br>
> <br>
> From: Matthew Carlson <<a href="mailto:matthewfcarlson@gmail.com" target="_blank">matthewfcarlson@gmail.com</a>><br>
> <br>
> Hello all,<br>
> <br>
> This patch adds the capability to leverage the pip based BaseTools.<br>
> The BaseTools master is current with EDK2 master (as of 3pm Nov 2, 2020).<br>
> While I could rehash a lot of what has gone out on the mailing list, I think<br>
> it might be better just to link the discussion.<br>
> <br>
> In a nutshell, setup will detect if edk2-basetools is installed, and if it<br>
> is, use the other verison of BinWrappers (BinPipWrappers). This should<br>
> provide an easy and convenient way to transition over. By default, CI<br>
> uses the pip version.<br>
> <br>
> The pipeline is setup. Every commit that gets pushed to master on basetools<br>
> get published to pypi and tagged. This should offer bisectability and easier<br>
> debugging. Additionally, the pip requirements file tracks a specific version.<br>
> <br>
> We'd like to set a date for when PR's no longer go into EDK2 for BaseTools<br>
> and instead go exclusively into the new basetools repo.<br>
> <br>
> Ref: <a href="https://edk2.groups.io/g/devel/topic/76572200#64993" rel="noreferrer" target="_blank">https://edk2.groups.io/g/devel/topic/76572200#64993</a><br>
> Ref: <a href="https://github.com/tianocore/edk2-basetools" rel="noreferrer" target="_blank">https://github.com/tianocore/edk2-basetools</a><br>
> Ref: <a href="https://github.com/tianocore/edk2/pull/1072" rel="noreferrer" target="_blank">https://github.com/tianocore/edk2/pull/1072</a><br>
> <br>
> Cc: Bob Feng <<a href="mailto:bob.c.feng@intel.com" target="_blank">bob.c.feng@intel.com</a>><br>
> Cc: Liming Gao <<a href="mailto:gaoliming@byosoft.com.cn" target="_blank">gaoliming@byosoft.com.cn</a>><br>
> Cc: Yuwei Chen <<a href="mailto:yuwei.chen@intel.com" target="_blank">yuwei.chen@intel.com</a>><br>
> Cc: Sean Brogan <<a href="mailto:sean.brogan@microsoft.com" target="_blank">sean.brogan@microsoft.com</a>><br>
> Cc: Michael Kinney <<a href="mailto:michael.d.kinney@intel.com" target="_blank">michael.d.kinney@intel.com</a>><br>
> <br>
> Matthew Carlson (1):<br>
>   BaseTools: Use pip module if available, CI uses it by default<br>
> <br>
>  .pytool/CISettings.py                                                               |  20 +-<br>
>  BaseTools/BinPipWrappers/PosixLike/AmlToC                                           |  14 +<br>
>  BaseTools/BinPipWrappers/PosixLike/BPDG                                             |  12 +<br>
>  BaseTools/BinPipWrappers/PosixLike/Brotli                                           |  29 ++<br>
>  BaseTools/BinPipWrappers/PosixLike/BrotliCompress                                   |<br>
> 34 ++<br>
>  BaseTools/BinPipWrappers/PosixLike/DevicePath                                       |  29<br>
> ++<br>
>  BaseTools/BinPipWrappers/PosixLike/Ecc                                              |  13 +<br>
>  BaseTools/BinPipWrappers/PosixLike/EfiRom                                           |  29<br>
> ++<br>
>  BaseTools/BinPipWrappers/PosixLike/GenCrc32                                         |  29<br>
> ++<br>
>  BaseTools/BinPipWrappers/PosixLike/GenDepex                                         |  12<br>
> +<br>
>  BaseTools/BinPipWrappers/PosixLike/GenFds                                           |  12 +<br>
>  BaseTools/BinPipWrappers/PosixLike/GenFfs                                           |  29 ++<br>
>  BaseTools/BinPipWrappers/PosixLike/GenFv                                            |  29 ++<br>
>  BaseTools/BinPipWrappers/PosixLike/GenFw                                            |  29<br>
> ++<br>
>  BaseTools/BinPipWrappers/PosixLike/GenPatchPcdTable                                 |<br>
> 12 +<br>
>  BaseTools/BinPipWrappers/PosixLike/GenSec                                           |  29<br>
> ++<br>
>  BaseTools/BinPipWrappers/PosixLike/GenerateCapsule                                  |<br>
> 12 +<br>
>  BaseTools/BinPipWrappers/PosixLike/LzmaCompress                                     |<br>
> 29 ++<br>
>  BaseTools/BinPipWrappers/PosixLike/LzmaF86Compress                                  |<br>
> 19 +<br>
>  BaseTools/BinPipWrappers/PosixLike/PatchPcdValue                                    |<br>
> 12 +<br>
>  BaseTools/BinPipWrappers/PosixLike/Pkcs7Sign                                        |  12 +<br>
>  BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256GenerateKeys<br>
> |  12 +<br>
>  BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256Sign<br>
> |  12 +<br>
>  BaseTools/BinPipWrappers/PosixLike/Split                                            |  29 ++<br>
>  BaseTools/BinPipWrappers/PosixLike/TargetTool                                       |  12<br>
> +<br>
>  BaseTools/BinPipWrappers/PosixLike/TianoCompress                                    |<br>
> 29 ++<br>
>  BaseTools/BinPipWrappers/PosixLike/Trim                                             |  13 +<br>
>  BaseTools/BinPipWrappers/PosixLike/UPT                                              |  12 +<br>
>  BaseTools/BinPipWrappers/PosixLike/VfrCompile                                       |  29<br>
> ++<br>
>  BaseTools/BinPipWrappers/PosixLike/VolInfo                                          |  29 ++<br>
>  BaseTools/BinPipWrappers/PosixLike/build                                            |  12 +<br>
>  BaseTools/{BinWrappers =><br>
> BinPipWrappers}/PosixLike/posix_path_env.yaml             |   3 +-<br>
>  BaseTools/BinPipWrappers/WindowsLike/AmlToC.bat                                     |<br>
> 3 +<br>
>  BaseTools/BinPipWrappers/WindowsLike/BPDG.bat                                       |<br>
> 3 +<br>
>  BaseTools/BinPipWrappers/WindowsLike/BrotliCompress.bat<br>
> |  55 ++<br>
>  BaseTools/BinPipWrappers/WindowsLike/Ecc.bat                                        |   3<br>
> +<br>
>  BaseTools/BinPipWrappers/WindowsLike/GenDepex.bat<br>
> |   3 +<br>
>  BaseTools/BinPipWrappers/WindowsLike/GenFds.bat                                     |<br>
> 3 +<br>
>  BaseTools/BinPipWrappers/WindowsLike/GenPatchPcdTable.bat<br>
> |   3 +<br>
>  BaseTools/BinPipWrappers/WindowsLike/GenerateCapsule.bat<br>
> |   1 +<br>
>  BaseTools/BinPipWrappers/WindowsLike/PatchPcdValue.bat<br>
> |   3 +<br>
>  BaseTools/BinPipWrappers/WindowsLike/Pkcs7Sign.bat                                  |<br>
> 3 +<br>
>  BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256GenerateKeys.bat<br>
> |   1 +<br>
>  BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256Sign.bat<br>
> |   3 +<br>
>  BaseTools/BinPipWrappers/WindowsLike/TargetTool.bat                                 |<br>
> 3 +<br>
>  BaseTools/BinPipWrappers/WindowsLike/Trim.bat                                       |   3<br>
> +<br>
>  BaseTools/BinPipWrappers/WindowsLike/UPT.bat                                        |   3<br>
> +<br>
>  BaseTools/BinPipWrappers/WindowsLike/build.bat                                      |   3<br>
> +<br>
>  BaseTools/{BinWrappers =><br>
> BinPipWrappers}/WindowsLike/win_build_tools_path_env.yaml |   3 +-<br>
>  BaseTools/BinWrappers/PosixLike/posix_path_env.yaml                                 |<br>
> 1 +<br>
>  BaseTools/BinWrappers/WindowsLike/win_build_tools_path_env.yaml<br>
> |   1 +<br>
>  BaseTools/BuildEnv                                                                  | 548 ++++++++++---<br>
> -------<br>
>  BaseTools/Scripts/PatchCheck.py                                                     |   1 +<br>
>  BaseTools/toolsetup.bat                                                             |  19 +<br>
>  pip-requirements.txt                                                                |   1 +<br>
>  55 files changed, 1035 insertions(+), 272 deletions(-)<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/AmlToC<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/BPDG<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/Brotli<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/BrotliCompress<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/DevicePath<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/Ecc<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/EfiRom<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenCrc32<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenDepex<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenFds<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenFfs<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenFv<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenFw<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/PosixLike/GenPatchPcdTable<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenSec<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenerateCapsule<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/LzmaCompress<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/PosixLike/LzmaF86Compress<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/PatchPcdValue<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/Pkcs7Sign<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256GenerateKeys<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256Sign<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/Split<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/TargetTool<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/TianoCompress<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/Trim<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/UPT<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/VfrCompile<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/VolInfo<br>
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/build<br>
>  copy BaseTools/{BinWrappers =><br>
> BinPipWrappers}/PosixLike/posix_path_env.yaml (71%)<br>
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/AmlToC.bat<br>
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/BPDG.bat<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/WindowsLike/BrotliCompress.bat<br>
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/Ecc.bat<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/WindowsLike/GenDepex.bat<br>
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/GenFds.bat<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/WindowsLike/GenPatchPcdTable.bat<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/WindowsLike/GenerateCapsule.bat<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/WindowsLike/PatchPcdValue.bat<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/WindowsLike/Pkcs7Sign.bat<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256GenerateKeys.bat<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256Sign.bat<br>
>  create mode 100644<br>
> BaseTools/BinPipWrappers/WindowsLike/TargetTool.bat<br>
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/Trim.bat<br>
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/UPT.bat<br>
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/build.bat<br>
>  copy BaseTools/{BinWrappers =><br>
> BinPipWrappers}/WindowsLike/win_build_tools_path_env.yaml (70%)<br>
> <br>
> --<br>
> 2.28.0.vfs.0.0<br>
> <br>
> <br>
> <br>
> <br>
> <br>
<br>
</blockquote></div>


 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr> Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/66938">View/Reply Online (#66938)</a> |    |  <a target="_blank" href="https://groups.io/mt/77996473/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>