{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/pulse_actions/pulls/comments/62549811","id":62549811,"diff_hunk":"@@ -0,0 +1,70 @@\n+\"\"\"\n+This module is for the following use case:\n+\n+ - Talos jobs:\n+\n+    * Trigger talos jobs twice if they are from PGO build.\n+\"\"\"\n+import logging\n+\n+from mozci import query_jobs\n+from pulse_actions.utils.misc import filter_invalid_builders\n+from mozci.errors import PushlogError\n+from mozci.mozci import trigger_talos_jobs_for_build\n+from mozci.platforms import get_buildername_metadata\n+from mozci.sources import buildjson\n+\n+LOG = logging.getLogger()","path":"pulse_actions/handlers/talos.py","position":17,"original_position":17,"commit_id":"a09c225aeb347ba0d8774925e1f4f760a9143145","original_commit_id":"a09c225aeb347ba0d8774925e1f4f760a9143145","user":{"login":"armenzg","id":44410,"avatar_url":"https://avatars.githubusercontent.com/u/44410?v=3","gravatar_id":"","url":"https://api.github.com/users/armenzg","html_url":"https://github.com/armenzg","followers_url":"https://api.github.com/users/armenzg/followers","following_url":"https://api.github.com/users/armenzg/following{/other_user}","gists_url":"https://api.github.com/users/armenzg/gists{/gist_id}","starred_url":"https://api.github.com/users/armenzg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armenzg/subscriptions","organizations_url":"https://api.github.com/users/armenzg/orgs","repos_url":"https://api.github.com/users/armenzg/repos","events_url":"https://api.github.com/users/armenzg/events{/privacy}","received_events_url":"https://api.github.com/users/armenzg/received_events","type":"User","site_admin":false},"body":"I would like to try something new in here to make the logs of pulse_actions more clear.\r\n\r\nCould you please use this inside of getLogger()?\r\n```python\r\nLOG = logging.getLogger(__name__.split('.')[-1])\r\n```","created_at":"2016-05-09T18:37:00Z","updated_at":"2016-05-09T18:37:00Z","html_url":"https://github.com/mozilla/pulse_actions/pull/73#discussion_r62549811","pull_request_url":"https://api.github.com/repos/mozilla/pulse_actions/pulls/73","_links":{"self":{"href":"https://api.github.com/repos/mozilla/pulse_actions/pulls/comments/62549811"},"html":{"href":"https://github.com/mozilla/pulse_actions/pull/73#discussion_r62549811"},"pull_request":{"href":"https://api.github.com/repos/mozilla/pulse_actions/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/pulse_actions/pulls/73","id":68468182,"html_url":"https://github.com/mozilla/pulse_actions/pull/73","diff_url":"https://github.com/mozilla/pulse_actions/pull/73.diff","patch_url":"https://github.com/mozilla/pulse_actions/pull/73.patch","issue_url":"https://api.github.com/repos/mozilla/pulse_actions/issues/73","number":73,"state":"open","locked":false,"title":"Adding handler for triggering talos jobs twice on PGO builds","user":{"login":"martiansideofthemoon","id":8805240,"avatar_url":"https://avatars.githubusercontent.com/u/8805240?v=3","gravatar_id":"","url":"https://api.github.com/users/martiansideofthemoon","html_url":"https://github.com/martiansideofthemoon","followers_url":"https://api.github.com/users/martiansideofthemoon/followers","following_url":"https://api.github.com/users/martiansideofthemoon/following{/other_user}","gists_url":"https://api.github.com/users/martiansideofthemoon/gists{/gist_id}","starred_url":"https://api.github.com/users/martiansideofthemoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martiansideofthemoon/subscriptions","organizations_url":"https://api.github.com/users/martiansideofthemoon/orgs","repos_url":"https://api.github.com/users/martiansideofthemoon/repos","events_url":"https://api.github.com/users/martiansideofthemoon/events{/privacy}","received_events_url":"https://api.github.com/users/martiansideofthemoon/received_events","type":"User","site_admin":false},"body":"ref #70\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"35\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/mozilla/pulse_actions/73)\n<!-- Reviewable:end -->\n","created_at":"2016-04-30T13:38:45Z","updated_at":"2016-05-09T18:37:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d133805ba133d7aa7503196e7bced0903e71a256","assignee":{"login":"martiansideofthemoon","id":8805240,"avatar_url":"https://avatars.githubusercontent.com/u/8805240?v=3","gravatar_id":"","url":"https://api.github.com/users/martiansideofthemoon","html_url":"https://github.com/martiansideofthemoon","followers_url":"https://api.github.com/users/martiansideofthemoon/followers","following_url":"https://api.github.com/users/martiansideofthemoon/following{/other_user}","gists_url":"https://api.github.com/users/martiansideofthemoon/gists{/gist_id}","starred_url":"https://api.github.com/users/martiansideofthemoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martiansideofthemoon/subscriptions","organizations_url":"https://api.github.com/users/martiansideofthemoon/orgs","repos_url":"https://api.github.com/users/martiansideofthemoon/repos","events_url":"https://api.github.com/users/martiansideofthemoon/events{/privacy}","received_events_url":"https://api.github.com/users/martiansideofthemoon/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/pulse_actions/pulls/73/commits","review_comments_url":"https://api.github.com/repos/mozilla/pulse_actions/pulls/73/comments","review_comment_url":"https://api.github.com/repos/mozilla/pulse_actions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/pulse_actions/issues/73/comments","statuses_url":"https://api.github.com/repos/mozilla/pulse_actions/statuses/a09c225aeb347ba0d8774925e1f4f760a9143145","head":{"label":"martiansideofthemoon:mewtwo","ref":"mewtwo","sha":"a09c225aeb347ba0d8774925e1f4f760a9143145","user":{"login":"martiansideofthemoon","id":8805240,"avatar_url":"https://avatars.githubusercontent.com/u/8805240?v=3","gravatar_id":"","url":"https://api.github.com/users/martiansideofthemoon","html_url":"https://github.com/martiansideofthemoon","followers_url":"https://api.github.com/users/martiansideofthemoon/followers","following_url":"https://api.github.com/users/martiansideofthemoon/following{/other_user}","gists_url":"https://api.github.com/users/martiansideofthemoon/gists{/gist_id}","starred_url":"https://api.github.com/users/martiansideofthemoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martiansideofthemoon/subscriptions","organizations_url":"https://api.github.com/users/martiansideofthemoon/orgs","repos_url":"https://api.github.com/users/martiansideofthemoon/repos","events_url":"https://api.github.com/users/martiansideofthemoon/events{/privacy}","received_events_url":"https://api.github.com/users/martiansideofthemoon/received_events","type":"User","site_admin":false},"repo":{"id":57141604,"name":"pulse_actions","full_name":"martiansideofthemoon/pulse_actions","owner":{"login":"martiansideofthemoon","id":8805240,"avatar_url":"https://avatars.githubusercontent.com/u/8805240?v=3","gravatar_id":"","url":"https://api.github.com/users/martiansideofthemoon","html_url":"https://github.com/martiansideofthemoon","followers_url":"https://api.github.com/users/martiansideofthemoon/followers","following_url":"https://api.github.com/users/martiansideofthemoon/following{/other_user}","gists_url":"https://api.github.com/users/martiansideofthemoon/gists{/gist_id}","starred_url":"https://api.github.com/users/martiansideofthemoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martiansideofthemoon/subscriptions","organizations_url":"https://api.github.com/users/martiansideofthemoon/orgs","repos_url":"https://api.github.com/users/martiansideofthemoon/repos","events_url":"https://api.github.com/users/martiansideofthemoon/events{/privacy}","received_events_url":"https://api.github.com/users/martiansideofthemoon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/martiansideofthemoon/pulse_actions","description":"Listen to pulse messages and take actions from them","fork":true,"url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions","forks_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/forks","keys_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/teams","hooks_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/hooks","issue_events_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/issues/events{/number}","events_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/events","assignees_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/assignees{/user}","branches_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/branches{/branch}","tags_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/tags","blobs_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/git/refs{/sha}","trees_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/statuses/{sha}","languages_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/languages","stargazers_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/stargazers","contributors_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/contributors","subscribers_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/subscribers","subscription_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/subscription","commits_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/commits{/sha}","git_commits_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/git/commits{/sha}","comments_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/comments{/number}","issue_comment_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/issues/comments{/number}","contents_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/contents/{+path}","compare_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/merges","archive_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/downloads","issues_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/issues{/number}","pulls_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/pulls{/number}","milestones_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/milestones{/number}","notifications_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/labels{/name}","releases_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/releases{/id}","deployments_url":"https://api.github.com/repos/martiansideofthemoon/pulse_actions/deployments","created_at":"2016-04-26T15:51:33Z","updated_at":"2016-04-26T15:51:34Z","pushed_at":"2016-05-09T15:40:03Z","git_url":"git://github.com/martiansideofthemoon/pulse_actions.git","ssh_url":"git@github.com:martiansideofthemoon/pulse_actions.git","clone_url":"https://github.com/martiansideofthemoon/pulse_actions.git","svn_url":"https://github.com/martiansideofthemoon/pulse_actions","homepage":null,"size":237,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"mozilla:master","ref":"master","sha":"34756972e2f616448e3310743dadfe21b98739b9","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":36251301,"name":"pulse_actions","full_name":"mozilla/pulse_actions","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/pulse_actions","description":"Listen to pulse messages and take actions from them","fork":false,"url":"https://api.github.com/repos/mozilla/pulse_actions","forks_url":"https://api.github.com/repos/mozilla/pulse_actions/forks","keys_url":"https://api.github.com/repos/mozilla/pulse_actions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/pulse_actions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/pulse_actions/teams","hooks_url":"https://api.github.com/repos/mozilla/pulse_actions/hooks","issue_events_url":"https://api.github.com/repos/mozilla/pulse_actions/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/pulse_actions/events","assignees_url":"https://api.github.com/repos/mozilla/pulse_actions/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/pulse_actions/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/pulse_actions/tags","blobs_url":"https://api.github.com/repos/mozilla/pulse_actions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/pulse_actions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/pulse_actions/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/pulse_actions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/pulse_actions/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/pulse_actions/languages","stargazers_url":"https://api.github.com/repos/mozilla/pulse_actions/stargazers","contributors_url":"https://api.github.com/repos/mozilla/pulse_actions/contributors","subscribers_url":"https://api.github.com/repos/mozilla/pulse_actions/subscribers","subscription_url":"https://api.github.com/repos/mozilla/pulse_actions/subscription","commits_url":"https://api.github.com/repos/mozilla/pulse_actions/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/pulse_actions/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/pulse_actions/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/pulse_actions/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/pulse_actions/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/pulse_actions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/pulse_actions/merges","archive_url":"https://api.github.com/repos/mozilla/pulse_actions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/pulse_actions/downloads","issues_url":"https://api.github.com/repos/mozilla/pulse_actions/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/pulse_actions/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/pulse_actions/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/pulse_actions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/pulse_actions/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/pulse_actions/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/pulse_actions/deployments","created_at":"2015-05-25T19:49:45Z","updated_at":"2016-05-02T17:07:28Z","pushed_at":"2016-05-09T18:10:30Z","git_url":"git://github.com/mozilla/pulse_actions.git","ssh_url":"git@github.com:mozilla/pulse_actions.git","clone_url":"https://github.com/mozilla/pulse_actions.git","svn_url":"https://github.com/mozilla/pulse_actions","homepage":null,"size":242,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":10,"forks":7,"open_issues":10,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/pulse_actions/pulls/73"},"html":{"href":"https://github.com/mozilla/pulse_actions/pull/73"},"issue":{"href":"https://api.github.com/repos/mozilla/pulse_actions/issues/73"},"comments":{"href":"https://api.github.com/repos/mozilla/pulse_actions/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/pulse_actions/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/pulse_actions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/pulse_actions/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/pulse_actions/statuses/a09c225aeb347ba0d8774925e1f4f760a9143145"}}}}