{"action":"created","comment":{"url":"https://api.github.com/repos/google/openhtf/pulls/comments/64632306","id":64632306,"diff_hunk":"@@ -430,18 +434,31 @@ def UploadTestRun(testrun, destination, credentials=None):\n         raise UploadFailedError(resp, content)\n \n   def __call__(self, test_record):  # pylint: disable=invalid-name\n-    credentials = oauth2client.client.SignedJwtAssertionCredentials(\n-        service_account_name=self.user,\n-        private_key=self.keydata,\n-        scope=self.SCOPE_CODE_URI,\n-        user_agent='OpenHTF Guzzle Upload Client',\n-        token_uri=self.token_uri)\n-    credentials.set_store(self._MemStorage())\n-\n     testrun = _TestRunFromTestRecord(test_record)\n+\n     try:\n+      credentials = oauth2client.client.SignedJwtAssertionCredentials(\n+          service_account_name=self.user,\n+          private_key=self.keydata,\n+          scope=self.SCOPE_CODE_URI,\n+          user_agent='OpenHTF Guzzle Upload Client',\n+          token_uri=self.token_uri)\n+      credentials.set_store(self._MemStorage())\n       self.UploadTestRun(testrun, self.DESTINATION_URL, credentials)\n-    except UploadFailedError:\n+    except:\n       # For now, just log the exception.  Once output is a bit more robust,\n       # we can propagate this up and handle it accordingly.\n+      if self._error_message:\n+        sys.stdout.write(''.join([self._error_message, '\\n']))","path":"openhtf/io/output/mfg_inspector.py","position":null,"original_position":53,"commit_id":"5e6ce65ba09667fea5806c4da3f756538097e8d6","original_commit_id":"3a4d1e44cb6cf50fa3727a43bc104674d910abf8","user":{"login":"wallacbe","id":14088001,"avatar_url":"https://avatars.githubusercontent.com/u/14088001?v=3","gravatar_id":"","url":"https://api.github.com/users/wallacbe","html_url":"https://github.com/wallacbe","followers_url":"https://api.github.com/users/wallacbe/followers","following_url":"https://api.github.com/users/wallacbe/following{/other_user}","gists_url":"https://api.github.com/users/wallacbe/gists{/gist_id}","starred_url":"https://api.github.com/users/wallacbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallacbe/subscriptions","organizations_url":"https://api.github.com/users/wallacbe/orgs","repos_url":"https://api.github.com/users/wallacbe/repos","events_url":"https://api.github.com/users/wallacbe/events{/privacy}","received_events_url":"https://api.github.com/users/wallacbe/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2016-05-25T18:58:45Z","updated_at":"2016-05-25T18:58:45Z","html_url":"https://github.com/google/openhtf/pull/279#discussion_r64632306","pull_request_url":"https://api.github.com/repos/google/openhtf/pulls/279","_links":{"self":{"href":"https://api.github.com/repos/google/openhtf/pulls/comments/64632306"},"html":{"href":"https://github.com/google/openhtf/pull/279#discussion_r64632306"},"pull_request":{"href":"https://api.github.com/repos/google/openhtf/pulls/279"}}},"pull_request":{"url":"https://api.github.com/repos/google/openhtf/pulls/279","id":71435927,"html_url":"https://github.com/google/openhtf/pull/279","diff_url":"https://github.com/google/openhtf/pull/279.diff","patch_url":"https://github.com/google/openhtf/pull/279.patch","issue_url":"https://api.github.com/repos/google/openhtf/issues/279","number":279,"state":"open","locked":false,"title":"mfg_inspector: configurable error message and save pb on fail","user":{"login":"wallacbe","id":14088001,"avatar_url":"https://avatars.githubusercontent.com/u/14088001?v=3","gravatar_id":"","url":"https://api.github.com/users/wallacbe","html_url":"https://github.com/wallacbe","followers_url":"https://api.github.com/users/wallacbe/followers","following_url":"https://api.github.com/users/wallacbe/following{/other_user}","gists_url":"https://api.github.com/users/wallacbe/gists{/gist_id}","starred_url":"https://api.github.com/users/wallacbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallacbe/subscriptions","organizations_url":"https://api.github.com/users/wallacbe/orgs","repos_url":"https://api.github.com/users/wallacbe/repos","events_url":"https://api.github.com/users/wallacbe/events{/privacy}","received_events_url":"https://api.github.com/users/wallacbe/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-25T17:58:58Z","updated_at":"2016-05-25T18:58:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a0d55810129519a8589d83e2ae55fedc47ec8c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/openhtf/pulls/279/commits","review_comments_url":"https://api.github.com/repos/google/openhtf/pulls/279/comments","review_comment_url":"https://api.github.com/repos/google/openhtf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/openhtf/issues/279/comments","statuses_url":"https://api.github.com/repos/google/openhtf/statuses/5e6ce65ba09667fea5806c4da3f756538097e8d6","head":{"label":"wallacbe:save","ref":"save","sha":"5e6ce65ba09667fea5806c4da3f756538097e8d6","user":{"login":"wallacbe","id":14088001,"avatar_url":"https://avatars.githubusercontent.com/u/14088001?v=3","gravatar_id":"","url":"https://api.github.com/users/wallacbe","html_url":"https://github.com/wallacbe","followers_url":"https://api.github.com/users/wallacbe/followers","following_url":"https://api.github.com/users/wallacbe/following{/other_user}","gists_url":"https://api.github.com/users/wallacbe/gists{/gist_id}","starred_url":"https://api.github.com/users/wallacbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallacbe/subscriptions","organizations_url":"https://api.github.com/users/wallacbe/orgs","repos_url":"https://api.github.com/users/wallacbe/repos","events_url":"https://api.github.com/users/wallacbe/events{/privacy}","received_events_url":"https://api.github.com/users/wallacbe/received_events","type":"User","site_admin":false},"repo":{"id":50164021,"name":"openhtf","full_name":"wallacbe/openhtf","owner":{"login":"wallacbe","id":14088001,"avatar_url":"https://avatars.githubusercontent.com/u/14088001?v=3","gravatar_id":"","url":"https://api.github.com/users/wallacbe","html_url":"https://github.com/wallacbe","followers_url":"https://api.github.com/users/wallacbe/followers","following_url":"https://api.github.com/users/wallacbe/following{/other_user}","gists_url":"https://api.github.com/users/wallacbe/gists{/gist_id}","starred_url":"https://api.github.com/users/wallacbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallacbe/subscriptions","organizations_url":"https://api.github.com/users/wallacbe/orgs","repos_url":"https://api.github.com/users/wallacbe/repos","events_url":"https://api.github.com/users/wallacbe/events{/privacy}","received_events_url":"https://api.github.com/users/wallacbe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wallacbe/openhtf","description":null,"fork":true,"url":"https://api.github.com/repos/wallacbe/openhtf","forks_url":"https://api.github.com/repos/wallacbe/openhtf/forks","keys_url":"https://api.github.com/repos/wallacbe/openhtf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wallacbe/openhtf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wallacbe/openhtf/teams","hooks_url":"https://api.github.com/repos/wallacbe/openhtf/hooks","issue_events_url":"https://api.github.com/repos/wallacbe/openhtf/issues/events{/number}","events_url":"https://api.github.com/repos/wallacbe/openhtf/events","assignees_url":"https://api.github.com/repos/wallacbe/openhtf/assignees{/user}","branches_url":"https://api.github.com/repos/wallacbe/openhtf/branches{/branch}","tags_url":"https://api.github.com/repos/wallacbe/openhtf/tags","blobs_url":"https://api.github.com/repos/wallacbe/openhtf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wallacbe/openhtf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wallacbe/openhtf/git/refs{/sha}","trees_url":"https://api.github.com/repos/wallacbe/openhtf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wallacbe/openhtf/statuses/{sha}","languages_url":"https://api.github.com/repos/wallacbe/openhtf/languages","stargazers_url":"https://api.github.com/repos/wallacbe/openhtf/stargazers","contributors_url":"https://api.github.com/repos/wallacbe/openhtf/contributors","subscribers_url":"https://api.github.com/repos/wallacbe/openhtf/subscribers","subscription_url":"https://api.github.com/repos/wallacbe/openhtf/subscription","commits_url":"https://api.github.com/repos/wallacbe/openhtf/commits{/sha}","git_commits_url":"https://api.github.com/repos/wallacbe/openhtf/git/commits{/sha}","comments_url":"https://api.github.com/repos/wallacbe/openhtf/comments{/number}","issue_comment_url":"https://api.github.com/repos/wallacbe/openhtf/issues/comments{/number}","contents_url":"https://api.github.com/repos/wallacbe/openhtf/contents/{+path}","compare_url":"https://api.github.com/repos/wallacbe/openhtf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wallacbe/openhtf/merges","archive_url":"https://api.github.com/repos/wallacbe/openhtf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wallacbe/openhtf/downloads","issues_url":"https://api.github.com/repos/wallacbe/openhtf/issues{/number}","pulls_url":"https://api.github.com/repos/wallacbe/openhtf/pulls{/number}","milestones_url":"https://api.github.com/repos/wallacbe/openhtf/milestones{/number}","notifications_url":"https://api.github.com/repos/wallacbe/openhtf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wallacbe/openhtf/labels{/name}","releases_url":"https://api.github.com/repos/wallacbe/openhtf/releases{/id}","deployments_url":"https://api.github.com/repos/wallacbe/openhtf/deployments","created_at":"2016-01-22T07:01:15Z","updated_at":"2016-01-22T07:01:15Z","pushed_at":"2016-05-25T18:57:20Z","git_url":"git://github.com/wallacbe/openhtf.git","ssh_url":"git@github.com:wallacbe/openhtf.git","clone_url":"https://github.com/wallacbe/openhtf.git","svn_url":"https://github.com/wallacbe/openhtf","homepage":null,"size":18674,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"bf0b2fe843120eb40f2a0c894cffff6e138b71dc","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":41519483,"name":"openhtf","full_name":"google/openhtf","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/openhtf","description":null,"fork":false,"url":"https://api.github.com/repos/google/openhtf","forks_url":"https://api.github.com/repos/google/openhtf/forks","keys_url":"https://api.github.com/repos/google/openhtf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/openhtf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/openhtf/teams","hooks_url":"https://api.github.com/repos/google/openhtf/hooks","issue_events_url":"https://api.github.com/repos/google/openhtf/issues/events{/number}","events_url":"https://api.github.com/repos/google/openhtf/events","assignees_url":"https://api.github.com/repos/google/openhtf/assignees{/user}","branches_url":"https://api.github.com/repos/google/openhtf/branches{/branch}","tags_url":"https://api.github.com/repos/google/openhtf/tags","blobs_url":"https://api.github.com/repos/google/openhtf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/openhtf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/openhtf/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/openhtf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/openhtf/statuses/{sha}","languages_url":"https://api.github.com/repos/google/openhtf/languages","stargazers_url":"https://api.github.com/repos/google/openhtf/stargazers","contributors_url":"https://api.github.com/repos/google/openhtf/contributors","subscribers_url":"https://api.github.com/repos/google/openhtf/subscribers","subscription_url":"https://api.github.com/repos/google/openhtf/subscription","commits_url":"https://api.github.com/repos/google/openhtf/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/openhtf/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/openhtf/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/openhtf/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/openhtf/contents/{+path}","compare_url":"https://api.github.com/repos/google/openhtf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/openhtf/merges","archive_url":"https://api.github.com/repos/google/openhtf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/openhtf/downloads","issues_url":"https://api.github.com/repos/google/openhtf/issues{/number}","pulls_url":"https://api.github.com/repos/google/openhtf/pulls{/number}","milestones_url":"https://api.github.com/repos/google/openhtf/milestones{/number}","notifications_url":"https://api.github.com/repos/google/openhtf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/openhtf/labels{/name}","releases_url":"https://api.github.com/repos/google/openhtf/releases{/id}","deployments_url":"https://api.github.com/repos/google/openhtf/deployments","created_at":"2015-08-28T01:14:17Z","updated_at":"2016-05-23T09:29:59Z","pushed_at":"2016-05-25T18:57:20Z","git_url":"git://github.com/google/openhtf.git","ssh_url":"git@github.com:google/openhtf.git","clone_url":"https://github.com/google/openhtf.git","svn_url":"https://github.com/google/openhtf","homepage":null,"size":24865,"stargazers_count":27,"watchers_count":27,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":69,"forks":19,"open_issues":69,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/openhtf/pulls/279"},"html":{"href":"https://github.com/google/openhtf/pull/279"},"issue":{"href":"https://api.github.com/repos/google/openhtf/issues/279"},"comments":{"href":"https://api.github.com/repos/google/openhtf/issues/279/comments"},"review_comments":{"href":"https://api.github.com/repos/google/openhtf/pulls/279/comments"},"review_comment":{"href":"https://api.github.com/repos/google/openhtf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/openhtf/pulls/279/commits"},"statuses":{"href":"https://api.github.com/repos/google/openhtf/statuses/5e6ce65ba09667fea5806c4da3f756538097e8d6"}}}}
{"actor":{"display_login":"wallacbe"}}