{"action":"opened","number":71,"pull_request":{"url":"https://api.github.com/repos/ProboCI/probo/pulls/71","id":70711347,"html_url":"https://github.com/ProboCI/probo/pull/71","diff_url":"https://github.com/ProboCI/probo/pull/71.diff","patch_url":"https://github.com/ProboCI/probo/pull/71.patch","issue_url":"https://api.github.com/repos/ProboCI/probo/issues/71","number":71,"state":"open","locked":false,"title":"Wait as long as needed for MySQL to start.","user":{"login":"lliss","id":903219,"avatar_url":"https://avatars.githubusercontent.com/u/903219?v=3","gravatar_id":"","url":"https://api.github.com/users/lliss","html_url":"https://github.com/lliss","followers_url":"https://api.github.com/users/lliss/followers","following_url":"https://api.github.com/users/lliss/following{/other_user}","gists_url":"https://api.github.com/users/lliss/gists{/gist_id}","starred_url":"https://api.github.com/users/lliss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lliss/subscriptions","organizations_url":"https://api.github.com/users/lliss/orgs","repos_url":"https://api.github.com/users/lliss/repos","events_url":"https://api.github.com/users/lliss/events{/privacy}","received_events_url":"https://api.github.com/users/lliss/received_events","type":"User","site_admin":false},"body":"This resloves an issue in which, under high server load, MySQL server\r\ntakes a long time to start up. In these cases, builds hand forever\r\nbecause the default behavior was to wait for a set period of time and\r\nthen begin running build steps. Often in these cases the build would\r\nfail for lack of a MySQL connection. Instead, we can use netcat and hold\r\nus in a loop until netcat is able to reach MySQL on the standard port,\r\nonly then allowing the build steps to continue.\r\n\r\n### To Test\r\n - Restart probo and trigger a build as normal.\r\n - Note that you should not see any sleep output initially.\r\n - Otherwise things should look the same as before.\r\n - If you want to do a more extensive test:\r\n  - Change the port number to an alternate port that has no service listening on it.\r\n  - Kick off a build.\r\n  - In a terminal window, enter the container of the new build\r\n  - Start the service on the specified port or create a small node.js hello world server to listen on that port (actually netcat can do that too `nc -l 127.0.0.1 [PORT]`)\r\n  - Ensure that the build continues from this point on.","created_at":"2016-05-19T15:08:13Z","updated_at":"2016-05-19T15:08:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ProboCI/probo/pulls/71/commits","review_comments_url":"https://api.github.com/repos/ProboCI/probo/pulls/71/comments","review_comment_url":"https://api.github.com/repos/ProboCI/probo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ProboCI/probo/issues/71/comments","statuses_url":"https://api.github.com/repos/ProboCI/probo/statuses/201506f8db32cce34c9bc9693ea703b7d650aafc","head":{"label":"ProboCI:feature/lol/reslove-mysql-start-issues","ref":"feature/lol/reslove-mysql-start-issues","sha":"201506f8db32cce34c9bc9693ea703b7d650aafc","user":{"login":"ProboCI","id":12071240,"avatar_url":"https://avatars.githubusercontent.com/u/12071240?v=3","gravatar_id":"","url":"https://api.github.com/users/ProboCI","html_url":"https://github.com/ProboCI","followers_url":"https://api.github.com/users/ProboCI/followers","following_url":"https://api.github.com/users/ProboCI/following{/other_user}","gists_url":"https://api.github.com/users/ProboCI/gists{/gist_id}","starred_url":"https://api.github.com/users/ProboCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProboCI/subscriptions","organizations_url":"https://api.github.com/users/ProboCI/orgs","repos_url":"https://api.github.com/users/ProboCI/repos","events_url":"https://api.github.com/users/ProboCI/events{/privacy}","received_events_url":"https://api.github.com/users/ProboCI/received_events","type":"Organization","site_admin":false},"repo":{"id":19395939,"name":"probo","full_name":"ProboCI/probo","owner":{"login":"ProboCI","id":12071240,"avatar_url":"https://avatars.githubusercontent.com/u/12071240?v=3","gravatar_id":"","url":"https://api.github.com/users/ProboCI","html_url":"https://github.com/ProboCI","followers_url":"https://api.github.com/users/ProboCI/followers","following_url":"https://api.github.com/users/ProboCI/following{/other_user}","gists_url":"https://api.github.com/users/ProboCI/gists{/gist_id}","starred_url":"https://api.github.com/users/ProboCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProboCI/subscriptions","organizations_url":"https://api.github.com/users/ProboCI/orgs","repos_url":"https://api.github.com/users/ProboCI/repos","events_url":"https://api.github.com/users/ProboCI/events{/privacy}","received_events_url":"https://api.github.com/users/ProboCI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ProboCI/probo","description":"Open source continuous integration and quality assurance.","fork":false,"url":"https://api.github.com/repos/ProboCI/probo","forks_url":"https://api.github.com/repos/ProboCI/probo/forks","keys_url":"https://api.github.com/repos/ProboCI/probo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProboCI/probo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProboCI/probo/teams","hooks_url":"https://api.github.com/repos/ProboCI/probo/hooks","issue_events_url":"https://api.github.com/repos/ProboCI/probo/issues/events{/number}","events_url":"https://api.github.com/repos/ProboCI/probo/events","assignees_url":"https://api.github.com/repos/ProboCI/probo/assignees{/user}","branches_url":"https://api.github.com/repos/ProboCI/probo/branches{/branch}","tags_url":"https://api.github.com/repos/ProboCI/probo/tags","blobs_url":"https://api.github.com/repos/ProboCI/probo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProboCI/probo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProboCI/probo/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProboCI/probo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProboCI/probo/statuses/{sha}","languages_url":"https://api.github.com/repos/ProboCI/probo/languages","stargazers_url":"https://api.github.com/repos/ProboCI/probo/stargazers","contributors_url":"https://api.github.com/repos/ProboCI/probo/contributors","subscribers_url":"https://api.github.com/repos/ProboCI/probo/subscribers","subscription_url":"https://api.github.com/repos/ProboCI/probo/subscription","commits_url":"https://api.github.com/repos/ProboCI/probo/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProboCI/probo/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProboCI/probo/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProboCI/probo/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProboCI/probo/contents/{+path}","compare_url":"https://api.github.com/repos/ProboCI/probo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProboCI/probo/merges","archive_url":"https://api.github.com/repos/ProboCI/probo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProboCI/probo/downloads","issues_url":"https://api.github.com/repos/ProboCI/probo/issues{/number}","pulls_url":"https://api.github.com/repos/ProboCI/probo/pulls{/number}","milestones_url":"https://api.github.com/repos/ProboCI/probo/milestones{/number}","notifications_url":"https://api.github.com/repos/ProboCI/probo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProboCI/probo/labels{/name}","releases_url":"https://api.github.com/repos/ProboCI/probo/releases{/id}","deployments_url":"https://api.github.com/repos/ProboCI/probo/deployments","created_at":"2014-05-03T05:10:14Z","updated_at":"2016-05-04T08:06:11Z","pushed_at":"2016-05-19T14:59:54Z","git_url":"git://github.com/ProboCI/probo.git","ssh_url":"git@github.com:ProboCI/probo.git","clone_url":"https://github.com/ProboCI/probo.git","svn_url":"https://github.com/ProboCI/probo","homepage":"","size":716,"stargazers_count":35,"watchers_count":35,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":20,"forks":10,"open_issues":20,"watchers":35,"default_branch":"master"}},"base":{"label":"ProboCI:master","ref":"master","sha":"1d00eb1b1446091a31f6f37bdbf6753c9aac8f49","user":{"login":"ProboCI","id":12071240,"avatar_url":"https://avatars.githubusercontent.com/u/12071240?v=3","gravatar_id":"","url":"https://api.github.com/users/ProboCI","html_url":"https://github.com/ProboCI","followers_url":"https://api.github.com/users/ProboCI/followers","following_url":"https://api.github.com/users/ProboCI/following{/other_user}","gists_url":"https://api.github.com/users/ProboCI/gists{/gist_id}","starred_url":"https://api.github.com/users/ProboCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProboCI/subscriptions","organizations_url":"https://api.github.com/users/ProboCI/orgs","repos_url":"https://api.github.com/users/ProboCI/repos","events_url":"https://api.github.com/users/ProboCI/events{/privacy}","received_events_url":"https://api.github.com/users/ProboCI/received_events","type":"Organization","site_admin":false},"repo":{"id":19395939,"name":"probo","full_name":"ProboCI/probo","owner":{"login":"ProboCI","id":12071240,"avatar_url":"https://avatars.githubusercontent.com/u/12071240?v=3","gravatar_id":"","url":"https://api.github.com/users/ProboCI","html_url":"https://github.com/ProboCI","followers_url":"https://api.github.com/users/ProboCI/followers","following_url":"https://api.github.com/users/ProboCI/following{/other_user}","gists_url":"https://api.github.com/users/ProboCI/gists{/gist_id}","starred_url":"https://api.github.com/users/ProboCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProboCI/subscriptions","organizations_url":"https://api.github.com/users/ProboCI/orgs","repos_url":"https://api.github.com/users/ProboCI/repos","events_url":"https://api.github.com/users/ProboCI/events{/privacy}","received_events_url":"https://api.github.com/users/ProboCI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ProboCI/probo","description":"Open source continuous integration and quality assurance.","fork":false,"url":"https://api.github.com/repos/ProboCI/probo","forks_url":"https://api.github.com/repos/ProboCI/probo/forks","keys_url":"https://api.github.com/repos/ProboCI/probo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProboCI/probo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProboCI/probo/teams","hooks_url":"https://api.github.com/repos/ProboCI/probo/hooks","issue_events_url":"https://api.github.com/repos/ProboCI/probo/issues/events{/number}","events_url":"https://api.github.com/repos/ProboCI/probo/events","assignees_url":"https://api.github.com/repos/ProboCI/probo/assignees{/user}","branches_url":"https://api.github.com/repos/ProboCI/probo/branches{/branch}","tags_url":"https://api.github.com/repos/ProboCI/probo/tags","blobs_url":"https://api.github.com/repos/ProboCI/probo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProboCI/probo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProboCI/probo/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProboCI/probo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProboCI/probo/statuses/{sha}","languages_url":"https://api.github.com/repos/ProboCI/probo/languages","stargazers_url":"https://api.github.com/repos/ProboCI/probo/stargazers","contributors_url":"https://api.github.com/repos/ProboCI/probo/contributors","subscribers_url":"https://api.github.com/repos/ProboCI/probo/subscribers","subscription_url":"https://api.github.com/repos/ProboCI/probo/subscription","commits_url":"https://api.github.com/repos/ProboCI/probo/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProboCI/probo/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProboCI/probo/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProboCI/probo/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProboCI/probo/contents/{+path}","compare_url":"https://api.github.com/repos/ProboCI/probo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProboCI/probo/merges","archive_url":"https://api.github.com/repos/ProboCI/probo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProboCI/probo/downloads","issues_url":"https://api.github.com/repos/ProboCI/probo/issues{/number}","pulls_url":"https://api.github.com/repos/ProboCI/probo/pulls{/number}","milestones_url":"https://api.github.com/repos/ProboCI/probo/milestones{/number}","notifications_url":"https://api.github.com/repos/ProboCI/probo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProboCI/probo/labels{/name}","releases_url":"https://api.github.com/repos/ProboCI/probo/releases{/id}","deployments_url":"https://api.github.com/repos/ProboCI/probo/deployments","created_at":"2014-05-03T05:10:14Z","updated_at":"2016-05-04T08:06:11Z","pushed_at":"2016-05-19T14:59:54Z","git_url":"git://github.com/ProboCI/probo.git","ssh_url":"git@github.com:ProboCI/probo.git","clone_url":"https://github.com/ProboCI/probo.git","svn_url":"https://github.com/ProboCI/probo","homepage":"","size":716,"stargazers_count":35,"watchers_count":35,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":20,"forks":10,"open_issues":20,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ProboCI/probo/pulls/71"},"html":{"href":"https://github.com/ProboCI/probo/pull/71"},"issue":{"href":"https://api.github.com/repos/ProboCI/probo/issues/71"},"comments":{"href":"https://api.github.com/repos/ProboCI/probo/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/ProboCI/probo/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/ProboCI/probo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ProboCI/probo/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/ProboCI/probo/statuses/201506f8db32cce34c9bc9693ea703b7d650aafc"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}