{"action":"created","comment":{"url":"https://api.github.com/repos/cylc/cylc/pulls/comments/231721307","pull_request_review_id":172753195,"id":231721307,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTcyMTMwNw==","diff_hunk":"@@ -0,0 +1,35 @@\n+#!/usr/bin/env python2\n+\n+# THIS FILE IS PART OF THE CYLC SUITE ENGINE.\n+# Copyright (C) 2008-2018 NIWA & British Crown (Met Office) & Contributors.\n+#\n+# This program is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation, either version 3 of the License, or\n+# (at your option) any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+\n+import sys\n+\n+from subprocess import call","path":".travis/cover.py","position":21,"original_position":21,"commit_id":"b20a642c218a3bc6d9534e3db78902f6fc9677c6","original_commit_id":"b20a642c218a3bc6d9534e3db78902f6fc9677c6","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Consider possible security implications associated with call module.](https://app.codacy.com/app/Cylc/cylc/pullRequest?prid=2121123)","created_at":"2018-11-07T23:47:14Z","updated_at":"2018-11-07T23:47:14Z","html_url":"https://github.com/cylc/cylc/pull/2766#discussion_r231721307","pull_request_url":"https://api.github.com/repos/cylc/cylc/pulls/2766","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/cylc/cylc/pulls/comments/231721307"},"html":{"href":"https://github.com/cylc/cylc/pull/2766#discussion_r231721307"},"pull_request":{"href":"https://api.github.com/repos/cylc/cylc/pulls/2766"}}},"pull_request":{"url":"https://api.github.com/repos/cylc/cylc/pulls/2766","id":212279837,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyMjc5ODM3","html_url":"https://github.com/cylc/cylc/pull/2766","diff_url":"https://github.com/cylc/cylc/pull/2766.diff","patch_url":"https://github.com/cylc/cylc/pull/2766.patch","issue_url":"https://api.github.com/repos/cylc/cylc/issues/2766","number":2766,"state":"open","locked":false,"title":"Add coverage to the project reports.","user":{"login":"kinow","id":304786,"node_id":"MDQ6VXNlcjMwNDc4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/304786?v=4","gravatar_id":"","url":"https://api.github.com/users/kinow","html_url":"https://github.com/kinow","followers_url":"https://api.github.com/users/kinow/followers","following_url":"https://api.github.com/users/kinow/following{/other_user}","gists_url":"https://api.github.com/users/kinow/gists{/gist_id}","starred_url":"https://api.github.com/users/kinow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinow/subscriptions","organizations_url":"https://api.github.com/users/kinow/orgs","repos_url":"https://api.github.com/users/kinow/repos","events_url":"https://api.github.com/users/kinow/events{/privacy}","received_events_url":"https://api.github.com/users/kinow/received_events","type":"User","site_admin":false},"body":"Travis-CI configuration was updated to use build stages. The build matrix was moved to the test stage, and extra configuration for coverage.py and codacy were added.\r\n\r\nThe tool used to collect coverage from the tests in [Coverage.py](https://coverage.readthedocs.io/en/coverage-4.5.1a/), which is supported by multiple build and reporting systems.\r\n\r\nDue to the nature of the tests in cylc, and to how they run in parallel in different containers in Travis-CI, we had to use a [`sitecustomize.py`](https://docs.python.org/3/library/site.html) script.\r\n\r\nAs Codacy was already used for code analysis, this pull request includes settings to export the coverage report to Codacy. I assume the Codacy token is already set up. So maybe just merging the pull request would already make the coverage report available in the [cylc dashboard](https://app.codacy.com/project/Cylc/cylc/dashboard).\r\n\r\nIt is also possible to get the coverage of pull requests.\r\n\r\nCheers\r\nBruno","created_at":"2018-08-31T05:44:42Z","updated_at":"2018-11-07T23:47:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e33a739b17941aabd6ea360c4eb877c66e652f7f","assignee":{"login":"kinow","id":304786,"node_id":"MDQ6VXNlcjMwNDc4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/304786?v=4","gravatar_id":"","url":"https://api.github.com/users/kinow","html_url":"https://github.com/kinow","followers_url":"https://api.github.com/users/kinow/followers","following_url":"https://api.github.com/users/kinow/following{/other_user}","gists_url":"https://api.github.com/users/kinow/gists{/gist_id}","starred_url":"https://api.github.com/users/kinow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinow/subscriptions","organizations_url":"https://api.github.com/users/kinow/orgs","repos_url":"https://api.github.com/users/kinow/repos","events_url":"https://api.github.com/users/kinow/events{/privacy}","received_events_url":"https://api.github.com/users/kinow/received_events","type":"User","site_admin":false},"assignees":[{"login":"kinow","id":304786,"node_id":"MDQ6VXNlcjMwNDc4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/304786?v=4","gravatar_id":"","url":"https://api.github.com/users/kinow","html_url":"https://github.com/kinow","followers_url":"https://api.github.com/users/kinow/followers","following_url":"https://api.github.com/users/kinow/following{/other_user}","gists_url":"https://api.github.com/users/kinow/gists{/gist_id}","starred_url":"https://api.github.com/users/kinow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinow/subscriptions","organizations_url":"https://api.github.com/users/kinow/orgs","repos_url":"https://api.github.com/users/kinow/repos","events_url":"https://api.github.com/users/kinow/events{/privacy}","received_events_url":"https://api.github.com/users/kinow/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/cylc/cylc/milestones/5","html_url":"https://github.com/cylc/cylc/milestone/5","labels_url":"https://api.github.com/repos/cylc/cylc/milestones/5/labels","id":262614,"node_id":"MDk6TWlsZXN0b25lMjYyNjE0","number":5,"title":"soon","description":"A few months in the future. Top priority issues and easy fixes should initially be marked against this milestone, and then moved to *next-release* if work progresses quickly enough.","creator":{"login":"hjoliver","id":2362137,"node_id":"MDQ6VXNlcjIzNjIxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/2362137?v=4","gravatar_id":"","url":"https://api.github.com/users/hjoliver","html_url":"https://github.com/hjoliver","followers_url":"https://api.github.com/users/hjoliver/followers","following_url":"https://api.github.com/users/hjoliver/following{/other_user}","gists_url":"https://api.github.com/users/hjoliver/gists{/gist_id}","starred_url":"https://api.github.com/users/hjoliver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjoliver/subscriptions","organizations_url":"https://api.github.com/users/hjoliver/orgs","repos_url":"https://api.github.com/users/hjoliver/repos","events_url":"https://api.github.com/users/hjoliver/events{/privacy}","received_events_url":"https://api.github.com/users/hjoliver/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":0,"state":"open","created_at":"2013-02-08T07:07:13Z","updated_at":"2018-11-07T23:44:34Z","due_on":"2018-12-31T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/cylc/cylc/pulls/2766/commits","review_comments_url":"https://api.github.com/repos/cylc/cylc/pulls/2766/comments","review_comment_url":"https://api.github.com/repos/cylc/cylc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cylc/cylc/issues/2766/comments","statuses_url":"https://api.github.com/repos/cylc/cylc/statuses/b20a642c218a3bc6d9534e3db78902f6fc9677c6","head":{"label":"kinow:report-test-coverage","ref":"report-test-coverage","sha":"b20a642c218a3bc6d9534e3db78902f6fc9677c6","user":{"login":"kinow","id":304786,"node_id":"MDQ6VXNlcjMwNDc4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/304786?v=4","gravatar_id":"","url":"https://api.github.com/users/kinow","html_url":"https://github.com/kinow","followers_url":"https://api.github.com/users/kinow/followers","following_url":"https://api.github.com/users/kinow/following{/other_user}","gists_url":"https://api.github.com/users/kinow/gists{/gist_id}","starred_url":"https://api.github.com/users/kinow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinow/subscriptions","organizations_url":"https://api.github.com/users/kinow/orgs","repos_url":"https://api.github.com/users/kinow/repos","events_url":"https://api.github.com/users/kinow/events{/privacy}","received_events_url":"https://api.github.com/users/kinow/received_events","type":"User","site_admin":false},"repo":{"id":51749332,"node_id":"MDEwOlJlcG9zaXRvcnk1MTc0OTMzMg==","name":"cylc","full_name":"kinow/cylc","private":false,"owner":{"login":"kinow","id":304786,"node_id":"MDQ6VXNlcjMwNDc4Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/304786?v=4","gravatar_id":"","url":"https://api.github.com/users/kinow","html_url":"https://github.com/kinow","followers_url":"https://api.github.com/users/kinow/followers","following_url":"https://api.github.com/users/kinow/following{/other_user}","gists_url":"https://api.github.com/users/kinow/gists{/gist_id}","starred_url":"https://api.github.com/users/kinow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinow/subscriptions","organizations_url":"https://api.github.com/users/kinow/orgs","repos_url":"https://api.github.com/users/kinow/repos","events_url":"https://api.github.com/users/kinow/events{/privacy}","received_events_url":"https://api.github.com/users/kinow/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kinow/cylc","description":"This is the official repository of the cylc suite engine. It will normally contain just the master branch, with completed features merged in from feature branches in developer forks.","fork":true,"url":"https://api.github.com/repos/kinow/cylc","forks_url":"https://api.github.com/repos/kinow/cylc/forks","keys_url":"https://api.github.com/repos/kinow/cylc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kinow/cylc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kinow/cylc/teams","hooks_url":"https://api.github.com/repos/kinow/cylc/hooks","issue_events_url":"https://api.github.com/repos/kinow/cylc/issues/events{/number}","events_url":"https://api.github.com/repos/kinow/cylc/events","assignees_url":"https://api.github.com/repos/kinow/cylc/assignees{/user}","branches_url":"https://api.github.com/repos/kinow/cylc/branches{/branch}","tags_url":"https://api.github.com/repos/kinow/cylc/tags","blobs_url":"https://api.github.com/repos/kinow/cylc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kinow/cylc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kinow/cylc/git/refs{/sha}","trees_url":"https://api.github.com/repos/kinow/cylc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kinow/cylc/statuses/{sha}","languages_url":"https://api.github.com/repos/kinow/cylc/languages","stargazers_url":"https://api.github.com/repos/kinow/cylc/stargazers","contributors_url":"https://api.github.com/repos/kinow/cylc/contributors","subscribers_url":"https://api.github.com/repos/kinow/cylc/subscribers","subscription_url":"https://api.github.com/repos/kinow/cylc/subscription","commits_url":"https://api.github.com/repos/kinow/cylc/commits{/sha}","git_commits_url":"https://api.github.com/repos/kinow/cylc/git/commits{/sha}","comments_url":"https://api.github.com/repos/kinow/cylc/comments{/number}","issue_comment_url":"https://api.github.com/repos/kinow/cylc/issues/comments{/number}","contents_url":"https://api.github.com/repos/kinow/cylc/contents/{+path}","compare_url":"https://api.github.com/repos/kinow/cylc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kinow/cylc/merges","archive_url":"https://api.github.com/repos/kinow/cylc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kinow/cylc/downloads","issues_url":"https://api.github.com/repos/kinow/cylc/issues{/number}","pulls_url":"https://api.github.com/repos/kinow/cylc/pulls{/number}","milestones_url":"https://api.github.com/repos/kinow/cylc/milestones{/number}","notifications_url":"https://api.github.com/repos/kinow/cylc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kinow/cylc/labels{/name}","releases_url":"https://api.github.com/repos/kinow/cylc/releases{/id}","deployments_url":"https://api.github.com/repos/kinow/cylc/deployments","created_at":"2016-02-15T10:51:15Z","updated_at":"2018-11-03T00:55:32Z","pushed_at":"2018-11-07T23:41:44Z","git_url":"git://github.com/kinow/cylc.git","ssh_url":"git@github.com:kinow/cylc.git","clone_url":"https://github.com/kinow/cylc.git","svn_url":"https://github.com/kinow/cylc","homepage":"http://cylc.github.com/cylc","size":88973,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cylc:master","ref":"master","sha":"ccf5920d051d49127b5acc133684de34192e2744","user":{"login":"cylc","id":824878,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyNDg3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/824878?v=4","gravatar_id":"","url":"https://api.github.com/users/cylc","html_url":"https://github.com/cylc","followers_url":"https://api.github.com/users/cylc/followers","following_url":"https://api.github.com/users/cylc/following{/other_user}","gists_url":"https://api.github.com/users/cylc/gists{/gist_id}","starred_url":"https://api.github.com/users/cylc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cylc/subscriptions","organizations_url":"https://api.github.com/users/cylc/orgs","repos_url":"https://api.github.com/users/cylc/repos","events_url":"https://api.github.com/users/cylc/events{/privacy}","received_events_url":"https://api.github.com/users/cylc/received_events","type":"Organization","site_admin":false},"repo":{"id":1836229,"node_id":"MDEwOlJlcG9zaXRvcnkxODM2MjI5","name":"cylc","full_name":"cylc/cylc","private":false,"owner":{"login":"cylc","id":824878,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyNDg3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/824878?v=4","gravatar_id":"","url":"https://api.github.com/users/cylc","html_url":"https://github.com/cylc","followers_url":"https://api.github.com/users/cylc/followers","following_url":"https://api.github.com/users/cylc/following{/other_user}","gists_url":"https://api.github.com/users/cylc/gists{/gist_id}","starred_url":"https://api.github.com/users/cylc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cylc/subscriptions","organizations_url":"https://api.github.com/users/cylc/orgs","repos_url":"https://api.github.com/users/cylc/repos","events_url":"https://api.github.com/users/cylc/events{/privacy}","received_events_url":"https://api.github.com/users/cylc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cylc/cylc","description":"Cylc, a workflow engine for cycling (and non-cycling) systems.","fork":false,"url":"https://api.github.com/repos/cylc/cylc","forks_url":"https://api.github.com/repos/cylc/cylc/forks","keys_url":"https://api.github.com/repos/cylc/cylc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cylc/cylc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cylc/cylc/teams","hooks_url":"https://api.github.com/repos/cylc/cylc/hooks","issue_events_url":"https://api.github.com/repos/cylc/cylc/issues/events{/number}","events_url":"https://api.github.com/repos/cylc/cylc/events","assignees_url":"https://api.github.com/repos/cylc/cylc/assignees{/user}","branches_url":"https://api.github.com/repos/cylc/cylc/branches{/branch}","tags_url":"https://api.github.com/repos/cylc/cylc/tags","blobs_url":"https://api.github.com/repos/cylc/cylc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cylc/cylc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cylc/cylc/git/refs{/sha}","trees_url":"https://api.github.com/repos/cylc/cylc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cylc/cylc/statuses/{sha}","languages_url":"https://api.github.com/repos/cylc/cylc/languages","stargazers_url":"https://api.github.com/repos/cylc/cylc/stargazers","contributors_url":"https://api.github.com/repos/cylc/cylc/contributors","subscribers_url":"https://api.github.com/repos/cylc/cylc/subscribers","subscription_url":"https://api.github.com/repos/cylc/cylc/subscription","commits_url":"https://api.github.com/repos/cylc/cylc/commits{/sha}","git_commits_url":"https://api.github.com/repos/cylc/cylc/git/commits{/sha}","comments_url":"https://api.github.com/repos/cylc/cylc/comments{/number}","issue_comment_url":"https://api.github.com/repos/cylc/cylc/issues/comments{/number}","contents_url":"https://api.github.com/repos/cylc/cylc/contents/{+path}","compare_url":"https://api.github.com/repos/cylc/cylc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cylc/cylc/merges","archive_url":"https://api.github.com/repos/cylc/cylc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cylc/cylc/downloads","issues_url":"https://api.github.com/repos/cylc/cylc/issues{/number}","pulls_url":"https://api.github.com/repos/cylc/cylc/pulls{/number}","milestones_url":"https://api.github.com/repos/cylc/cylc/milestones{/number}","notifications_url":"https://api.github.com/repos/cylc/cylc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cylc/cylc/labels{/name}","releases_url":"https://api.github.com/repos/cylc/cylc/releases{/id}","deployments_url":"https://api.github.com/repos/cylc/cylc/deployments","created_at":"2011-06-02T08:31:49Z","updated_at":"2018-11-07T09:55:49Z","pushed_at":"2018-11-07T23:44:34Z","git_url":"git://github.com/cylc/cylc.git","ssh_url":"git@github.com:cylc/cylc.git","clone_url":"https://github.com/cylc/cylc.git","svn_url":"https://github.com/cylc/cylc","homepage":"https://cylc.github.io/cylc","size":130139,"stargazers_count":77,"watchers_count":77,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":55,"mirror_url":null,"archived":false,"open_issues_count":178,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":55,"open_issues":178,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cylc/cylc/pulls/2766"},"html":{"href":"https://github.com/cylc/cylc/pull/2766"},"issue":{"href":"https://api.github.com/repos/cylc/cylc/issues/2766"},"comments":{"href":"https://api.github.com/repos/cylc/cylc/issues/2766/comments"},"review_comments":{"href":"https://api.github.com/repos/cylc/cylc/pulls/2766/comments"},"review_comment":{"href":"https://api.github.com/repos/cylc/cylc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cylc/cylc/pulls/2766/commits"},"statuses":{"href":"https://api.github.com/repos/cylc/cylc/statuses/b20a642c218a3bc6d9534e3db78902f6fc9677c6"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codacy-bot"}}