{"action":"created","comment":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/comments/67435648","id":67435648,"diff_hunk":"@@ -97,10 +105,43 @@ def close\n         # @param command [String] command string to execute\n         # @raise [TransportFailed] if the command does not exit successfully,\n         #   which may vary by implementation\n-        def execute(command) # rubocop:disable Lint/UnusedMethodArgument\n+        def execute(command)\n           raise ClientError, \"#{self.class}#execute must be implemented\"\n         end\n \n+        # Execute a command on the remote host and retry\n+        #\n+        # @param command [String] command string to execute\n+        # @param retryable_exit_codes [Array] Array of exit codes to retry against\n+        # @param max_retries [Fixnum] maximum number of retry attempts\n+        # @param wait_time [Fixnum] number of seconds to wait before retrying command\n+        # @raise [TransportFailed] if the command does not exit successfully,\n+        #   which may vary by implementation\n+        def execute_with_retry(command, retryable_exit_codes = [], max_retries, wait_time)\n+          max_retries = 1 if max_retries.nil?","path":"lib/kitchen/transport/base.rb","position":44,"original_position":44,"commit_id":"e4878ed251b5169dc1075bf56f0cf64b56a21fec","original_commit_id":"e4878ed251b5169dc1075bf56f0cf64b56a21fec","user":{"login":"adamleff","id":3221128,"avatar_url":"https://avatars.githubusercontent.com/u/3221128?v=3","gravatar_id":"","url":"https://api.github.com/users/adamleff","html_url":"https://github.com/adamleff","followers_url":"https://api.github.com/users/adamleff/followers","following_url":"https://api.github.com/users/adamleff/following{/other_user}","gists_url":"https://api.github.com/users/adamleff/gists{/gist_id}","starred_url":"https://api.github.com/users/adamleff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamleff/subscriptions","organizations_url":"https://api.github.com/users/adamleff/orgs","repos_url":"https://api.github.com/users/adamleff/repos","events_url":"https://api.github.com/users/adamleff/events{/privacy}","received_events_url":"https://api.github.com/users/adamleff/received_events","type":"User","site_admin":false},"body":"Should we set these defaults in the `default_config` calls instead of here?","created_at":"2016-06-16T22:29:09Z","updated_at":"2016-06-16T22:29:09Z","html_url":"https://github.com/test-kitchen/test-kitchen/pull/1055#discussion_r67435648","pull_request_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/1055","_links":{"self":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/comments/67435648"},"html":{"href":"https://github.com/test-kitchen/test-kitchen/pull/1055#discussion_r67435648"},"pull_request":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/1055"}}},"pull_request":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/1055","id":73652066,"html_url":"https://github.com/test-kitchen/test-kitchen/pull/1055","diff_url":"https://github.com/test-kitchen/test-kitchen/pull/1055.diff","patch_url":"https://github.com/test-kitchen/test-kitchen/pull/1055.patch","issue_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/1055","number":1055,"state":"open","locked":false,"title":"Retry `Kitchen::Provisioner#run_command` after allowed exit codes","user":{"login":"smurawski","id":4006985,"avatar_url":"https://avatars.githubusercontent.com/u/4006985?v=3","gravatar_id":"","url":"https://api.github.com/users/smurawski","html_url":"https://github.com/smurawski","followers_url":"https://api.github.com/users/smurawski/followers","following_url":"https://api.github.com/users/smurawski/following{/other_user}","gists_url":"https://api.github.com/users/smurawski/gists{/gist_id}","starred_url":"https://api.github.com/users/smurawski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smurawski/subscriptions","organizations_url":"https://api.github.com/users/smurawski/orgs","repos_url":"https://api.github.com/users/smurawski/repos","events_url":"https://api.github.com/users/smurawski/events{/privacy}","received_events_url":"https://api.github.com/users/smurawski/received_events","type":"User","site_admin":false},"body":"- [x] Allow user to define exit codes to retry Provision#run_command\r\n- [x] Allow user to define wait time between attempts\r\n- [x] Allow user to define exit codes to retry \r\n- [x] Allow user to define maximum number of retry attempts\r\n\r\nResolves #1016 \r\n","created_at":"2016-06-13T22:14:10Z","updated_at":"2016-06-16T22:29:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c0d9bab3660149962b58ad2dc99f2512dbc4374","assignee":{"login":"smurawski","id":4006985,"avatar_url":"https://avatars.githubusercontent.com/u/4006985?v=3","gravatar_id":"","url":"https://api.github.com/users/smurawski","html_url":"https://github.com/smurawski","followers_url":"https://api.github.com/users/smurawski/followers","following_url":"https://api.github.com/users/smurawski/following{/other_user}","gists_url":"https://api.github.com/users/smurawski/gists{/gist_id}","starred_url":"https://api.github.com/users/smurawski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smurawski/subscriptions","organizations_url":"https://api.github.com/users/smurawski/orgs","repos_url":"https://api.github.com/users/smurawski/repos","events_url":"https://api.github.com/users/smurawski/events{/privacy}","received_events_url":"https://api.github.com/users/smurawski/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/1055/commits","review_comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/1055/comments","review_comment_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/1055/comments","statuses_url":"https://api.github.com/repos/test-kitchen/test-kitchen/statuses/e4878ed251b5169dc1075bf56f0cf64b56a21fec","head":{"label":"test-kitchen:smurawski/reboot_support","ref":"smurawski/reboot_support","sha":"e4878ed251b5169dc1075bf56f0cf64b56a21fec","user":{"login":"test-kitchen","id":5924439,"avatar_url":"https://avatars.githubusercontent.com/u/5924439?v=3","gravatar_id":"","url":"https://api.github.com/users/test-kitchen","html_url":"https://github.com/test-kitchen","followers_url":"https://api.github.com/users/test-kitchen/followers","following_url":"https://api.github.com/users/test-kitchen/following{/other_user}","gists_url":"https://api.github.com/users/test-kitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/test-kitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-kitchen/subscriptions","organizations_url":"https://api.github.com/users/test-kitchen/orgs","repos_url":"https://api.github.com/users/test-kitchen/repos","events_url":"https://api.github.com/users/test-kitchen/events{/privacy}","received_events_url":"https://api.github.com/users/test-kitchen/received_events","type":"Organization","site_admin":false},"repo":{"id":4137249,"name":"test-kitchen","full_name":"test-kitchen/test-kitchen","owner":{"login":"test-kitchen","id":5924439,"avatar_url":"https://avatars.githubusercontent.com/u/5924439?v=3","gravatar_id":"","url":"https://api.github.com/users/test-kitchen","html_url":"https://github.com/test-kitchen","followers_url":"https://api.github.com/users/test-kitchen/followers","following_url":"https://api.github.com/users/test-kitchen/following{/other_user}","gists_url":"https://api.github.com/users/test-kitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/test-kitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-kitchen/subscriptions","organizations_url":"https://api.github.com/users/test-kitchen/orgs","repos_url":"https://api.github.com/users/test-kitchen/repos","events_url":"https://api.github.com/users/test-kitchen/events{/privacy}","received_events_url":"https://api.github.com/users/test-kitchen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/test-kitchen/test-kitchen","description":"Test Kitchen is an integration tool for developing and testing infrastructure code and software on isolated target platforms.","fork":false,"url":"https://api.github.com/repos/test-kitchen/test-kitchen","forks_url":"https://api.github.com/repos/test-kitchen/test-kitchen/forks","keys_url":"https://api.github.com/repos/test-kitchen/test-kitchen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/test-kitchen/test-kitchen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/test-kitchen/test-kitchen/teams","hooks_url":"https://api.github.com/repos/test-kitchen/test-kitchen/hooks","issue_events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/events{/number}","events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/events","assignees_url":"https://api.github.com/repos/test-kitchen/test-kitchen/assignees{/user}","branches_url":"https://api.github.com/repos/test-kitchen/test-kitchen/branches{/branch}","tags_url":"https://api.github.com/repos/test-kitchen/test-kitchen/tags","blobs_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/refs{/sha}","trees_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/test-kitchen/test-kitchen/statuses/{sha}","languages_url":"https://api.github.com/repos/test-kitchen/test-kitchen/languages","stargazers_url":"https://api.github.com/repos/test-kitchen/test-kitchen/stargazers","contributors_url":"https://api.github.com/repos/test-kitchen/test-kitchen/contributors","subscribers_url":"https://api.github.com/repos/test-kitchen/test-kitchen/subscribers","subscription_url":"https://api.github.com/repos/test-kitchen/test-kitchen/subscription","commits_url":"https://api.github.com/repos/test-kitchen/test-kitchen/commits{/sha}","git_commits_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/commits{/sha}","comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/comments{/number}","issue_comment_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/comments{/number}","contents_url":"https://api.github.com/repos/test-kitchen/test-kitchen/contents/{+path}","compare_url":"https://api.github.com/repos/test-kitchen/test-kitchen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/test-kitchen/test-kitchen/merges","archive_url":"https://api.github.com/repos/test-kitchen/test-kitchen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/test-kitchen/test-kitchen/downloads","issues_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues{/number}","pulls_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls{/number}","milestones_url":"https://api.github.com/repos/test-kitchen/test-kitchen/milestones{/number}","notifications_url":"https://api.github.com/repos/test-kitchen/test-kitchen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/test-kitchen/test-kitchen/labels{/name}","releases_url":"https://api.github.com/repos/test-kitchen/test-kitchen/releases{/id}","deployments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/deployments","created_at":"2012-04-25T14:14:42Z","updated_at":"2016-06-16T08:23:56Z","pushed_at":"2016-06-16T20:35:11Z","git_url":"git://github.com/test-kitchen/test-kitchen.git","ssh_url":"git@github.com:test-kitchen/test-kitchen.git","clone_url":"https://github.com/test-kitchen/test-kitchen.git","svn_url":"https://github.com/test-kitchen/test-kitchen","homepage":"http://kitchen.ci","size":4924,"stargazers_count":1040,"watchers_count":1040,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":410,"mirror_url":null,"open_issues_count":165,"forks":410,"open_issues":165,"watchers":1040,"default_branch":"master"}},"base":{"label":"test-kitchen:master","ref":"master","sha":"ffb87fb4d29f9450c95f37be424dde3620a6dee0","user":{"login":"test-kitchen","id":5924439,"avatar_url":"https://avatars.githubusercontent.com/u/5924439?v=3","gravatar_id":"","url":"https://api.github.com/users/test-kitchen","html_url":"https://github.com/test-kitchen","followers_url":"https://api.github.com/users/test-kitchen/followers","following_url":"https://api.github.com/users/test-kitchen/following{/other_user}","gists_url":"https://api.github.com/users/test-kitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/test-kitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-kitchen/subscriptions","organizations_url":"https://api.github.com/users/test-kitchen/orgs","repos_url":"https://api.github.com/users/test-kitchen/repos","events_url":"https://api.github.com/users/test-kitchen/events{/privacy}","received_events_url":"https://api.github.com/users/test-kitchen/received_events","type":"Organization","site_admin":false},"repo":{"id":4137249,"name":"test-kitchen","full_name":"test-kitchen/test-kitchen","owner":{"login":"test-kitchen","id":5924439,"avatar_url":"https://avatars.githubusercontent.com/u/5924439?v=3","gravatar_id":"","url":"https://api.github.com/users/test-kitchen","html_url":"https://github.com/test-kitchen","followers_url":"https://api.github.com/users/test-kitchen/followers","following_url":"https://api.github.com/users/test-kitchen/following{/other_user}","gists_url":"https://api.github.com/users/test-kitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/test-kitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-kitchen/subscriptions","organizations_url":"https://api.github.com/users/test-kitchen/orgs","repos_url":"https://api.github.com/users/test-kitchen/repos","events_url":"https://api.github.com/users/test-kitchen/events{/privacy}","received_events_url":"https://api.github.com/users/test-kitchen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/test-kitchen/test-kitchen","description":"Test Kitchen is an integration tool for developing and testing infrastructure code and software on isolated target platforms.","fork":false,"url":"https://api.github.com/repos/test-kitchen/test-kitchen","forks_url":"https://api.github.com/repos/test-kitchen/test-kitchen/forks","keys_url":"https://api.github.com/repos/test-kitchen/test-kitchen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/test-kitchen/test-kitchen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/test-kitchen/test-kitchen/teams","hooks_url":"https://api.github.com/repos/test-kitchen/test-kitchen/hooks","issue_events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/events{/number}","events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/events","assignees_url":"https://api.github.com/repos/test-kitchen/test-kitchen/assignees{/user}","branches_url":"https://api.github.com/repos/test-kitchen/test-kitchen/branches{/branch}","tags_url":"https://api.github.com/repos/test-kitchen/test-kitchen/tags","blobs_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/refs{/sha}","trees_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/test-kitchen/test-kitchen/statuses/{sha}","languages_url":"https://api.github.com/repos/test-kitchen/test-kitchen/languages","stargazers_url":"https://api.github.com/repos/test-kitchen/test-kitchen/stargazers","contributors_url":"https://api.github.com/repos/test-kitchen/test-kitchen/contributors","subscribers_url":"https://api.github.com/repos/test-kitchen/test-kitchen/subscribers","subscription_url":"https://api.github.com/repos/test-kitchen/test-kitchen/subscription","commits_url":"https://api.github.com/repos/test-kitchen/test-kitchen/commits{/sha}","git_commits_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/commits{/sha}","comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/comments{/number}","issue_comment_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/comments{/number}","contents_url":"https://api.github.com/repos/test-kitchen/test-kitchen/contents/{+path}","compare_url":"https://api.github.com/repos/test-kitchen/test-kitchen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/test-kitchen/test-kitchen/merges","archive_url":"https://api.github.com/repos/test-kitchen/test-kitchen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/test-kitchen/test-kitchen/downloads","issues_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues{/number}","pulls_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls{/number}","milestones_url":"https://api.github.com/repos/test-kitchen/test-kitchen/milestones{/number}","notifications_url":"https://api.github.com/repos/test-kitchen/test-kitchen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/test-kitchen/test-kitchen/labels{/name}","releases_url":"https://api.github.com/repos/test-kitchen/test-kitchen/releases{/id}","deployments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/deployments","created_at":"2012-04-25T14:14:42Z","updated_at":"2016-06-16T08:23:56Z","pushed_at":"2016-06-16T20:35:11Z","git_url":"git://github.com/test-kitchen/test-kitchen.git","ssh_url":"git@github.com:test-kitchen/test-kitchen.git","clone_url":"https://github.com/test-kitchen/test-kitchen.git","svn_url":"https://github.com/test-kitchen/test-kitchen","homepage":"http://kitchen.ci","size":4924,"stargazers_count":1040,"watchers_count":1040,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":410,"mirror_url":null,"open_issues_count":165,"forks":410,"open_issues":165,"watchers":1040,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/1055"},"html":{"href":"https://github.com/test-kitchen/test-kitchen/pull/1055"},"issue":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/1055"},"comments":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/1055/comments"},"review_comments":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/1055/comments"},"review_comment":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/1055/commits"},"statuses":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/statuses/e4878ed251b5169dc1075bf56f0cf64b56a21fec"}}}}
{"actor":{"display_login":"adamleff"}}