{"action":"created","comment":{"url":"https://api.github.com/repos/docker/swarm/pulls/comments/49762454","id":49762454,"diff_hunk":"@@ -64,3 +64,19 @@ function teardown() {\n \t[ \"$status\" -ne 0 ]\n \t[[ \"${output}\" == *'resources constraints (-c and/or -m) are required by mesos'* ]]\n }\n+\n+@test \"mesos - docker run with long pull\" {\n+\tstart_docker 2\n+\tstart_mesos\n+\tswarm_manage --cluster-driver mesos-experimental --cluster-opt mesos.tasktimeout=1s 127.0.0.1:$MESOS_MASTER_PORT\n+\n+\t# make sure no container exist\n+\trun docker_swarm ps -qa\n+\t[ \"${#lines[@]}\" -eq 0 ]\n+\n+\t# run\n+\tdocker_swarm run -m 20m -d --name test_container busybox sleep 100\n+\n+\t# verify, container is running\n+\t[ -n $(docker_swarm ps -q --filter=name=test_container --filter=status=running) ]\n+}","path":"test/integration/mesos/api/run.bats","position":19,"original_position":19,"commit_id":"9c37c585900b0a4dcc2aa5c9a4bf3518e1b5eddc","original_commit_id":"9c37c585900b0a4dcc2aa5c9a4bf3518e1b5eddc","user":{"login":"abronan","id":1655859,"avatar_url":"https://avatars.githubusercontent.com/u/1655859?v=3","gravatar_id":"","url":"https://api.github.com/users/abronan","html_url":"https://github.com/abronan","followers_url":"https://api.github.com/users/abronan/followers","following_url":"https://api.github.com/users/abronan/following{/other_user}","gists_url":"https://api.github.com/users/abronan/gists{/gist_id}","starred_url":"https://api.github.com/users/abronan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abronan/subscriptions","organizations_url":"https://api.github.com/users/abronan/orgs","repos_url":"https://api.github.com/users/abronan/repos","events_url":"https://api.github.com/users/abronan/events{/privacy}","received_events_url":"https://api.github.com/users/abronan/received_events","type":"User","site_admin":false},"body":"no newline :ghost: ","created_at":"2016-01-14T18:16:41Z","updated_at":"2016-01-14T18:16:41Z","html_url":"https://github.com/docker/swarm/pull/1637#discussion_r49762454","pull_request_url":"https://api.github.com/repos/docker/swarm/pulls/1637","_links":{"self":{"href":"https://api.github.com/repos/docker/swarm/pulls/comments/49762454"},"html":{"href":"https://github.com/docker/swarm/pull/1637#discussion_r49762454"},"pull_request":{"href":"https://api.github.com/repos/docker/swarm/pulls/1637"}}},"pull_request":{"url":"https://api.github.com/repos/docker/swarm/pulls/1637","id":56014312,"html_url":"https://github.com/docker/swarm/pull/1637","diff_url":"https://github.com/docker/swarm/pull/1637.diff","patch_url":"https://github.com/docker/swarm/pull/1637.patch","issue_url":"https://api.github.com/repos/docker/swarm/issues/1637","number":1637,"state":"open","locked":false,"title":"Launch bad timeout","user":{"login":"jimenez","id":1709242,"avatar_url":"https://avatars.githubusercontent.com/u/1709242?v=3","gravatar_id":"","url":"https://api.github.com/users/jimenez","html_url":"https://github.com/jimenez","followers_url":"https://api.github.com/users/jimenez/followers","following_url":"https://api.github.com/users/jimenez/following{/other_user}","gists_url":"https://api.github.com/users/jimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/jimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimenez/subscriptions","organizations_url":"https://api.github.com/users/jimenez/orgs","repos_url":"https://api.github.com/users/jimenez/repos","events_url":"https://api.github.com/users/jimenez/events{/privacy}","received_events_url":"https://api.github.com/users/jimenez/received_events","type":"User","site_admin":false},"body":"Adding suicide logic for tasks so as to prevent false timeout for tasks having a long image pull\r\ndepends on #1635 ","created_at":"2016-01-14T10:07:10Z","updated_at":"2016-01-14T18:16:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ffe2ebbc4edcc572d256a562c0dc1c7bddf84d4c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/swarm/pulls/1637/commits","review_comments_url":"https://api.github.com/repos/docker/swarm/pulls/1637/comments","review_comment_url":"https://api.github.com/repos/docker/swarm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/swarm/issues/1637/comments","statuses_url":"https://api.github.com/repos/docker/swarm/statuses/9c37c585900b0a4dcc2aa5c9a4bf3518e1b5eddc","head":{"label":"jimenez:launch_bad_timeout","ref":"launch_bad_timeout","sha":"9c37c585900b0a4dcc2aa5c9a4bf3518e1b5eddc","user":{"login":"jimenez","id":1709242,"avatar_url":"https://avatars.githubusercontent.com/u/1709242?v=3","gravatar_id":"","url":"https://api.github.com/users/jimenez","html_url":"https://github.com/jimenez","followers_url":"https://api.github.com/users/jimenez/followers","following_url":"https://api.github.com/users/jimenez/following{/other_user}","gists_url":"https://api.github.com/users/jimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/jimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimenez/subscriptions","organizations_url":"https://api.github.com/users/jimenez/orgs","repos_url":"https://api.github.com/users/jimenez/repos","events_url":"https://api.github.com/users/jimenez/events{/privacy}","received_events_url":"https://api.github.com/users/jimenez/received_events","type":"User","site_admin":false},"repo":{"id":36032109,"name":"swarm","full_name":"jimenez/swarm","owner":{"login":"jimenez","id":1709242,"avatar_url":"https://avatars.githubusercontent.com/u/1709242?v=3","gravatar_id":"","url":"https://api.github.com/users/jimenez","html_url":"https://github.com/jimenez","followers_url":"https://api.github.com/users/jimenez/followers","following_url":"https://api.github.com/users/jimenez/following{/other_user}","gists_url":"https://api.github.com/users/jimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/jimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimenez/subscriptions","organizations_url":"https://api.github.com/users/jimenez/orgs","repos_url":"https://api.github.com/users/jimenez/repos","events_url":"https://api.github.com/users/jimenez/events{/privacy}","received_events_url":"https://api.github.com/users/jimenez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jimenez/swarm","description":"Swarm: a Docker-native clustering system","fork":true,"url":"https://api.github.com/repos/jimenez/swarm","forks_url":"https://api.github.com/repos/jimenez/swarm/forks","keys_url":"https://api.github.com/repos/jimenez/swarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jimenez/swarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jimenez/swarm/teams","hooks_url":"https://api.github.com/repos/jimenez/swarm/hooks","issue_events_url":"https://api.github.com/repos/jimenez/swarm/issues/events{/number}","events_url":"https://api.github.com/repos/jimenez/swarm/events","assignees_url":"https://api.github.com/repos/jimenez/swarm/assignees{/user}","branches_url":"https://api.github.com/repos/jimenez/swarm/branches{/branch}","tags_url":"https://api.github.com/repos/jimenez/swarm/tags","blobs_url":"https://api.github.com/repos/jimenez/swarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jimenez/swarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jimenez/swarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/jimenez/swarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jimenez/swarm/statuses/{sha}","languages_url":"https://api.github.com/repos/jimenez/swarm/languages","stargazers_url":"https://api.github.com/repos/jimenez/swarm/stargazers","contributors_url":"https://api.github.com/repos/jimenez/swarm/contributors","subscribers_url":"https://api.github.com/repos/jimenez/swarm/subscribers","subscription_url":"https://api.github.com/repos/jimenez/swarm/subscription","commits_url":"https://api.github.com/repos/jimenez/swarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/jimenez/swarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/jimenez/swarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/jimenez/swarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/jimenez/swarm/contents/{+path}","compare_url":"https://api.github.com/repos/jimenez/swarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jimenez/swarm/merges","archive_url":"https://api.github.com/repos/jimenez/swarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jimenez/swarm/downloads","issues_url":"https://api.github.com/repos/jimenez/swarm/issues{/number}","pulls_url":"https://api.github.com/repos/jimenez/swarm/pulls{/number}","milestones_url":"https://api.github.com/repos/jimenez/swarm/milestones{/number}","notifications_url":"https://api.github.com/repos/jimenez/swarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jimenez/swarm/labels{/name}","releases_url":"https://api.github.com/repos/jimenez/swarm/releases{/id}","created_at":"2015-05-21T19:07:02Z","updated_at":"2015-05-21T19:07:02Z","pushed_at":"2016-01-14T10:02:44Z","git_url":"git://github.com/jimenez/swarm.git","ssh_url":"git@github.com:jimenez/swarm.git","clone_url":"https://github.com/jimenez/swarm.git","svn_url":"https://github.com/jimenez/swarm","homepage":"","size":8017,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"71edffc0195ff97e43d8b5a4b9eb85525bf3ce29","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":19360616,"name":"swarm","full_name":"docker/swarm","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/swarm","description":"Swarm: a Docker-native clustering system","fork":false,"url":"https://api.github.com/repos/docker/swarm","forks_url":"https://api.github.com/repos/docker/swarm/forks","keys_url":"https://api.github.com/repos/docker/swarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/swarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/swarm/teams","hooks_url":"https://api.github.com/repos/docker/swarm/hooks","issue_events_url":"https://api.github.com/repos/docker/swarm/issues/events{/number}","events_url":"https://api.github.com/repos/docker/swarm/events","assignees_url":"https://api.github.com/repos/docker/swarm/assignees{/user}","branches_url":"https://api.github.com/repos/docker/swarm/branches{/branch}","tags_url":"https://api.github.com/repos/docker/swarm/tags","blobs_url":"https://api.github.com/repos/docker/swarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/swarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/swarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/swarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/swarm/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/swarm/languages","stargazers_url":"https://api.github.com/repos/docker/swarm/stargazers","contributors_url":"https://api.github.com/repos/docker/swarm/contributors","subscribers_url":"https://api.github.com/repos/docker/swarm/subscribers","subscription_url":"https://api.github.com/repos/docker/swarm/subscription","commits_url":"https://api.github.com/repos/docker/swarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/swarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/swarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/swarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/swarm/contents/{+path}","compare_url":"https://api.github.com/repos/docker/swarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/swarm/merges","archive_url":"https://api.github.com/repos/docker/swarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/swarm/downloads","issues_url":"https://api.github.com/repos/docker/swarm/issues{/number}","pulls_url":"https://api.github.com/repos/docker/swarm/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/swarm/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/swarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/swarm/labels{/name}","releases_url":"https://api.github.com/repos/docker/swarm/releases{/id}","created_at":"2014-05-01T23:15:17Z","updated_at":"2016-01-14T16:58:35Z","pushed_at":"2016-01-14T14:52:21Z","git_url":"git://github.com/docker/swarm.git","ssh_url":"git@github.com:docker/swarm.git","clone_url":"https://github.com/docker/swarm.git","svn_url":"https://github.com/docker/swarm","homepage":"","size":45376,"stargazers_count":3338,"watchers_count":3338,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":545,"mirror_url":null,"open_issues_count":177,"forks":545,"open_issues":177,"watchers":3338,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/swarm/pulls/1637"},"html":{"href":"https://github.com/docker/swarm/pull/1637"},"issue":{"href":"https://api.github.com/repos/docker/swarm/issues/1637"},"comments":{"href":"https://api.github.com/repos/docker/swarm/issues/1637/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/swarm/pulls/1637/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/swarm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/swarm/pulls/1637/commits"},"statuses":{"href":"https://api.github.com/repos/docker/swarm/statuses/9c37c585900b0a4dcc2aa5c9a4bf3518e1b5eddc"}}}}