From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Anderson Date: Tue, 22 Dec 2020 19:38:55 -0500 Subject: patman regression? In-Reply-To: References: <944e5410-ee74-0cdd-167c-294e1881cc8e@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12/22/20 7:06 PM, Simon Glass wrote: > Hi Sean, > > On Tue, 22 Dec 2020 at 16:51, Sean Anderson wrote: >> >> On 12/11/20 11:29 AM, Simon Glass wrote: >>> Hi Bin, >>> >>> On Thu, 10 Dec 2020 at 21:37, Bin Meng wrote: >>>> >>>> On Fri, Dec 11, 2020 at 12:32 PM Sean Anderson wrote: >>>>> >>>>> On 12/10/20 11:27 PM, Bin Meng wrote: >>>>>> On Fri, Dec 11, 2020 at 12:08 PM Bin Meng wrote: >>>>>>> >>>>>>> Hi Simon, >>>>>>> >>>>>>> The following command no longer works. They used to work. >>>>>>> >>>>>>> $ ./tools/patman/patman -n -c1 >>>>>>> usage: patman [-h] [-b BRANCH] [-c COUNT] [-e END] [-D] [-p PROJECT] >>>>>>> [-P PATCHWORK_URL] [-s START] [-v] [-H] >>>>>>> {send,test,status} ... >>>>>>> patman: error: unrecognized arguments: -n >>>>>>> $ ./tools/patman/patman -n -c 1 >>>>>>> usage: patman [-h] [-b BRANCH] [-c COUNT] [-e END] [-D] [-p PROJECT] >>>>>>> [-P PATCHWORK_URL] [-s START] [-v] [-H] >>>>>>> {send,test,status} ... >>>>>>> patman: error: argument -c/--count: invalid int value: 'send' >>>>>>> >>>>>>> I did not run a bisect to locate which commit introduced this. Do you >>>>>>> have any idea? >>>>>> >>>>>> Resetting to v2020.10, patman works again with the above 2 commands. >>>>>> >>>>>> Note the latest patman also throws an exception about commit tags >>>>>> while the v2020.10 version did not. >>>>>> >>>>>> Traceback (most recent call last): >>>>>> File "./tools/patman/patman", line 177, in >>>>>> control.send(args) >>>>>> File "./tools/patman/control.py", line 177, in send >>>>>> args.smtp_server) >>>>>> File "./tools/patman/control.py", line 136, in email_patches >>>>>> add_maintainers, limit) >>>>>> File "./tools//patman/series.py", line 264, in MakeCcFile >>>>>> raise_on_error=raise_on_error) >>>>>> File "./tools//patman/gitutil.py", line 383, in BuildEmailList >>>>>> raw += LookupEmail(item, alias, raise_on_error=raise_on_error) >>>>>> File "./tools//patman/gitutil.py", line 588, in LookupEmail >>>>>> raise ValueError(msg) >>>>>> ValueError: Alias 'doc' not found >>>>> >>>>> I also get this error even with process_tags=False. >>>> >>>> Yep, here is my patman settings: >>>> >>>> [settings] >>>> ignore_errors: True >>>> process_tags: False >>>> verbose: True >>> >>> That error has always been, or nearly. Use -t to drop it. I have been >> >> It has not. It was introduced with 4600767d29 ("patman: Refactor how the >> default subcommand works"). Before: >> >> $ ../u-boot2/tools/patman/patman -n >> Cleaned 1 patch >> Dry run, so not doing much. But I would do this: >> >> Send a total of 1 patch with no cover letter. >> 0001-riscv-Add-support-for-SPI-on-Kendryte-K210.patch >> Cc: Rick Chen >> To: u-boot at lists.denx.de >> Cc: Jagan Teki >> Cc: Marek Vasut >> Version: 1 >> Prefix: None >> Git command: git send-email --annotate --to "u-boot at lists.denx.de" --cc "Jagan Teki " --cc "Marek Vasut " --cc-cmd "../u-boot2/tools/patman/patman --cc-cmd /tmp/patman.130803" 0001-riscv-Add-support-for-SPI-on-Kendryte-K210.patch >> >> After: >> >> $ ../u-boot2/tools/patman/patman -n >> WARNING: Unknown setting process_tags >> WARNING: Unknown setting add_maintainers >> Cleaned 1 patch >> ValueError: Alias 'riscv' not found >> >> This is very annoying, since there was previously no error, and now >> there is. > > I think you can still use -t > > But can you try u-boot/next ? I suspect it has been fixed there (i.e. > not for this release). It has not been fixed there. --Sean > > We still have time to get a fix in for the upcoming release though. > > Regards, > Simon >