* [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions @ 2022-11-15 0:18 Michael Kubacki 2022-11-15 0:18 ` [PATCH edk2-stable202211 v2 1/2] pip-requirements.txt: Update to edk2-pytool-library 0.12.1 Michael Kubacki ` (2 more replies) 0 siblings, 3 replies; 9+ messages in thread From: Michael Kubacki @ 2022-11-15 0:18 UTC (permalink / raw) To: devel; +Cc: Sean Brogan, Michael Kubacki, Liming Gao, Andrew Fish, Leif Lindholm From: Michael Kubacki <michael.kubacki@microsoft.com> 1. Updates edk2-pytool-library to 0.12.1 - Picks up a minor bug fix 2. Updates edk2-pytool-extensions to 0.20.0 - Picks up a major release The changes in each update are in the respective patch commit messages. CI was run against both of these patches in this pull request: https://github.com/tianocore/edk2/pull/3632 These changes are recommended to be included in the edk2-stable202211 tag for the following reasons: 1. edk2-pytool-library 0.12.0 to 0.12.1 includes a single bug fix that simply returns file paths from Edk2Path.GetContainingModules() with the original case used by the operating system. This allow case sensitive callers to match paths returned by the function correctly. This can impact flows such as PR Eval that use this function to determine which modules were impacted by a code change. Without this change PR eval may not return consistent/expected results across operating systems. 2. The edk2-pytool-library change requires edk2-pytool-extensions 0.20.0. For this reason, edk2-pytool-extensions setup.py was updated in 0.20.0 to specify 0.12.1 as the edk2-pytool-library requirement. The logic of determining a package in pytool-library (Edk2Path.GetContainingPackage()) needs a corresponding change in the edk2-pytool-extensions 0.20.0 release. Without this change, flows such as PR Eval will not have updated logic for calling the function and return incorrect results. These changes have been tested against edk2 in pytool integration testing, the PR linked above, and against similar code in Mu. V2 changes: 1. Add stable tag to patch subject 2. Explain why changes should be included in stable tag 3. Add Reviewed-by tags to patches from v1 Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Michael Kubacki <mikuback@linux.microsoft.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <quic_llindhol@quicinc.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Michael Kubacki (2): pip-requirements.txt: Update to edk2-pytool-library 0.12.1 pip-requirements.txt: Update to edk2-pytool-extensions 0.20.0 pip-requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.28.0.windows.1 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH edk2-stable202211 v2 1/2] pip-requirements.txt: Update to edk2-pytool-library 0.12.1 2022-11-15 0:18 [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions Michael Kubacki @ 2022-11-15 0:18 ` Michael Kubacki 2022-11-15 0:18 ` [PATCH edk2-stable202211 v2 2/2] pip-requirements.txt: Update to edk2-pytool-extensions 0.20.0 Michael Kubacki 2022-11-15 3:00 ` 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions gaoliming 2 siblings, 0 replies; 9+ messages in thread From: Michael Kubacki @ 2022-11-15 0:18 UTC (permalink / raw) To: devel; +Cc: Sean Brogan, Michael Kubacki, Liming Gao, Andrew Fish, Leif Lindholm From: Michael Kubacki <michael.kubacki@microsoft.com> Updates edk2-pytool-library to pick up a minor bug fix release: 0.12.0 to 0.12.1 changes: - path_utilities.py: Prevent path case modification in GetContainingModules() That change prevents the case of paths from being set to lower case when returned from the function to avoid impacting case-sensitive callers. Release notes: https://github.com/tianocore/edk2-pytool-library/releases/tag/v0.12.1 Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Michael Kubacki <mikuback@linux.microsoft.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <quic_llindhol@quicinc.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Sean Brogan <sean.brogan@microsoft.com> --- pip-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pip-requirements.txt b/pip-requirements.txt index d7e6b536f987..4393bf1d1c75 100644 --- a/pip-requirements.txt +++ b/pip-requirements.txt @@ -12,7 +12,7 @@ # https://www.python.org/dev/peps/pep-0440/#version-specifiers ## -edk2-pytool-library==0.12.0 +edk2-pytool-library==0.12.1 edk2-pytool-extensions~=0.19.1 edk2-basetools==0.1.39 antlr4-python3-runtime==4.7.1 -- 2.28.0.windows.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH edk2-stable202211 v2 2/2] pip-requirements.txt: Update to edk2-pytool-extensions 0.20.0 2022-11-15 0:18 [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions Michael Kubacki 2022-11-15 0:18 ` [PATCH edk2-stable202211 v2 1/2] pip-requirements.txt: Update to edk2-pytool-library 0.12.1 Michael Kubacki @ 2022-11-15 0:18 ` Michael Kubacki 2022-11-15 3:00 ` 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions gaoliming 2 siblings, 0 replies; 9+ messages in thread From: Michael Kubacki @ 2022-11-15 0:18 UTC (permalink / raw) To: devel; +Cc: Sean Brogan, Michael Kubacki, Liming Gao, Andrew Fish, Leif Lindholm From: Michael Kubacki <michael.kubacki@microsoft.com> Updates edk2-pytool-extensions to pick up a major version release: 0.19.1 to 0.20.0 changes: - .vscode/settings.json: Enable flake8 linting - Add Pydocstyle - Move dependabot.yml location - Fix typos in robot files - Pydocstyle Updates - Plugin Loader Updates - edk2_stuart_pr_eval: Improve robustness of path comparisons - edk2_pr_eval.py: Build all packages on file change outside package - Allow build wrappers Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Michael Kubacki <mikuback@linux.microsoft.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <quic_llindhol@quicinc.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Sean Brogan <sean.brogan@microsoft.com> --- pip-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pip-requirements.txt b/pip-requirements.txt index 4393bf1d1c75..be8c7a1c37e6 100644 --- a/pip-requirements.txt +++ b/pip-requirements.txt @@ -13,6 +13,6 @@ ## edk2-pytool-library==0.12.1 -edk2-pytool-extensions~=0.19.1 +edk2-pytool-extensions~=0.20.0 edk2-basetools==0.1.39 antlr4-python3-runtime==4.7.1 -- 2.28.0.windows.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions 2022-11-15 0:18 [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions Michael Kubacki 2022-11-15 0:18 ` [PATCH edk2-stable202211 v2 1/2] pip-requirements.txt: Update to edk2-pytool-library 0.12.1 Michael Kubacki 2022-11-15 0:18 ` [PATCH edk2-stable202211 v2 2/2] pip-requirements.txt: Update to edk2-pytool-extensions 0.20.0 Michael Kubacki @ 2022-11-15 3:00 ` gaoliming 2022-11-15 3:17 ` [edk2-devel] " Michael Kubacki 2 siblings, 1 reply; 9+ messages in thread From: gaoliming @ 2022-11-15 3:00 UTC (permalink / raw) To: mikuback, devel Cc: 'Sean Brogan', 'Andrew Fish', 'Leif Lindholm', 'Kinney, Michael D' Michael: I have no comments to merge this patch set for the stable tag. Thanks Liming > -----邮件原件----- > 发件人: mikuback@linux.microsoft.com <mikuback@linux.microsoft.com> > 发送时间: 2022年11月15日 8:19 > 收件人: devel@edk2.groups.io > 抄送: Sean Brogan <sean.brogan@microsoft.com>; Michael Kubacki > <mikuback@linux.microsoft.com>; Liming Gao <gaoliming@byosoft.com.cn>; > Andrew Fish <afish@apple.com>; Leif Lindholm <quic_llindhol@quicinc.com> > 主题: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions > > From: Michael Kubacki <michael.kubacki@microsoft.com> > > 1. Updates edk2-pytool-library to 0.12.1 > - Picks up a minor bug fix > > 2. Updates edk2-pytool-extensions to 0.20.0 > - Picks up a major release > > The changes in each update are in the respective patch commit > messages. > > CI was run against both of these patches in this pull request: > https://github.com/tianocore/edk2/pull/3632 > > These changes are recommended to be included in the edk2-stable202211 > tag for the following reasons: > > 1. edk2-pytool-library 0.12.0 to 0.12.1 includes a single bug fix > that simply returns file paths from > Edk2Path.GetContainingModules() with the original case used by > the operating system. This allow case sensitive callers to match > paths returned by the function correctly. > > This can impact flows such as PR Eval that use this function to > determine which modules were impacted by a code change. Without > this change PR eval may not return consistent/expected results > across operating systems. > > 2. The edk2-pytool-library change requires edk2-pytool-extensions > 0.20.0. For this reason, edk2-pytool-extensions setup.py was > updated in 0.20.0 to specify 0.12.1 as the edk2-pytool-library > requirement. The logic of determining a package in pytool-library > (Edk2Path.GetContainingPackage()) needs a corresponding change in > the edk2-pytool-extensions 0.20.0 release. > > Without this change, flows such as PR Eval will not have updated > logic for calling the function and return incorrect results. > > These changes have been tested against edk2 in pytool integration > testing, the PR linked above, and against similar code in Mu. > > V2 changes: > > 1. Add stable tag to patch subject > 2. Explain why changes should be included in stable tag > 3. Add Reviewed-by tags to patches from v1 > > Cc: Sean Brogan <sean.brogan@microsoft.com> > Cc: Michael Kubacki <mikuback@linux.microsoft.com> > Cc: Liming Gao <gaoliming@byosoft.com.cn> > Cc: Andrew Fish <afish@apple.com> > Cc: Leif Lindholm <quic_llindhol@quicinc.com> > Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> > > Michael Kubacki (2): > pip-requirements.txt: Update to edk2-pytool-library 0.12.1 > pip-requirements.txt: Update to edk2-pytool-extensions 0.20.0 > > pip-requirements.txt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > -- > 2.28.0.windows.1 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions 2022-11-15 3:00 ` 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions gaoliming @ 2022-11-15 3:17 ` Michael Kubacki 2022-11-15 3:45 ` Michael D Kinney 0 siblings, 1 reply; 9+ messages in thread From: Michael Kubacki @ 2022-11-15 3:17 UTC (permalink / raw) To: devel, gaoliming Cc: 'Sean Brogan', 'Andrew Fish', 'Leif Lindholm', 'Kinney, Michael D' I would like to elaborate on some of the information in this cover letter to better emphasize why this should be included in the edk2-stable202211 stable tag. These releases of edk2-pytool-library and edk2-pytool-extensions must be paired together. The edk2-pytool-library release already being used by edk2 (0.12.0) requires the edk2-pytool-extensions 0.20.0 release. The updates in this series should be considered "required" as opposed to "recommended" to ensure compatibility in the stable tag release. The reasoning for updating edk2-pytool-library from 0.12.0 to 0.12.1 is straightforward, it fixes the bug described in the cover letter. The issue with not taking in the 0.20.0 edk2-pytool-extensions update is that PR Evaluation, which is used in CI to determine what packages to build, will not build the code in some cases causing build failures to potentially creep through. For example, without this update, a PR with a file only changed outside a package, such as pip-requirements.txt or a file in .pytool, will not trigger a full build to test the change as a file is not modified within an edk2 package. Thanks, Michael On 11/14/2022 10:00 PM, gaoliming via groups.io wrote: > Michael: > I have no comments to merge this patch set for the stable tag. > > Thanks > Liming >> -----邮件原件----- >> 发件人: mikuback@linux.microsoft.com <mikuback@linux.microsoft.com> >> 发送时间: 2022年11月15日 8:19 >> 收件人: devel@edk2.groups.io >> 抄送: Sean Brogan <sean.brogan@microsoft.com>; Michael Kubacki >> <mikuback@linux.microsoft.com>; Liming Gao <gaoliming@byosoft.com.cn>; >> Andrew Fish <afish@apple.com>; Leif Lindholm <quic_llindhol@quicinc.com> >> 主题: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions >> >> From: Michael Kubacki <michael.kubacki@microsoft.com> >> >> 1. Updates edk2-pytool-library to 0.12.1 >> - Picks up a minor bug fix >> >> 2. Updates edk2-pytool-extensions to 0.20.0 >> - Picks up a major release >> >> The changes in each update are in the respective patch commit >> messages. >> >> CI was run against both of these patches in this pull request: >> https://github.com/tianocore/edk2/pull/3632 >> >> These changes are recommended to be included in the edk2-stable202211 >> tag for the following reasons: >> >> 1. edk2-pytool-library 0.12.0 to 0.12.1 includes a single bug fix >> that simply returns file paths from >> Edk2Path.GetContainingModules() with the original case used by >> the operating system. This allow case sensitive callers to match >> paths returned by the function correctly. >> >> This can impact flows such as PR Eval that use this function to >> determine which modules were impacted by a code change. Without >> this change PR eval may not return consistent/expected results >> across operating systems. >> >> 2. The edk2-pytool-library change requires edk2-pytool-extensions >> 0.20.0. For this reason, edk2-pytool-extensions setup.py was >> updated in 0.20.0 to specify 0.12.1 as the edk2-pytool-library >> requirement. The logic of determining a package in pytool-library >> (Edk2Path.GetContainingPackage()) needs a corresponding change in >> the edk2-pytool-extensions 0.20.0 release. >> >> Without this change, flows such as PR Eval will not have updated >> logic for calling the function and return incorrect results. >> >> These changes have been tested against edk2 in pytool integration >> testing, the PR linked above, and against similar code in Mu. >> >> V2 changes: >> >> 1. Add stable tag to patch subject >> 2. Explain why changes should be included in stable tag >> 3. Add Reviewed-by tags to patches from v1 >> >> Cc: Sean Brogan <sean.brogan@microsoft.com> >> Cc: Michael Kubacki <mikuback@linux.microsoft.com> >> Cc: Liming Gao <gaoliming@byosoft.com.cn> >> Cc: Andrew Fish <afish@apple.com> >> Cc: Leif Lindholm <quic_llindhol@quicinc.com> >> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> >> >> Michael Kubacki (2): >> pip-requirements.txt: Update to edk2-pytool-library 0.12.1 >> pip-requirements.txt: Update to edk2-pytool-extensions 0.20.0 >> >> pip-requirements.txt | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> -- >> 2.28.0.windows.1 > > > > > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions 2022-11-15 3:17 ` [edk2-devel] " Michael Kubacki @ 2022-11-15 3:45 ` Michael D Kinney 2022-11-15 14:35 ` Michael Kubacki 0 siblings, 1 reply; 9+ messages in thread From: Michael D Kinney @ 2022-11-15 3:45 UTC (permalink / raw) To: Michael Kubacki, devel@edk2.groups.io, Gao, Liming, Kinney, Michael D Cc: 'Sean Brogan', 'Andrew Fish', 'Leif Lindholm' Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Approved for edk2-stable202211 Mike > -----Original Message----- > From: Michael Kubacki <mikuback@linux.microsoft.com> > Sent: Monday, November 14, 2022 7:18 PM > To: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn> > Cc: 'Sean Brogan' <sean.brogan@microsoft.com>; 'Andrew Fish' <afish@apple.com>; 'Leif Lindholm' <quic_llindhol@quicinc.com>; > Kinney, Michael D <michael.d.kinney@intel.com> > Subject: Re: [edk2-devel] 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions > > I would like to elaborate on some of the information in this cover > letter to better emphasize why this should be included in the > edk2-stable202211 stable tag. > > These releases of edk2-pytool-library and edk2-pytool-extensions must be > paired together. The edk2-pytool-library release already being used by > edk2 (0.12.0) requires the edk2-pytool-extensions 0.20.0 release. > > The updates in this series should be considered "required" as opposed to > "recommended" to ensure compatibility in the stable tag release. > > The reasoning for updating edk2-pytool-library from 0.12.0 to 0.12.1 is > straightforward, it fixes the bug described in the cover letter. > > The issue with not taking in the 0.20.0 edk2-pytool-extensions update is > that PR Evaluation, which is used in CI to determine what packages to > build, will not build the code in some cases causing build failures to > potentially creep through. > > For example, without this update, a PR with a file only changed outside > a package, such as pip-requirements.txt or a file in .pytool, will not > trigger a full build to test the change as a file is not modified within > an edk2 package. > > Thanks, > Michael > > On 11/14/2022 10:00 PM, gaoliming via groups.io wrote: > > Michael: > > I have no comments to merge this patch set for the stable tag. > > > > Thanks > > Liming > >> -----邮件原件----- > >> 发件人: mikuback@linux.microsoft.com <mikuback@linux.microsoft.com> > >> 发送时间: 2022年11月15日 8:19 > >> 收件人: devel@edk2.groups.io > >> 抄送: Sean Brogan <sean.brogan@microsoft.com>; Michael Kubacki > >> <mikuback@linux.microsoft.com>; Liming Gao <gaoliming@byosoft.com.cn>; > >> Andrew Fish <afish@apple.com>; Leif Lindholm <quic_llindhol@quicinc.com> > >> 主题: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions > >> > >> From: Michael Kubacki <michael.kubacki@microsoft.com> > >> > >> 1. Updates edk2-pytool-library to 0.12.1 > >> - Picks up a minor bug fix > >> > >> 2. Updates edk2-pytool-extensions to 0.20.0 > >> - Picks up a major release > >> > >> The changes in each update are in the respective patch commit > >> messages. > >> > >> CI was run against both of these patches in this pull request: > >> https://github.com/tianocore/edk2/pull/3632 > >> > >> These changes are recommended to be included in the edk2-stable202211 > >> tag for the following reasons: > >> > >> 1. edk2-pytool-library 0.12.0 to 0.12.1 includes a single bug fix > >> that simply returns file paths from > >> Edk2Path.GetContainingModules() with the original case used by > >> the operating system. This allow case sensitive callers to match > >> paths returned by the function correctly. > >> > >> This can impact flows such as PR Eval that use this function to > >> determine which modules were impacted by a code change. Without > >> this change PR eval may not return consistent/expected results > >> across operating systems. > >> > >> 2. The edk2-pytool-library change requires edk2-pytool-extensions > >> 0.20.0. For this reason, edk2-pytool-extensions setup.py was > >> updated in 0.20.0 to specify 0.12.1 as the edk2-pytool-library > >> requirement. The logic of determining a package in pytool-library > >> (Edk2Path.GetContainingPackage()) needs a corresponding change in > >> the edk2-pytool-extensions 0.20.0 release. > >> > >> Without this change, flows such as PR Eval will not have updated > >> logic for calling the function and return incorrect results. > >> > >> These changes have been tested against edk2 in pytool integration > >> testing, the PR linked above, and against similar code in Mu. > >> > >> V2 changes: > >> > >> 1. Add stable tag to patch subject > >> 2. Explain why changes should be included in stable tag > >> 3. Add Reviewed-by tags to patches from v1 > >> > >> Cc: Sean Brogan <sean.brogan@microsoft.com> > >> Cc: Michael Kubacki <mikuback@linux.microsoft.com> > >> Cc: Liming Gao <gaoliming@byosoft.com.cn> > >> Cc: Andrew Fish <afish@apple.com> > >> Cc: Leif Lindholm <quic_llindhol@quicinc.com> > >> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> > >> > >> Michael Kubacki (2): > >> pip-requirements.txt: Update to edk2-pytool-library 0.12.1 > >> pip-requirements.txt: Update to edk2-pytool-extensions 0.20.0 > >> > >> pip-requirements.txt | 4 ++-- > >> 1 file changed, 2 insertions(+), 2 deletions(-) > >> > >> -- > >> 2.28.0.windows.1 > > > > > > > > > > > > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions 2022-11-15 3:45 ` Michael D Kinney @ 2022-11-15 14:35 ` Michael Kubacki 2022-11-16 21:46 ` Michael D Kinney 0 siblings, 1 reply; 9+ messages in thread From: Michael Kubacki @ 2022-11-15 14:35 UTC (permalink / raw) To: devel, michael.d.kinney, Gao, Liming Cc: 'Sean Brogan', 'Andrew Fish', 'Leif Lindholm' The pull request is rebased and the commits include all Reviewed-by tags. https://github.com/tianocore/edk2/pull/3632 Thanks, Michael On 11/14/2022 10:45 PM, Michael D Kinney wrote: > Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> > > Approved for edk2-stable202211 > > Mike > >> -----Original Message----- >> From: Michael Kubacki <mikuback@linux.microsoft.com> >> Sent: Monday, November 14, 2022 7:18 PM >> To: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn> >> Cc: 'Sean Brogan' <sean.brogan@microsoft.com>; 'Andrew Fish' <afish@apple.com>; 'Leif Lindholm' <quic_llindhol@quicinc.com>; >> Kinney, Michael D <michael.d.kinney@intel.com> >> Subject: Re: [edk2-devel] 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions >> >> I would like to elaborate on some of the information in this cover >> letter to better emphasize why this should be included in the >> edk2-stable202211 stable tag. >> >> These releases of edk2-pytool-library and edk2-pytool-extensions must be >> paired together. The edk2-pytool-library release already being used by >> edk2 (0.12.0) requires the edk2-pytool-extensions 0.20.0 release. >> >> The updates in this series should be considered "required" as opposed to >> "recommended" to ensure compatibility in the stable tag release. >> >> The reasoning for updating edk2-pytool-library from 0.12.0 to 0.12.1 is >> straightforward, it fixes the bug described in the cover letter. >> >> The issue with not taking in the 0.20.0 edk2-pytool-extensions update is >> that PR Evaluation, which is used in CI to determine what packages to >> build, will not build the code in some cases causing build failures to >> potentially creep through. >> >> For example, without this update, a PR with a file only changed outside >> a package, such as pip-requirements.txt or a file in .pytool, will not >> trigger a full build to test the change as a file is not modified within >> an edk2 package. >> >> Thanks, >> Michael >> >> On 11/14/2022 10:00 PM, gaoliming via groups.io wrote: >>> Michael: >>> I have no comments to merge this patch set for the stable tag. >>> >>> Thanks >>> Liming >>>> -----邮件原件----- >>>> 发件人: mikuback@linux.microsoft.com <mikuback@linux.microsoft.com> >>>> 发送时间: 2022年11月15日 8:19 >>>> 收件人: devel@edk2.groups.io >>>> 抄送: Sean Brogan <sean.brogan@microsoft.com>; Michael Kubacki >>>> <mikuback@linux.microsoft.com>; Liming Gao <gaoliming@byosoft.com.cn>; >>>> Andrew Fish <afish@apple.com>; Leif Lindholm <quic_llindhol@quicinc.com> >>>> 主题: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions >>>> >>>> From: Michael Kubacki <michael.kubacki@microsoft.com> >>>> >>>> 1. Updates edk2-pytool-library to 0.12.1 >>>> - Picks up a minor bug fix >>>> >>>> 2. Updates edk2-pytool-extensions to 0.20.0 >>>> - Picks up a major release >>>> >>>> The changes in each update are in the respective patch commit >>>> messages. >>>> >>>> CI was run against both of these patches in this pull request: >>>> https://github.com/tianocore/edk2/pull/3632 >>>> >>>> These changes are recommended to be included in the edk2-stable202211 >>>> tag for the following reasons: >>>> >>>> 1. edk2-pytool-library 0.12.0 to 0.12.1 includes a single bug fix >>>> that simply returns file paths from >>>> Edk2Path.GetContainingModules() with the original case used by >>>> the operating system. This allow case sensitive callers to match >>>> paths returned by the function correctly. >>>> >>>> This can impact flows such as PR Eval that use this function to >>>> determine which modules were impacted by a code change. Without >>>> this change PR eval may not return consistent/expected results >>>> across operating systems. >>>> >>>> 2. The edk2-pytool-library change requires edk2-pytool-extensions >>>> 0.20.0. For this reason, edk2-pytool-extensions setup.py was >>>> updated in 0.20.0 to specify 0.12.1 as the edk2-pytool-library >>>> requirement. The logic of determining a package in pytool-library >>>> (Edk2Path.GetContainingPackage()) needs a corresponding change in >>>> the edk2-pytool-extensions 0.20.0 release. >>>> >>>> Without this change, flows such as PR Eval will not have updated >>>> logic for calling the function and return incorrect results. >>>> >>>> These changes have been tested against edk2 in pytool integration >>>> testing, the PR linked above, and against similar code in Mu. >>>> >>>> V2 changes: >>>> >>>> 1. Add stable tag to patch subject >>>> 2. Explain why changes should be included in stable tag >>>> 3. Add Reviewed-by tags to patches from v1 >>>> >>>> Cc: Sean Brogan <sean.brogan@microsoft.com> >>>> Cc: Michael Kubacki <mikuback@linux.microsoft.com> >>>> Cc: Liming Gao <gaoliming@byosoft.com.cn> >>>> Cc: Andrew Fish <afish@apple.com> >>>> Cc: Leif Lindholm <quic_llindhol@quicinc.com> >>>> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> >>>> >>>> Michael Kubacki (2): >>>> pip-requirements.txt: Update to edk2-pytool-library 0.12.1 >>>> pip-requirements.txt: Update to edk2-pytool-extensions 0.20.0 >>>> >>>> pip-requirements.txt | 4 ++-- >>>> 1 file changed, 2 insertions(+), 2 deletions(-) >>>> >>>> -- >>>> 2.28.0.windows.1 >>> >>> >>> >>> >>> >>> >>> > > > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions 2022-11-15 14:35 ` Michael Kubacki @ 2022-11-16 21:46 ` Michael D Kinney 2022-11-17 1:53 ` 回复: " gaoliming 0 siblings, 1 reply; 9+ messages in thread From: Michael D Kinney @ 2022-11-16 21:46 UTC (permalink / raw) To: Michael Kubacki, devel@edk2.groups.io, Gao, Liming, Kinney, Michael D Cc: 'Sean Brogan', 'Andrew Fish', 'Leif Lindholm' Hi Liming, Are you waiting for any additional input or approvals to merge this for edk2-stable202211? Thanks, Mike > -----Original Message----- > From: Michael Kubacki <mikuback@linux.microsoft.com> > Sent: Tuesday, November 15, 2022 6:36 AM > To: devel@edk2.groups.io; Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn> > Cc: 'Sean Brogan' <sean.brogan@microsoft.com>; 'Andrew Fish' <afish@apple.com>; 'Leif Lindholm' <quic_llindhol@quicinc.com> > Subject: Re: [edk2-devel] 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions > > The pull request is rebased and the commits include all Reviewed-by tags. > > https://github.com/tianocore/edk2/pull/3632 > > Thanks, > Michael > > On 11/14/2022 10:45 PM, Michael D Kinney wrote: > > Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> > > > > Approved for edk2-stable202211 > > > > Mike > > > >> -----Original Message----- > >> From: Michael Kubacki <mikuback@linux.microsoft.com> > >> Sent: Monday, November 14, 2022 7:18 PM > >> To: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn> > >> Cc: 'Sean Brogan' <sean.brogan@microsoft.com>; 'Andrew Fish' <afish@apple.com>; 'Leif Lindholm' > <quic_llindhol@quicinc.com>; > >> Kinney, Michael D <michael.d.kinney@intel.com> > >> Subject: Re: [edk2-devel] 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions > >> > >> I would like to elaborate on some of the information in this cover > >> letter to better emphasize why this should be included in the > >> edk2-stable202211 stable tag. > >> > >> These releases of edk2-pytool-library and edk2-pytool-extensions must be > >> paired together. The edk2-pytool-library release already being used by > >> edk2 (0.12.0) requires the edk2-pytool-extensions 0.20.0 release. > >> > >> The updates in this series should be considered "required" as opposed to > >> "recommended" to ensure compatibility in the stable tag release. > >> > >> The reasoning for updating edk2-pytool-library from 0.12.0 to 0.12.1 is > >> straightforward, it fixes the bug described in the cover letter. > >> > >> The issue with not taking in the 0.20.0 edk2-pytool-extensions update is > >> that PR Evaluation, which is used in CI to determine what packages to > >> build, will not build the code in some cases causing build failures to > >> potentially creep through. > >> > >> For example, without this update, a PR with a file only changed outside > >> a package, such as pip-requirements.txt or a file in .pytool, will not > >> trigger a full build to test the change as a file is not modified within > >> an edk2 package. > >> > >> Thanks, > >> Michael > >> > >> On 11/14/2022 10:00 PM, gaoliming via groups.io wrote: > >>> Michael: > >>> I have no comments to merge this patch set for the stable tag. > >>> > >>> Thanks > >>> Liming > >>>> -----邮件原件----- > >>>> 发件人: mikuback@linux.microsoft.com <mikuback@linux.microsoft.com> > >>>> 发送时间: 2022年11月15日 8:19 > >>>> 收件人: devel@edk2.groups.io > >>>> 抄送: Sean Brogan <sean.brogan@microsoft.com>; Michael Kubacki > >>>> <mikuback@linux.microsoft.com>; Liming Gao <gaoliming@byosoft.com.cn>; > >>>> Andrew Fish <afish@apple.com>; Leif Lindholm <quic_llindhol@quicinc.com> > >>>> 主题: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions > >>>> > >>>> From: Michael Kubacki <michael.kubacki@microsoft.com> > >>>> > >>>> 1. Updates edk2-pytool-library to 0.12.1 > >>>> - Picks up a minor bug fix > >>>> > >>>> 2. Updates edk2-pytool-extensions to 0.20.0 > >>>> - Picks up a major release > >>>> > >>>> The changes in each update are in the respective patch commit > >>>> messages. > >>>> > >>>> CI was run against both of these patches in this pull request: > >>>> https://github.com/tianocore/edk2/pull/3632 > >>>> > >>>> These changes are recommended to be included in the edk2-stable202211 > >>>> tag for the following reasons: > >>>> > >>>> 1. edk2-pytool-library 0.12.0 to 0.12.1 includes a single bug fix > >>>> that simply returns file paths from > >>>> Edk2Path.GetContainingModules() with the original case used by > >>>> the operating system. This allow case sensitive callers to match > >>>> paths returned by the function correctly. > >>>> > >>>> This can impact flows such as PR Eval that use this function to > >>>> determine which modules were impacted by a code change. Without > >>>> this change PR eval may not return consistent/expected results > >>>> across operating systems. > >>>> > >>>> 2. The edk2-pytool-library change requires edk2-pytool-extensions > >>>> 0.20.0. For this reason, edk2-pytool-extensions setup.py was > >>>> updated in 0.20.0 to specify 0.12.1 as the edk2-pytool-library > >>>> requirement. The logic of determining a package in pytool-library > >>>> (Edk2Path.GetContainingPackage()) needs a corresponding change in > >>>> the edk2-pytool-extensions 0.20.0 release. > >>>> > >>>> Without this change, flows such as PR Eval will not have updated > >>>> logic for calling the function and return incorrect results. > >>>> > >>>> These changes have been tested against edk2 in pytool integration > >>>> testing, the PR linked above, and against similar code in Mu. > >>>> > >>>> V2 changes: > >>>> > >>>> 1. Add stable tag to patch subject > >>>> 2. Explain why changes should be included in stable tag > >>>> 3. Add Reviewed-by tags to patches from v1 > >>>> > >>>> Cc: Sean Brogan <sean.brogan@microsoft.com> > >>>> Cc: Michael Kubacki <mikuback@linux.microsoft.com> > >>>> Cc: Liming Gao <gaoliming@byosoft.com.cn> > >>>> Cc: Andrew Fish <afish@apple.com> > >>>> Cc: Leif Lindholm <quic_llindhol@quicinc.com> > >>>> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> > >>>> > >>>> Michael Kubacki (2): > >>>> pip-requirements.txt: Update to edk2-pytool-library 0.12.1 > >>>> pip-requirements.txt: Update to edk2-pytool-extensions 0.20.0 > >>>> > >>>> pip-requirements.txt | 4 ++-- > >>>> 1 file changed, 2 insertions(+), 2 deletions(-) > >>>> > >>>> -- > >>>> 2.28.0.windows.1 > >>> > >>> > >>> > >>> > >>> > >>> > >>> > > > > > > > > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* 回复: [edk2-devel] 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions 2022-11-16 21:46 ` Michael D Kinney @ 2022-11-17 1:53 ` gaoliming 0 siblings, 0 replies; 9+ messages in thread From: gaoliming @ 2022-11-17 1:53 UTC (permalink / raw) To: 'Kinney, Michael D', 'Michael Kubacki', devel Cc: 'Sean Brogan', 'Andrew Fish', 'Leif Lindholm' Mike: I find this PR meets with some failure, and re-run it. Now, it passes CI and merged. Thanks Liming > -----邮件原件----- > 发件人: Kinney, Michael D <michael.d.kinney@intel.com> > 发送时间: 2022年11月17日 5:46 > 收件人: Michael Kubacki <mikuback@linux.microsoft.com>; > devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn>; Kinney, > Michael D <michael.d.kinney@intel.com> > 抄送: 'Sean Brogan' <sean.brogan@microsoft.com>; 'Andrew Fish' > <afish@apple.com>; 'Leif Lindholm' <quic_llindhol@quicinc.com> > 主题: RE: [edk2-devel] 回复: [PATCH edk2-stable202211 v2 0/2] Update > Pytool PIP Versions > > Hi Liming, > > Are you waiting for any additional input or approvals to merge this for > edk2-stable202211? > > Thanks, > > Mike > > > -----Original Message----- > > From: Michael Kubacki <mikuback@linux.microsoft.com> > > Sent: Tuesday, November 15, 2022 6:36 AM > > To: devel@edk2.groups.io; Kinney, Michael D > <michael.d.kinney@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn> > > Cc: 'Sean Brogan' <sean.brogan@microsoft.com>; 'Andrew Fish' > <afish@apple.com>; 'Leif Lindholm' <quic_llindhol@quicinc.com> > > Subject: Re: [edk2-devel] 回复: [PATCH edk2-stable202211 v2 0/2] Update > Pytool PIP Versions > > > > The pull request is rebased and the commits include all Reviewed-by tags. > > > > https://github.com/tianocore/edk2/pull/3632 > > > > Thanks, > > Michael > > > > On 11/14/2022 10:45 PM, Michael D Kinney wrote: > > > Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> > > > > > > Approved for edk2-stable202211 > > > > > > Mike > > > > > >> -----Original Message----- > > >> From: Michael Kubacki <mikuback@linux.microsoft.com> > > >> Sent: Monday, November 14, 2022 7:18 PM > > >> To: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn> > > >> Cc: 'Sean Brogan' <sean.brogan@microsoft.com>; 'Andrew Fish' > <afish@apple.com>; 'Leif Lindholm' > > <quic_llindhol@quicinc.com>; > > >> Kinney, Michael D <michael.d.kinney@intel.com> > > >> Subject: Re: [edk2-devel] 回复: [PATCH edk2-stable202211 v2 0/2] > Update Pytool PIP Versions > > >> > > >> I would like to elaborate on some of the information in this cover > > >> letter to better emphasize why this should be included in the > > >> edk2-stable202211 stable tag. > > >> > > >> These releases of edk2-pytool-library and edk2-pytool-extensions must > be > > >> paired together. The edk2-pytool-library release already being used by > > >> edk2 (0.12.0) requires the edk2-pytool-extensions 0.20.0 release. > > >> > > >> The updates in this series should be considered "required" as opposed to > > >> "recommended" to ensure compatibility in the stable tag release. > > >> > > >> The reasoning for updating edk2-pytool-library from 0.12.0 to 0.12.1 is > > >> straightforward, it fixes the bug described in the cover letter. > > >> > > >> The issue with not taking in the 0.20.0 edk2-pytool-extensions update is > > >> that PR Evaluation, which is used in CI to determine what packages to > > >> build, will not build the code in some cases causing build failures to > > >> potentially creep through. > > >> > > >> For example, without this update, a PR with a file only changed outside > > >> a package, such as pip-requirements.txt or a file in .pytool, will not > > >> trigger a full build to test the change as a file is not modified within > > >> an edk2 package. > > >> > > >> Thanks, > > >> Michael > > >> > > >> On 11/14/2022 10:00 PM, gaoliming via groups.io wrote: > > >>> Michael: > > >>> I have no comments to merge this patch set for the stable tag. > > >>> > > >>> Thanks > > >>> Liming > > >>>> -----邮件原件----- > > >>>> 发件人: mikuback@linux.microsoft.com > <mikuback@linux.microsoft.com> > > >>>> 发送时间: 2022年11月15日 8:19 > > >>>> 收件人: devel@edk2.groups.io > > >>>> 抄送: Sean Brogan <sean.brogan@microsoft.com>; Michael Kubacki > > >>>> <mikuback@linux.microsoft.com>; Liming Gao > <gaoliming@byosoft.com.cn>; > > >>>> Andrew Fish <afish@apple.com>; Leif Lindholm > <quic_llindhol@quicinc.com> > > >>>> 主题: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions > > >>>> > > >>>> From: Michael Kubacki <michael.kubacki@microsoft.com> > > >>>> > > >>>> 1. Updates edk2-pytool-library to 0.12.1 > > >>>> - Picks up a minor bug fix > > >>>> > > >>>> 2. Updates edk2-pytool-extensions to 0.20.0 > > >>>> - Picks up a major release > > >>>> > > >>>> The changes in each update are in the respective patch commit > > >>>> messages. > > >>>> > > >>>> CI was run against both of these patches in this pull request: > > >>>> https://github.com/tianocore/edk2/pull/3632 > > >>>> > > >>>> These changes are recommended to be included in the > edk2-stable202211 > > >>>> tag for the following reasons: > > >>>> > > >>>> 1. edk2-pytool-library 0.12.0 to 0.12.1 includes a single bug fix > > >>>> that simply returns file paths from > > >>>> Edk2Path.GetContainingModules() with the original case used > by > > >>>> the operating system. This allow case sensitive callers to match > > >>>> paths returned by the function correctly. > > >>>> > > >>>> This can impact flows such as PR Eval that use this function to > > >>>> determine which modules were impacted by a code change. > Without > > >>>> this change PR eval may not return consistent/expected results > > >>>> across operating systems. > > >>>> > > >>>> 2. The edk2-pytool-library change requires edk2-pytool-extensions > > >>>> 0.20.0. For this reason, edk2-pytool-extensions setup.py was > > >>>> updated in 0.20.0 to specify 0.12.1 as the edk2-pytool-library > > >>>> requirement. The logic of determining a package in > pytool-library > > >>>> (Edk2Path.GetContainingPackage()) needs a corresponding > change in > > >>>> the edk2-pytool-extensions 0.20.0 release. > > >>>> > > >>>> Without this change, flows such as PR Eval will not have > updated > > >>>> logic for calling the function and return incorrect results. > > >>>> > > >>>> These changes have been tested against edk2 in pytool integration > > >>>> testing, the PR linked above, and against similar code in Mu. > > >>>> > > >>>> V2 changes: > > >>>> > > >>>> 1. Add stable tag to patch subject > > >>>> 2. Explain why changes should be included in stable tag > > >>>> 3. Add Reviewed-by tags to patches from v1 > > >>>> > > >>>> Cc: Sean Brogan <sean.brogan@microsoft.com> > > >>>> Cc: Michael Kubacki <mikuback@linux.microsoft.com> > > >>>> Cc: Liming Gao <gaoliming@byosoft.com.cn> > > >>>> Cc: Andrew Fish <afish@apple.com> > > >>>> Cc: Leif Lindholm <quic_llindhol@quicinc.com> > > >>>> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> > > >>>> > > >>>> Michael Kubacki (2): > > >>>> pip-requirements.txt: Update to edk2-pytool-library 0.12.1 > > >>>> pip-requirements.txt: Update to edk2-pytool-extensions 0.20.0 > > >>>> > > >>>> pip-requirements.txt | 4 ++-- > > >>>> 1 file changed, 2 insertions(+), 2 deletions(-) > > >>>> > > >>>> -- > > >>>> 2.28.0.windows.1 > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > > > > > > > > > > > > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-11-17 1:53 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-11-15 0:18 [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions Michael Kubacki 2022-11-15 0:18 ` [PATCH edk2-stable202211 v2 1/2] pip-requirements.txt: Update to edk2-pytool-library 0.12.1 Michael Kubacki 2022-11-15 0:18 ` [PATCH edk2-stable202211 v2 2/2] pip-requirements.txt: Update to edk2-pytool-extensions 0.20.0 Michael Kubacki 2022-11-15 3:00 ` 回复: [PATCH edk2-stable202211 v2 0/2] Update Pytool PIP Versions gaoliming 2022-11-15 3:17 ` [edk2-devel] " Michael Kubacki 2022-11-15 3:45 ` Michael D Kinney 2022-11-15 14:35 ` Michael Kubacki 2022-11-16 21:46 ` Michael D Kinney 2022-11-17 1:53 ` 回复: " gaoliming
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox