[openssl-commits] [tools] master update
Richard Levitte
levitte at openssl.org
Tue Jun 20 09:35:54 UTC 2017
The branch master has been updated
via e61380828312a7803ea217d10866affedc4582ec (commit)
from b8a728d49d075049bc8a571363542ff20c25a331 (commit)
- Log -----------------------------------------------------------------
commit e61380828312a7803ea217d10866affedc4582ec
Author: Richard Levitte <levitte at openssl.org>
Date: Tue Jun 20 11:35:18 2017 +0200
Register lack of CLA on unknown people and check author carefully
If the author is unknown in our person DB, we still need to check that
they are covered by a CLA or that the commit is marked trivial.
-----------------------------------------------------------------------
Summary of changes:
review-tools/gitaddrev | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/review-tools/gitaddrev b/review-tools/gitaddrev
index 8286dae..8dd3682 100755
--- a/review-tools/gitaddrev
+++ b/review-tools/gitaddrev
@@ -46,6 +46,10 @@ sub try_add_reviewer {
} else {
push @unknown_reviewers, $id
unless grep {$_ eq $id} @unknown_reviewers;
+ unless ($query->has_cla($id)) {
+ push @nocla_reviewers, $id
+ unless grep {$_ eq $id} @nocla_reviewers;
+ }
}
return $rc;
}
@@ -105,6 +109,25 @@ if (my $rev = try_add_reviewer($ENV{GIT_AUTHOR_EMAIL})) {
# solution is to record this rev tag separately and remove it from
# @reviewers after the count check.
$skip_reviewer = $rev;
+
+} else {
+
+ # In case the author is unknown to our databases or is lacking a CLA,
+ # we need to be extra careful to check if this is supposed to be a
+ # trivial commit.
+ my $author = $ENV{GIT_AUTHOR_EMAIL};
+
+ # Note: it really should be enough to check if $author is unknown, since
+ # the databases are supposed to be consistent with each other. However,
+ # let's be cautious and check both, in case someone has been registered
+ # as a known identity without having a CLA in place.
+ die "Commit author ",$author," has no CLA, and this is a non-trivial commit\n"
+ if !$trivial && grep { $_ eq $author } (@nocla_reviewers);
+
+ # Now that that's cleared, remove the author from anything that could cause
+ # more unnecessary errors (false positives).
+ @nocla_reviewers = grep { $_ ne $author } @nocla_reviewers;
+ @unknown_reviewers = grep { $_ ne $author } @unknown_reviewers;
}
if (@unknown_reviewers) {
More information about the openssl-commits
mailing list