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 <[email protected]> Authored: Sat Jul 19 18:24:21 2014 -0700 Committer: Patrick Wendell <[email protected]> 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
