{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-releng/services/pulls/comments/178463755","pull_request_review_id":108523970,"id":178463755,"diff_hunk":"@@ -59,3 +60,25 @@ def add_dir(files):\n \n     with pytest.raises(Exception, message='suite and chunk can\\'t both have a value'):\n         a.get(chunk='xpcshell-7', suite='mochitest')\n+\n+\n+@mock.patch('shipit_code_coverage.taskcluster.get_task_artifacts')\n+@mock.patch('shipit_code_coverage.taskcluster.download_artifact')\n+def test_download(mocked_download_artifact, mocked_get_task, LINUX_TEST_TASK_ARTIFACTS):\n+    a = ArtifactsHandler([], [], parent_dir='')\n+    mocked_get_task.return_value = LINUX_TEST_TASK_ARTIFACTS['artifacts']\n+\n+    a.download(LINUX_TEST_TASK_ARTIFACTS)","path":"src/shipit_code_coverage/tests/test_artifacts.py","position":20,"original_position":20,"commit_id":"626a1d9657e250a3d13311b0df25f0e1bba65796","original_commit_id":"626a1d9657e250a3d13311b0df25f0e1bba65796","user":{"login":"marco-c","id":1616846,"avatar_url":"https://avatars1.githubusercontent.com/u/1616846?v=4","gravatar_id":"","url":"https://api.github.com/users/marco-c","html_url":"https://github.com/marco-c","followers_url":"https://api.github.com/users/marco-c/followers","following_url":"https://api.github.com/users/marco-c/following{/other_user}","gists_url":"https://api.github.com/users/marco-c/gists{/gist_id}","starred_url":"https://api.github.com/users/marco-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marco-c/subscriptions","organizations_url":"https://api.github.com/users/marco-c/orgs","repos_url":"https://api.github.com/users/marco-c/repos","events_url":"https://api.github.com/users/marco-c/events{/privacy}","received_events_url":"https://api.github.com/users/marco-c/received_events","type":"User","site_admin":false},"body":"Like one of the elements from the `task-group_1.json` file in fixtures/, for example the one with name `test-linux64-ccov/opt-mochitest-devtools-chrome-e10s-4`. And then use the linked artifacts (https://queue.taskcluster.net/v1/task/AMhPZboeTSa_lax-wl36IA/artifacts).","created_at":"2018-04-01T17:08:49Z","updated_at":"2018-04-01T17:08:49Z","html_url":"https://github.com/mozilla-releng/services/pull/998#discussion_r178463755","pull_request_url":"https://api.github.com/repos/mozilla-releng/services/pulls/998","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/mozilla-releng/services/pulls/comments/178463755"},"html":{"href":"https://github.com/mozilla-releng/services/pull/998#discussion_r178463755"},"pull_request":{"href":"https://api.github.com/repos/mozilla-releng/services/pulls/998"}},"in_reply_to_id":178463637},"pull_request":{"url":"https://api.github.com/repos/mozilla-releng/services/pulls/998","id":177251347,"html_url":"https://github.com/mozilla-releng/services/pull/998","diff_url":"https://github.com/mozilla-releng/services/pull/998.diff","patch_url":"https://github.com/mozilla-releng/services/pull/998.patch","issue_url":"https://api.github.com/repos/mozilla-releng/services/issues/998","number":998,"state":"open","locked":false,"title":"shipit_code_coverage: Add unit test for the artifacts.download function","user":{"login":"clarammdantas","id":15564640,"avatar_url":"https://avatars1.githubusercontent.com/u/15564640?v=4","gravatar_id":"","url":"https://api.github.com/users/clarammdantas","html_url":"https://github.com/clarammdantas","followers_url":"https://api.github.com/users/clarammdantas/followers","following_url":"https://api.github.com/users/clarammdantas/following{/other_user}","gists_url":"https://api.github.com/users/clarammdantas/gists{/gist_id}","starred_url":"https://api.github.com/users/clarammdantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clarammdantas/subscriptions","organizations_url":"https://api.github.com/users/clarammdantas/orgs","repos_url":"https://api.github.com/users/clarammdantas/repos","events_url":"https://api.github.com/users/clarammdantas/events{/privacy}","received_events_url":"https://api.github.com/users/clarammdantas/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-24T18:23:08Z","updated_at":"2018-04-01T17:08:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c6721a0267d1c3d8659cc06ba028e21f3403643","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":608459710,"url":"https://api.github.com/repos/mozilla-releng/services/labels/app:shipit_code_coverage","name":"app:shipit_code_coverage","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-releng/services/pulls/998/commits","review_comments_url":"https://api.github.com/repos/mozilla-releng/services/pulls/998/comments","review_comment_url":"https://api.github.com/repos/mozilla-releng/services/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-releng/services/issues/998/comments","statuses_url":"https://api.github.com/repos/mozilla-releng/services/statuses/626a1d9657e250a3d13311b0df25f0e1bba65796","head":{"label":"clarammdantas:shipit-code-coverage","ref":"shipit-code-coverage","sha":"626a1d9657e250a3d13311b0df25f0e1bba65796","user":{"login":"clarammdantas","id":15564640,"avatar_url":"https://avatars1.githubusercontent.com/u/15564640?v=4","gravatar_id":"","url":"https://api.github.com/users/clarammdantas","html_url":"https://github.com/clarammdantas","followers_url":"https://api.github.com/users/clarammdantas/followers","following_url":"https://api.github.com/users/clarammdantas/following{/other_user}","gists_url":"https://api.github.com/users/clarammdantas/gists{/gist_id}","starred_url":"https://api.github.com/users/clarammdantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clarammdantas/subscriptions","organizations_url":"https://api.github.com/users/clarammdantas/orgs","repos_url":"https://api.github.com/users/clarammdantas/repos","events_url":"https://api.github.com/users/clarammdantas/events{/privacy}","received_events_url":"https://api.github.com/users/clarammdantas/received_events","type":"User","site_admin":false},"repo":{"id":124671401,"name":"services","full_name":"clarammdantas/services","owner":{"login":"clarammdantas","id":15564640,"avatar_url":"https://avatars1.githubusercontent.com/u/15564640?v=4","gravatar_id":"","url":"https://api.github.com/users/clarammdantas","html_url":"https://github.com/clarammdantas","followers_url":"https://api.github.com/users/clarammdantas/followers","following_url":"https://api.github.com/users/clarammdantas/following{/other_user}","gists_url":"https://api.github.com/users/clarammdantas/gists{/gist_id}","starred_url":"https://api.github.com/users/clarammdantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clarammdantas/subscriptions","organizations_url":"https://api.github.com/users/clarammdantas/orgs","repos_url":"https://api.github.com/users/clarammdantas/repos","events_url":"https://api.github.com/users/clarammdantas/events{/privacy}","received_events_url":"https://api.github.com/users/clarammdantas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clarammdantas/services","description":"Mozilla Release Engineering Services","fork":true,"url":"https://api.github.com/repos/clarammdantas/services","forks_url":"https://api.github.com/repos/clarammdantas/services/forks","keys_url":"https://api.github.com/repos/clarammdantas/services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clarammdantas/services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clarammdantas/services/teams","hooks_url":"https://api.github.com/repos/clarammdantas/services/hooks","issue_events_url":"https://api.github.com/repos/clarammdantas/services/issues/events{/number}","events_url":"https://api.github.com/repos/clarammdantas/services/events","assignees_url":"https://api.github.com/repos/clarammdantas/services/assignees{/user}","branches_url":"https://api.github.com/repos/clarammdantas/services/branches{/branch}","tags_url":"https://api.github.com/repos/clarammdantas/services/tags","blobs_url":"https://api.github.com/repos/clarammdantas/services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clarammdantas/services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clarammdantas/services/git/refs{/sha}","trees_url":"https://api.github.com/repos/clarammdantas/services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clarammdantas/services/statuses/{sha}","languages_url":"https://api.github.com/repos/clarammdantas/services/languages","stargazers_url":"https://api.github.com/repos/clarammdantas/services/stargazers","contributors_url":"https://api.github.com/repos/clarammdantas/services/contributors","subscribers_url":"https://api.github.com/repos/clarammdantas/services/subscribers","subscription_url":"https://api.github.com/repos/clarammdantas/services/subscription","commits_url":"https://api.github.com/repos/clarammdantas/services/commits{/sha}","git_commits_url":"https://api.github.com/repos/clarammdantas/services/git/commits{/sha}","comments_url":"https://api.github.com/repos/clarammdantas/services/comments{/number}","issue_comment_url":"https://api.github.com/repos/clarammdantas/services/issues/comments{/number}","contents_url":"https://api.github.com/repos/clarammdantas/services/contents/{+path}","compare_url":"https://api.github.com/repos/clarammdantas/services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clarammdantas/services/merges","archive_url":"https://api.github.com/repos/clarammdantas/services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clarammdantas/services/downloads","issues_url":"https://api.github.com/repos/clarammdantas/services/issues{/number}","pulls_url":"https://api.github.com/repos/clarammdantas/services/pulls{/number}","milestones_url":"https://api.github.com/repos/clarammdantas/services/milestones{/number}","notifications_url":"https://api.github.com/repos/clarammdantas/services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clarammdantas/services/labels{/name}","releases_url":"https://api.github.com/repos/clarammdantas/services/releases{/id}","deployments_url":"https://api.github.com/repos/clarammdantas/services/deployments","created_at":"2018-03-10T16:01:47Z","updated_at":"2018-03-31T21:26:46Z","pushed_at":"2018-04-01T16:43:23Z","git_url":"git://github.com/clarammdantas/services.git","ssh_url":"git@github.com:clarammdantas/services.git","clone_url":"https://github.com/clarammdantas/services.git","svn_url":"https://github.com/clarammdantas/services","homepage":"https://mozilla-releng.net","size":61983,"stargazers_count":0,"watchers_count":0,"language":"Nix","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla-releng:master","ref":"master","sha":"770a55d2f5d15372f890c8b57571ebe1569e14ff","user":{"login":"mozilla-releng","id":19614164,"avatar_url":"https://avatars1.githubusercontent.com/u/19614164?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla-releng","html_url":"https://github.com/mozilla-releng","followers_url":"https://api.github.com/users/mozilla-releng/followers","following_url":"https://api.github.com/users/mozilla-releng/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-releng/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-releng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-releng/subscriptions","organizations_url":"https://api.github.com/users/mozilla-releng/orgs","repos_url":"https://api.github.com/users/mozilla-releng/repos","events_url":"https://api.github.com/users/mozilla-releng/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-releng/received_events","type":"Organization","site_admin":false},"repo":{"id":51109207,"name":"services","full_name":"mozilla-releng/services","owner":{"login":"mozilla-releng","id":19614164,"avatar_url":"https://avatars1.githubusercontent.com/u/19614164?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla-releng","html_url":"https://github.com/mozilla-releng","followers_url":"https://api.github.com/users/mozilla-releng/followers","following_url":"https://api.github.com/users/mozilla-releng/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-releng/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-releng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-releng/subscriptions","organizations_url":"https://api.github.com/users/mozilla-releng/orgs","repos_url":"https://api.github.com/users/mozilla-releng/repos","events_url":"https://api.github.com/users/mozilla-releng/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-releng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-releng/services","description":"Mozilla Release Engineering Services","fork":false,"url":"https://api.github.com/repos/mozilla-releng/services","forks_url":"https://api.github.com/repos/mozilla-releng/services/forks","keys_url":"https://api.github.com/repos/mozilla-releng/services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-releng/services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-releng/services/teams","hooks_url":"https://api.github.com/repos/mozilla-releng/services/hooks","issue_events_url":"https://api.github.com/repos/mozilla-releng/services/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-releng/services/events","assignees_url":"https://api.github.com/repos/mozilla-releng/services/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-releng/services/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-releng/services/tags","blobs_url":"https://api.github.com/repos/mozilla-releng/services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-releng/services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-releng/services/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-releng/services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-releng/services/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-releng/services/languages","stargazers_url":"https://api.github.com/repos/mozilla-releng/services/stargazers","contributors_url":"https://api.github.com/repos/mozilla-releng/services/contributors","subscribers_url":"https://api.github.com/repos/mozilla-releng/services/subscribers","subscription_url":"https://api.github.com/repos/mozilla-releng/services/subscription","commits_url":"https://api.github.com/repos/mozilla-releng/services/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-releng/services/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-releng/services/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-releng/services/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-releng/services/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-releng/services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-releng/services/merges","archive_url":"https://api.github.com/repos/mozilla-releng/services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-releng/services/downloads","issues_url":"https://api.github.com/repos/mozilla-releng/services/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-releng/services/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-releng/services/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-releng/services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-releng/services/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-releng/services/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla-releng/services/deployments","created_at":"2016-02-04T22:07:22Z","updated_at":"2018-03-29T19:06:30Z","pushed_at":"2018-04-01T16:43:24Z","git_url":"git://github.com/mozilla-releng/services.git","ssh_url":"git@github.com:mozilla-releng/services.git","clone_url":"https://github.com/mozilla-releng/services.git","svn_url":"https://github.com/mozilla-releng/services","homepage":"https://mozilla-releng.net","size":61974,"stargazers_count":18,"watchers_count":18,"language":"Nix","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":65,"mirror_url":null,"archived":false,"open_issues_count":181,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":65,"open_issues":181,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-releng/services/pulls/998"},"html":{"href":"https://github.com/mozilla-releng/services/pull/998"},"issue":{"href":"https://api.github.com/repos/mozilla-releng/services/issues/998"},"comments":{"href":"https://api.github.com/repos/mozilla-releng/services/issues/998/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-releng/services/pulls/998/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-releng/services/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-releng/services/pulls/998/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-releng/services/statuses/626a1d9657e250a3d13311b0df25f0e1bba65796"}},"author_association":"NONE"}}
{"actor":{"display_login":"marco-c"}}