{"action":"created","issue":{"url":"https://api.github.com/repos/dlang-bots/dlang-bot/issues/60","repository_url":"https://api.github.com/repos/dlang-bots/dlang-bot","labels_url":"https://api.github.com/repos/dlang-bots/dlang-bot/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/dlang-bots/dlang-bot/issues/60/comments","events_url":"https://api.github.com/repos/dlang-bots/dlang-bot/issues/60/events","html_url":"https://github.com/dlang-bots/dlang-bot/issues/60","id":210296918,"number":60,"title":"Query CodeCov API and show the status and links as part of the comment","user":{"login":"wilzbach","id":4370550,"avatar_url":"https://avatars7.githubusercontent.com/u/4370550?v=4","gravatar_id":"","url":"https://api.github.com/users/wilzbach","html_url":"https://github.com/wilzbach","followers_url":"https://api.github.com/users/wilzbach/followers","following_url":"https://api.github.com/users/wilzbach/following{/other_user}","gists_url":"https://api.github.com/users/wilzbach/gists{/gist_id}","starred_url":"https://api.github.com/users/wilzbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilzbach/subscriptions","organizations_url":"https://api.github.com/users/wilzbach/orgs","repos_url":"https://api.github.com/users/wilzbach/repos","events_url":"https://api.github.com/users/wilzbach/events{/privacy}","received_events_url":"https://api.github.com/users/wilzbach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-26T08:02:59Z","updated_at":"2017-07-16T17:49:15Z","closed_at":null,"body":"Problem: the CodeCov failures happen to often and everytime they mark a PR with a fat \"red cross\".\r\nProposed solution: disable CodeCov CI reports, let the bot query the status results manually and display them in the bot's comment.\r\n\r\nI don't know how \"fast\" CodeCov is in interpreting the results, but we could try the following:\r\n\r\n> whenever there's a CircleCi event  wait X minutes and query CodeCov, on failure wait 2*X minutes and query CodeCov again"},"comment":{"url":"https://api.github.com/repos/dlang-bots/dlang-bot/issues/comments/315625052","html_url":"https://github.com/dlang-bots/dlang-bot/issues/60#issuecomment-315625052","issue_url":"https://api.github.com/repos/dlang-bots/dlang-bot/issues/60","id":315625052,"user":{"login":"wilzbach","id":4370550,"avatar_url":"https://avatars7.githubusercontent.com/u/4370550?v=4","gravatar_id":"","url":"https://api.github.com/users/wilzbach","html_url":"https://github.com/wilzbach","followers_url":"https://api.github.com/users/wilzbach/followers","following_url":"https://api.github.com/users/wilzbach/following{/other_user}","gists_url":"https://api.github.com/users/wilzbach/gists{/gist_id}","starred_url":"https://api.github.com/users/wilzbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilzbach/subscriptions","organizations_url":"https://api.github.com/users/wilzbach/orgs","repos_url":"https://api.github.com/users/wilzbach/repos","events_url":"https://api.github.com/users/wilzbach/events{/privacy}","received_events_url":"https://api.github.com/users/wilzbach/received_events","type":"User","site_admin":false},"created_at":"2017-07-16T17:49:15Z","updated_at":"2017-07-16T17:49:15Z","body":"More:\r\n\r\n```json\r\n{\r\n  \"owner\": {\r\n    \"service\": \"github\",\r\n    \"username\": \"dlang\",\r\n    \"service_id\": \"565913\"\r\n  },\r\n  \"base\": {\r\n    \"totals\": {\r\n      \"N\": 0,\r\n      \"p\": 0,\r\n      \"s\": 1,\r\n      \"M\": 0,\r\n      \"d\": 0,\r\n      \"f\": 137,\r\n      \"C\": 0,\r\n      \"c\": \"75.39774\",\r\n      \"b\": 0,\r\n      \"m\": 4268,\r\n      \"n\": 17348,\r\n      \"h\": 13080\r\n    },\r\n    \"message\": \"CodeCov: add a hook to the Dlang-Bot\",\r\n    \"updatestamp\": \"2017-07-16 01:14:13.795352\",\r\n    \"archived\": true,\r\n    \"parent\": \"efafd5050373f32fd34705172f0543155408bf85\",\r\n    \"commitid\": \"2945c1983c720d58ede5450b29435fc17da1ad46\",\r\n    \"logs\": [\r\n      {\r\n        \"build\": \"936\",\r\n        \"ci\": \"circleci\",\r\n        \"time\": \"2017-07-16 00:46:26.436958\",\r\n        \"event\": \"upload\"\r\n      }\r\n    ],\r\n    \"deleted\": false,\r\n    \"timestamp\": \"2017-07-16 00:27:25\",\r\n    \"notified\": true,\r\n    \"parent_totals\": {\r\n      \"diff\": null,\r\n      \"p\": 0,\r\n      \"s\": 1,\r\n      \"d\": 0,\r\n      \"n\": 17348,\r\n      \"M\": 0,\r\n      \"f\": 137,\r\n      \"C\": 0,\r\n      \"c\": \"75.36892\",\r\n      \"b\": 0,\r\n      \"m\": 4273,\r\n      \"N\": 0,\r\n      \"h\": 13075\r\n    },\r\n    \"branch\": \"master\",\r\n    \"merged\": true,\r\n    \"pullid\": \"1874\",\r\n    \"version\": 3,\r\n    \"ci_passed\": true,\r\n    \"state\": \"complete\",\r\n    \"author\": {\r\n      \"email\": \"removed@removed.com\",\r\n      \"service\": \"github\",\r\n      \"name\": \"Sebastian Wilzbach\",\r\n      \"username\": \"wilzbach\",\r\n      \"service_id\": \"4370550\"\r\n    }\r\n  },\r\n  \"head\": {\r\n    \"message\": \"Merge pull request #1874 from wilzbach/disable-codecov\\n\\nDisable Codecov status messages\\nmerged-on-behalf-of: Sebastian Wilzbach <removed@removed.com>\",\r\n    \"version\": 3,\r\n    \"archived\": true,\r\n    \"parent\": \"2945c1983c720d58ede5450b29435fc17da1ad46\",\r\n    \"commitid\": \"c2c1abc6090b81dca7e8306405e7e5af5e7daf21\",\r\n    \"logs\": [\r\n      {\r\n        \"build\": \"937\",\r\n        \"ci\": \"circleci\",\r\n        \"time\": \"2017-07-16 01:16:15.930863\",\r\n        \"event\": \"upload\"\r\n      }\r\n    ],\r\n    \"merged\": false,\r\n    \"timestamp\": \"2017-07-16 01:13:34\",\r\n    \"branch\": \"master\",\r\n    \"notified\": null,\r\n    \"pullid\": null,\r\n    \"totals\": {\r\n      \"N\": 0,\r\n      \"p\": 0,\r\n      \"s\": 1,\r\n      \"M\": 0,\r\n      \"d\": 0,\r\n      \"f\": 137,\r\n      \"C\": 0,\r\n      \"c\": \"75.31704\",\r\n      \"b\": 0,\r\n      \"m\": 4282,\r\n      \"n\": 17348,\r\n      \"h\": 13066\r\n    },\r\n    \"url\": \"https://codecov.io/gh/dlang/druntime/commit/c2c1abc6090b81dca7e8306405e7e5af5e7daf21\",\r\n    \"updatestamp\": \"2017-07-16 01:22:04.158588\",\r\n    \"changes\": [\r\n      [\r\n        \"src/core/sync/rwmutex.d\",\r\n        null,\r\n        null,\r\n        false,\r\n        null,\r\n        [\r\n          0,\r\n          0,\r\n          1,\r\n          -1,\r\n          0,\r\n          0.5714299999999923,\r\n          0,\r\n          0,\r\n          0,\r\n          0,\r\n          0,\r\n          0,\r\n          0\r\n        ]\r\n      ],\r\n      [\r\n        \"src/gc/impl/conservative/gc.d\",\r\n        null,\r\n        null,\r\n        false,\r\n        null,\r\n        [\r\n          0,\r\n          0,\r\n          -1,\r\n          1,\r\n          0,\r\n          -0.09156999999999016,\r\n          0,\r\n          0,\r\n          0,\r\n          0,\r\n          0,\r\n          0,\r\n          0\r\n        ]\r\n      ],\r\n      [\r\n        \"src/core/thread.d\",\r\n        null,\r\n        null,\r\n        false,\r\n        null,\r\n        [\r\n          0,\r\n          0,\r\n          -3,\r\n          3,\r\n          0,\r\n          -0.32786000000000115,\r\n          0,\r\n          0,\r\n          0,\r\n          0,\r\n          0,\r\n          0,\r\n          0\r\n        ]\r\n      ],\r\n      [\r\n        \"src/rt/util/container/treap.d\",\r\n        null,\r\n        null,\r\n        false,\r\n        null,\r\n        null\r\n      ],\r\n      [\r\n        \"src/core/internal/spinlock.d\",\r\n        null,\r\n        null,\r\n        false,\r\n        null,\r\n        [\r\n          0,\r\n          0,\r\n          -11,\r\n          11,\r\n          0,\r\n          -61.11111000000001,\r\n          0,\r\n          0,\r\n          0,\r\n          0,\r\n          0,\r\n          0,\r\n          0\r\n        ]\r\n      ]\r\n    ],\r\n    \"parent_totals\": {\r\n      \"N\": 0,\r\n      \"C\": 0,\r\n      \"s\": 1,\r\n      \"M\": 0,\r\n      \"diff\": null,\r\n      \"d\": 0,\r\n      \"f\": 137,\r\n      \"c\": \"75.39774\",\r\n      \"b\": 0,\r\n      \"m\": 4268,\r\n      \"n\": 17348,\r\n      \"h\": 13080,\r\n      \"p\": 0\r\n    },\r\n    \"service_url\": \"https://github.com/dlang/druntime/commit/c2c1abc6090b81dca7e8306405e7e5af5e7daf21\",\r\n    \"deleted\": null,\r\n    \"ci_passed\": true,\r\n    \"state\": \"complete\",\r\n    \"author\": {\r\n      \"email\": \"removed@removed.com\",\r\n      \"service\": \"github\",\r\n      \"name\": \"The Dlang Bot\",\r\n      \"username\": \"dlang-bot\",\r\n      \"service_id\": \"15698993\"\r\n    }\r\n  },\r\n  \"compare\": {\r\n    \"coverage\": \"-0.09\",\r\n    \"url\": \"https://codecov.io/gh/dlang/druntime/compare/2945c1983c720d58ede5450b29435fc17da1ad46...c2c1abc6090b81dca7e8306405e7e5af5e7daf21\",\r\n    \"notation\": \"-\",\r\n    \"message\": \"decreased\"\r\n  },\r\n  \"pull\": null,\r\n  \"repo\": {\r\n    \"url\": \"https://codecov.io/gh/dlang/druntime\",\r\n    \"private\": false,\r\n    \"name\": \"druntime\",\r\n    \"service_id\": \"1257087\"\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"wilzbach"}}