From eb0b49d3403d61725b045c231723b8a0d75f07ca Mon Sep 17 00:00:00 2001 From: Dan Stangel Date: Tue, 4 Jun 2013 10:05:25 -0600 Subject: [PATCH] Filter out OpenStack Jenkins automated commits from the metrics This change filters out the jenkins commits from all OpenStack git commit logs. It does so at the point of processing within gitdm, rather than (for example) at the point of capture in the "do-it.sh" script. This is somewhat brittle. If the jenkins commit email address were to change, for example, this would stop filter. Of course that would also be pretty obvious if we started seeing a bunch of Jenkins commits showing up again. Change-Id: I2dc2b26778f3076561405ee3f0de58a8716e75cc Reviewed-on: https://review.openstack.org/31666 Reviewed-by: Monty Taylor Approved: Monty Taylor Tested-by: Jenkins --- gitdm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gitdm b/gitdm index 25ffafb..f067d48 100755 --- a/gitdm +++ b/gitdm @@ -429,6 +429,12 @@ for logpatch in patches: if FileFilter and p.added == 0 and p.removed == 0: continue + # + # skip over any OpenStack Jenkins automated commits + # + if p.email == "jenkins@openstack.org": + continue + # # Record some global information - but only if this patch had # stuff which wasn't ignored.