public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Kun Qin" <kuqin12@gmail.com>
To: gaoliming <gaoliming@byosoft.com.cn>, devel@edk2.groups.io
Cc: 'Sean Brogan' <sean.brogan@microsoft.com>,
	'Bret Barkelew' <Bret.Barkelew@microsoft.com>,
	'Michael D Kinney' <michael.d.kinney@intel.com>
Subject: Re: 回复: [edk2-devel] [PATCH v1 1/1] Pytool: SpellCheck: Fix incorrect file mask across package matrices
Date: Fri, 11 Jun 2021 20:49:33 -0700	[thread overview]
Message-ID: <9ce5fabe-dec4-5ca3-e3c8-accbc9a04e28@gmail.com> (raw)
In-Reply-To: <002601d75e71$24d42fc0$6e7c8f40$@byosoft.com.cn>

Thanks for the review, Liming. Could you please help merging this patch 
to the master when you have a chance?

Thanks in advance!
Kun

On 06/10/2021 20:23, gaoliming wrote:
> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
> 
>> -----邮件原件-----
>> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Kun Qin
>> 发送时间: 2021年6月10日 9:48
>> 收件人: devel@edk2.groups.io
>> 抄送: Sean Brogan <sean.brogan@microsoft.com>; Bret Barkelew
>> <Bret.Barkelew@microsoft.com>; Michael D Kinney
>> <michael.d.kinney@intel.com>; Liming Gao <gaoliming@byosoft.com.cn>
>> 主题: [edk2-devel] [PATCH v1 1/1] Pytool: SpellCheck: Fix incorrect file
> mask
>> across package matrices
>>
>> From: Sean Brogan <spbrogan@live.com>
>>
>> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3443
>>
>> Existing implementation could modify class global data that causes
>> potential incorrect file mask to be used for execution of plugin.
>>
>> This change switches class variable to be tuple so that it cannot be
>> accidently modified. Local usage of STANDARD_PLUGIN_DEFINED_PATHS is
>> also
>> changed to copy to new list before modification.
>>
>> Cc: Sean Brogan <sean.brogan@microsoft.com>
>> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
>> Cc: Michael D Kinney <michael.d.kinney@intel.com>
>> Cc: Liming Gao <gaoliming@byosoft.com.cn>
>>
>> Signed-off-by: Sean Brogan <sean.brogan@microsoft.com>
>> ---
>>   .pytool/Plugin/SpellCheck/SpellCheck.py | 7 ++++---
>>   1 file changed, 4 insertions(+), 3 deletions(-)
>>
>> diff --git a/.pytool/Plugin/SpellCheck/SpellCheck.py
>> b/.pytool/Plugin/SpellCheck/SpellCheck.py
>> index 43365441b91c..9ad57632a6e8 100644
>> --- a/.pytool/Plugin/SpellCheck/SpellCheck.py
>> +++ b/.pytool/Plugin/SpellCheck/SpellCheck.py
>> @@ -37,12 +37,12 @@ class SpellCheck(ICiBuildPlugin):
>>       #
>>       # A package can remove any of these using IgnoreStandardPaths
>>       #
>> -    STANDARD_PLUGIN_DEFINED_PATHS = ["*.c", "*.h",
>> +    STANDARD_PLUGIN_DEFINED_PATHS = ("*.c", "*.h",
>>                                        "*.nasm", "*.asm", "*.masm",
>> "*.s",
>>                                        "*.asl",
>>                                        "*.dsc", "*.dec", "*.fdf",
>> "*.inf",
>>                                        "*.md", "*.txt"
>> -                                     ]
>> +                                     )
>>
>>       def GetTestName(self, packagename: str, environment: VarDict) ->
>> tuple:
>>           """ Provide the testcase name and classname for use in reporting
>> @@ -107,7 +107,8 @@ class SpellCheck(ICiBuildPlugin):
>>           version_aggregator.GetVersionAggregator().ReportVersion(
>>               "CSpell", cspell_version,
>> version_aggregator.VersionTypes.INFO)
>>
>> -        package_relative_paths_to_spell_check =
>> SpellCheck.STANDARD_PLUGIN_DEFINED_PATHS
>> +        # copy the default as a list
>> +        package_relative_paths_to_spell_check =
>> list(SpellCheck.STANDARD_PLUGIN_DEFINED_PATHS)
>>
>>           #
>>           # Allow the ci.yaml to remove any of the above standard paths
>> --
>> 2.31.1.windows.1
>>
>>
>>
>> 
>>
> 
> 
> 

  reply	other threads:[~2021-06-12  3:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-10  1:47 [PATCH v1 0/1] Spell Check File Mask Leak into Sequential Package Checks Kun Qin
2021-06-10  1:47 ` [PATCH v1 1/1] Pytool: SpellCheck: Fix incorrect file mask across package matrices Kun Qin
2021-06-11  3:23   ` 回复: [edk2-devel] " gaoliming
2021-06-12  3:49     ` Kun Qin [this message]
2021-06-15  7:00       ` 回复: " gaoliming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9ce5fabe-dec4-5ca3-e3c8-accbc9a04e28@gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox