{"action":"created","issue":{"url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/152","repository_url":"https://api.github.com/repos/Juniper/contrail-windows-ci","labels_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/152/comments","events_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/152/events","html_url":"https://github.com/Juniper/contrail-windows-ci/pull/152","id":325230766,"number":152,"title":"Get rid of gather-build-stats job.","user":{"login":"m-kostrzewa","id":9220158,"avatar_url":"https://avatars3.githubusercontent.com/u/9220158?v=4","gravatar_id":"","url":"https://api.github.com/users/m-kostrzewa","html_url":"https://github.com/m-kostrzewa","followers_url":"https://api.github.com/users/m-kostrzewa/followers","following_url":"https://api.github.com/users/m-kostrzewa/following{/other_user}","gists_url":"https://api.github.com/users/m-kostrzewa/gists{/gist_id}","starred_url":"https://api.github.com/users/m-kostrzewa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-kostrzewa/subscriptions","organizations_url":"https://api.github.com/users/m-kostrzewa/orgs","repos_url":"https://api.github.com/users/m-kostrzewa/repos","events_url":"https://api.github.com/users/m-kostrzewa/events{/privacy}","received_events_url":"https://api.github.com/users/m-kostrzewa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-05-22T10:22:02Z","updated_at":"2018-05-28T14:05:31Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/Juniper/contrail-windows-ci/pulls/152","html_url":"https://github.com/Juniper/contrail-windows-ci/pull/152","diff_url":"https://github.com/Juniper/contrail-windows-ci/pull/152.diff","patch_url":"https://github.com/Juniper/contrail-windows-ci/pull/152.patch"},"body":"I was confused why we even have `gather-build-stats` job. Main reason was to retreive job status via Jenkins workflow API. But we can find out that status using `currentStatus` variable. So I decided to get rid of gather-build-stats job altogether.\r\n\r\nJob seems to appear in monitoring DB just fine.\r\n\r\n```\r\nMariaDB [monitoring_test]> select * from builds where build_id=\"1601\" and job_name like \"%gh\";\r\n+--------------------------------+----------+----------------------------------------------------------------------+------------------+---------+-----------------+\r\n| job_name                       | build_id | build_url                                                            | finished_at_secs | status  | duration_millis |\r\n+--------------------------------+----------+----------------------------------------------------------------------+------------------+---------+-----------------+\r\n| WinContrail/contrail-win-ci-gh |     1601 | http://10.84.12.26:8080/job/WinContrail/job/contrail-win-ci-gh/1601/ |       1527089276 | SUCCESS |         5021522 |\r\n+--------------------------------+----------+----------------------------------------------------------------------+------------------+---------+-----------------+\r\n1 row in set (0.01 sec)\r\n```\r\n\r\nTODO:\r\n- [ ] set MYSQL_HOST and MYSQL_DATABASE in job configs\r\n- [ ] remove MYSQL_HOST and MYSQL_DATABASE from Jenkinsfile\r\n\r\nTODO Postmerge:\r\n- [ ] merge to prod\r\n\r\nTODO Postmergetoprod:\r\n- [ ] disable build-stats-job\r\n- [ ] make sure nothing breaks\r\n- [ ] remove build-stats-job"},"comment":{"url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/comments/392536254","html_url":"https://github.com/Juniper/contrail-windows-ci/pull/152#issuecomment-392536254","issue_url":"https://api.github.com/repos/Juniper/contrail-windows-ci/issues/152","id":392536254,"user":{"login":"m-kostrzewa","id":9220158,"avatar_url":"https://avatars3.githubusercontent.com/u/9220158?v=4","gravatar_id":"","url":"https://api.github.com/users/m-kostrzewa","html_url":"https://github.com/m-kostrzewa","followers_url":"https://api.github.com/users/m-kostrzewa/followers","following_url":"https://api.github.com/users/m-kostrzewa/following{/other_user}","gists_url":"https://api.github.com/users/m-kostrzewa/gists{/gist_id}","starred_url":"https://api.github.com/users/m-kostrzewa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-kostrzewa/subscriptions","organizations_url":"https://api.github.com/users/m-kostrzewa/orgs","repos_url":"https://api.github.com/users/m-kostrzewa/repos","events_url":"https://api.github.com/users/m-kostrzewa/events{/privacy}","received_events_url":"https://api.github.com/users/m-kostrzewa/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T14:05:31Z","updated_at":"2018-05-28T14:05:31Z","author_association":"COLLABORATOR","body":"recheck no bug"}}
{"actor":{"display_login":"m-kostrzewa"}}