You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by pw...@apache.org on 2014/07/20 05:06:50 UTC

git commit: SPARK-2596 HOTFIX: Deal with non-existent JIRAs.

Repository: spark
Updated Branches:
  refs/heads/master 49e472744 -> d39e3b967


SPARK-2596 HOTFIX: Deal with non-existent JIRAs.

A small bug that was found in our JIRA sync script.


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

Branch: refs/heads/master
Commit: d39e3b9673027bb9f4d1542e5a2386f73078eec0
Parents: 49e4727
Author: Patrick Wendell <pw...@gmail.com>
Authored: Sat Jul 19 18:24:21 2014 -0700
Committer: Patrick Wendell <pw...@gmail.com>
Committed: Sat Jul 19 20:06:28 2014 -0700

----------------------------------------------------------------------
 dev/github_jira_sync.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/d39e3b96/dev/github_jira_sync.py
----------------------------------------------------------------------
diff --git a/dev/github_jira_sync.py b/dev/github_jira_sync.py
index 4b0e266..8051080 100755
--- a/dev/github_jira_sync.py
+++ b/dev/github_jira_sync.py
@@ -116,8 +116,13 @@ for issue, pr in sorted(jira_prs, key=lambda (k, v): int(v['number'])):
 
     url = pr['html_url']
     title = "[Github] Pull Request #%s (%s)" % (pr['number'], pr['user']['login']) 
-  
-    existing_links = map(lambda l: l.raw['object']['url'], jira_client.remote_links(issue))
+    try:
+      existing_links = map(lambda l: l.raw['object']['url'], jira_client.remote_links(issue))
+    except:
+      print "Failure reading JIRA %s (does it exist?)" % issue
+      print sys.exc_info()[0]
+      continue
+
     if url in existing_links:
         continue