You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2015/10/02 21:16:38 UTC

hbase git commit: HBASE-14543 Have findHangingTests.py dump more info

Repository: hbase
Updated Branches:
  refs/heads/master 030ae5f04 -> 26dec4c60


HBASE-14543 Have findHangingTests.py dump more info


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/26dec4c6
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/26dec4c6
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/26dec4c6

Branch: refs/heads/master
Commit: 26dec4c60d60a868dccd28aabd06b16302491b1b
Parents: 030ae5f
Author: stack <st...@apache.org>
Authored: Fri Oct 2 12:16:28 2015 -0700
Committer: stack <st...@apache.org>
Committed: Fri Oct 2 12:16:28 2015 -0700

----------------------------------------------------------------------
 dev-support/findHangingTests.py | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/26dec4c6/dev-support/findHangingTests.py
----------------------------------------------------------------------
diff --git a/dev-support/findHangingTests.py b/dev-support/findHangingTests.py
index f51e7f5..deccc8b 100755
--- a/dev-support/findHangingTests.py
+++ b/dev-support/findHangingTests.py
@@ -25,15 +25,43 @@ import string
 if len(sys.argv) != 2 :
   print "ERROR : Provide the jenkins job console URL as the only argument."
   exit(1)
-print "Fetching the console output from the URL"
+print "Fetching " + sys.argv[1]
 response = urllib2.urlopen(sys.argv[1])
 i = 0;
 tests = {}
 failed_tests = {}
+summary = 0
+host = False
+patch = False
+branch = False
 while True:
   n = response.readline()
   if n == "" :
     break
+  if not host and n.find("Building remotely on") >= 0:
+    host = True
+    print n.strip()    
+    continue
+  if not patch and n.find("Testing patch for ") >= 0:
+    patch = True
+    print n.strip()    
+    continue
+  if not branch and n.find("Testing patch on branch ") >= 0:
+    branch = True
+    print n.strip()    
+    continue
+  if n.find("PATCH APPLICATION FAILED") >= 0:
+    print "PATCH APPLICATION FAILED"
+    sys.exit(1) 
+  if summary == 0 and n.find("Running tests.") >= 0:
+    summary = summary + 1
+    continue
+  if summary == 1 and n.find("[INFO] Reactor Summary:") >= 0:
+    summary = summary + 1
+    continue
+  if summary == 2 and n.find("[INFO] Apache HBase ") >= 0:
+    sys.stdout.write(n)
+    continue
   if n.find("org.apache.hadoop.hbase") < 0:
     continue 
   test_name = string.strip(n[n.find("org.apache.hadoop.hbase"):len(n)])