[edk2-devel] [Patch V2 0/3] Remove git reset and optimize

Michael D Kinney posted 3 patches 2 years, 5 months ago
Failed in applying to current master (apply log)
.pytool/Plugin/EccCheck/EccCheck.py | 242 +++++++++++++++++++---------
1 file changed, 169 insertions(+), 73 deletions(-)
[edk2-devel] [Patch V2 0/3] Remove git reset and optimize
Posted by Michael D Kinney 2 years, 5 months ago
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2986

New in V2
----------
* Change temp directory path from Build/ecctemp to
  Build/.pytool/Plugin/EccCheck to provide a unique
  temp directory location for any .pytool Plugin.
* Set working directory when ECC runs to temp directory
  to guarantee all temp files created by EccCheck are
  cleaned up.

* Use temp directory for all operations to prevent any
  changed to git state.
* Remove git reset operation that could corrupt staged
  and local changes.
* Improve performance by removing redundant directory scans
* Improve performance and reduce log file sizes by using
  --output option of git diff to a temp file instead of
  using stdout.

Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>

Michael D Kinney (3):
  .pytool/Plugin/EccCheck: Remove RevertCode()
  .pytool/Plugin/EccCheck: Remove temp directory on exception
  .pytool/Plugin/EccCheck: Add performance optimizations

 .pytool/Plugin/EccCheck/EccCheck.py | 242 +++++++++++++++++++---------
 1 file changed, 169 insertions(+), 73 deletions(-)

-- 
2.32.0.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#83952): https://edk2.groups.io/g/devel/message/83952
Mute This Topic: https://groups.io/mt/87262298/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [Patch V2 0/3] Remove git reset and optimize
Posted by Sean 2 years, 4 months ago
Acked-by: Sean Brogan <sean.brogan@microsoft.com>

On 11/23/2021 8:30 AM, Michael D Kinney wrote:
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2986
> 
> New in V2
> ----------
> * Change temp directory path from Build/ecctemp to
>    Build/.pytool/Plugin/EccCheck to provide a unique
>    temp directory location for any .pytool Plugin.
> * Set working directory when ECC runs to temp directory
>    to guarantee all temp files created by EccCheck are
>    cleaned up.
> 
> * Use temp directory for all operations to prevent any
>    changed to git state.
> * Remove git reset operation that could corrupt staged
>    and local changes.
> * Improve performance by removing redundant directory scans
> * Improve performance and reduce log file sizes by using
>    --output option of git diff to a temp file instead of
>    using stdout.
> 
> Cc: Sean Brogan <sean.brogan@microsoft.com>
> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Michael Kubacki <michael.kubacki@microsoft.com>
> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
> 
> Michael D Kinney (3):
>    .pytool/Plugin/EccCheck: Remove RevertCode()
>    .pytool/Plugin/EccCheck: Remove temp directory on exception
>    .pytool/Plugin/EccCheck: Add performance optimizations
> 
>   .pytool/Plugin/EccCheck/EccCheck.py | 242 +++++++++++++++++++---------
>   1 file changed, 169 insertions(+), 73 deletions(-)
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#84098): https://edk2.groups.io/g/devel/message/84098
Mute This Topic: https://groups.io/mt/87262298/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


[edk2-devel] 回复: [Patch V2 0/3] Remove git reset and optimize
Posted by gaoliming 2 years, 5 months ago
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

> -----邮件原件-----
> 发件人: Michael D Kinney <michael.d.kinney@intel.com>
> 发送时间: 2021年11月24日 0:31
> 收件人: devel@edk2.groups.io
> 抄送: Sean Brogan <sean.brogan@microsoft.com>; Bret Barkelew
> <Bret.Barkelew@microsoft.com>; Liming Gao <gaoliming@byosoft.com.cn>;
> Michael Kubacki <michael.kubacki@microsoft.com>
> 主题: [Patch V2 0/3] Remove git reset and optimize
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2986
> 
> New in V2
> ----------
> * Change temp directory path from Build/ecctemp to
>   Build/.pytool/Plugin/EccCheck to provide a unique
>   temp directory location for any .pytool Plugin.
> * Set working directory when ECC runs to temp directory
>   to guarantee all temp files created by EccCheck are
>   cleaned up.
> 
> * Use temp directory for all operations to prevent any
>   changed to git state.
> * Remove git reset operation that could corrupt staged
>   and local changes.
> * Improve performance by removing redundant directory scans
> * Improve performance and reduce log file sizes by using
>   --output option of git diff to a temp file instead of
>   using stdout.
> 
> Cc: Sean Brogan <sean.brogan@microsoft.com>
> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Michael Kubacki <michael.kubacki@microsoft.com>
> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
> 
> Michael D Kinney (3):
>   .pytool/Plugin/EccCheck: Remove RevertCode()
>   .pytool/Plugin/EccCheck: Remove temp directory on exception
>   .pytool/Plugin/EccCheck: Add performance optimizations
> 
>  .pytool/Plugin/EccCheck/EccCheck.py | 242 +++++++++++++++++++---------
>  1 file changed, 169 insertions(+), 73 deletions(-)
> 
> --
> 2.32.0.windows.1







-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#84020): https://edk2.groups.io/g/devel/message/84020
Mute This Topic: https://groups.io/mt/87276465/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-