From: Kevin Traynor <ktraynor@redhat.com>
To: David Marchand <david.marchand@redhat.com>, dev@dpdk.org
Cc: Thomas Monjalon <thomas@monjalon.net>
Subject: Re: [dpdk-dev] [PATCH] devtools: check coverity and bugzilla tags
Date: Wed, 9 Oct 2019 14:43:42 +0100 [thread overview]
Message-ID: <a5c1e033-66b4-f14e-813d-a83ccc9328b2@redhat.com> (raw)
In-Reply-To: <1570549949-17825-1-git-send-email-david.marchand@redhat.com>
On 08/10/2019 16:52, David Marchand wrote:
> Let's try to check for discrepancies in covery and bugzilla tags.
s/covery/coverity/ - you are trying to fool your patch? :-)
> The contributing guide specifies that:
> - for coverity issues, the tag is 'Coverity issue:'
> - for bugzilla issues, the tag is 'Bugzilla ID:'
>
Self tested:
$ ./devtools/check-git-log.sh
Missing 'Coverity issue:' tag:
devtools: check coverity and bugzilla tags
Missing 'Bugzilla ID:' tag:
devtools: check coverity and bugzilla tags
with typo fix,
Acked-by: Kevin Traynor <ktraynor@redhat.com>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
> devtools/check-git-log.sh | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/devtools/check-git-log.sh b/devtools/check-git-log.sh
> index a763ccf..2766957 100755
> --- a/devtools/check-git-log.sh
> +++ b/devtools/check-git-log.sh
> @@ -161,6 +161,24 @@ bad=$(echo "$tags" |
> sed 's,^.,\t&,')
> [ -z "$bad" ] || printf "Wrong tag:\n$bad\n"
>
> +# check missing Coverity issue: tag
> +bad=$(for commit in $commits; do
> + body=$(git log --format='%b' -1 $commit)
> + echo "$body" |grep -qi coverity || continue
> + echo "$body" |grep -q '^Coverity issue:' && continue
> + git log --format='\t%s' -1 $commit
> +done)
> +[ -z "$bad" ] || printf "Missing 'Coverity issue:' tag:\n$bad\n"
> +
> +# check missing Bugzilla ID: tag
> +bad=$(for commit in $commits; do
> + body=$(git log --format='%b' -1 $commit)
> + echo "$body" |grep -qi bugzilla || continue
> + echo "$body" |grep -q '^Bugzilla ID:' && continue
> + git log --format='\t%s' -1 $commit
> +done)
> +[ -z "$bad" ] || printf "Missing 'Bugzilla ID:' tag:\n$bad\n"
> +
> # check missing Fixes: tag
> bad=$(for fix in $fixes ; do
> git log --format='%b' -1 $fix | grep -q '^Fixes: ' ||
>
next prev parent reply other threads:[~2019-10-09 13:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-08 15:52 David Marchand
2019-10-09 13:43 ` Kevin Traynor [this message]
2019-11-27 23:33 ` Thomas Monjalon
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-all 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=a5c1e033-66b4-f14e-813d-a83ccc9328b2@redhat.com \
--to=ktraynor@redhat.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=thomas@monjalon.net \
/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;
as well as URLs for NNTP newsgroup(s).