{"action":"created","comment":{"url":"https://api.github.com/repos/projectatomic/osbs-client/pulls/comments/36846719","id":36846719,"diff_hunk":"@@ -166,7 +185,19 @@ def _create_build_config_and_build(self, build_json, namespace):\n             # if it doesn't exist, then create it\n             logger.debug('build config for %s doesn\\'t exist, creating...', build_config_name)\n             self.os.create_build_config(json.dumps(build_json), namespace=namespace)\n-        return self.os.start_build(build_config_name, namespace=namespace)\n+            # under some circumstances, creating a buildConfig might instantiate it, so\n+            #  check for an already running build and return it if it exists\n+            #  see https://github.com/projectatomic/osbs-client/issues/205","path":"osbs/api.py","position":67,"original_position":67,"commit_id":"21005e1bb5bc2f77333e8456ba42f95a57f94ea7","original_commit_id":"21005e1bb5bc2f77333e8456ba42f95a57f94ea7","user":{"login":"bkabrda","id":1050061,"avatar_url":"https://avatars.githubusercontent.com/u/1050061?v=3","gravatar_id":"","url":"https://api.github.com/users/bkabrda","html_url":"https://github.com/bkabrda","followers_url":"https://api.github.com/users/bkabrda/followers","following_url":"https://api.github.com/users/bkabrda/following{/other_user}","gists_url":"https://api.github.com/users/bkabrda/gists{/gist_id}","starred_url":"https://api.github.com/users/bkabrda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkabrda/subscriptions","organizations_url":"https://api.github.com/users/bkabrda/orgs","repos_url":"https://api.github.com/users/bkabrda/repos","events_url":"https://api.github.com/users/bkabrda/events{/privacy}","received_events_url":"https://api.github.com/users/bkabrda/received_events","type":"User","site_admin":false},"body":"Be it atomic or not, I guess it'll be safer to assume that it's not in the long run... I'll create another commit that fixes this.","created_at":"2015-08-12T10:49:21Z","updated_at":"2015-08-12T10:49:21Z","html_url":"https://github.com/projectatomic/osbs-client/pull/211#discussion_r36846719","pull_request_url":"https://api.github.com/repos/projectatomic/osbs-client/pulls/211","_links":{"self":{"href":"https://api.github.com/repos/projectatomic/osbs-client/pulls/comments/36846719"},"html":{"href":"https://github.com/projectatomic/osbs-client/pull/211#discussion_r36846719"},"pull_request":{"href":"https://api.github.com/repos/projectatomic/osbs-client/pulls/211"}}},"pull_request":{"url":"https://api.github.com/repos/projectatomic/osbs-client/pulls/211","id":42215134,"html_url":"https://github.com/projectatomic/osbs-client/pull/211","diff_url":"https://github.com/projectatomic/osbs-client/pull/211.diff","patch_url":"https://github.com/projectatomic/osbs-client/pull/211.patch","issue_url":"https://api.github.com/repos/projectatomic/osbs-client/issues/211","number":211,"state":"open","locked":false,"title":"Make sure builds don't get instantiated twice. Fixes #205","user":{"login":"bkabrda","id":1050061,"avatar_url":"https://avatars.githubusercontent.com/u/1050061?v=3","gravatar_id":"","url":"https://api.github.com/users/bkabrda","html_url":"https://github.com/bkabrda","followers_url":"https://api.github.com/users/bkabrda/followers","following_url":"https://api.github.com/users/bkabrda/following{/other_user}","gists_url":"https://api.github.com/users/bkabrda/gists{/gist_id}","starred_url":"https://api.github.com/users/bkabrda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkabrda/subscriptions","organizations_url":"https://api.github.com/users/bkabrda/orgs","repos_url":"https://api.github.com/users/bkabrda/repos","events_url":"https://api.github.com/users/bkabrda/events{/privacy}","received_events_url":"https://api.github.com/users/bkabrda/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-12T08:24:52Z","updated_at":"2015-08-12T10:49:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b449f0d19d696d47d2c6fdb35fce5dadbb56fbf7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projectatomic/osbs-client/pulls/211/commits","review_comments_url":"https://api.github.com/repos/projectatomic/osbs-client/pulls/211/comments","review_comment_url":"https://api.github.com/repos/projectatomic/osbs-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectatomic/osbs-client/issues/211/comments","statuses_url":"https://api.github.com/repos/projectatomic/osbs-client/statuses/21005e1bb5bc2f77333e8456ba42f95a57f94ea7","head":{"label":"projectatomic:dont-instantiate-build-twice","ref":"dont-instantiate-build-twice","sha":"21005e1bb5bc2f77333e8456ba42f95a57f94ea7","user":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":31409916,"name":"osbs-client","full_name":"projectatomic/osbs-client","owner":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/osbs-client","description":"client for OpenShift Build Service","fork":false,"url":"https://api.github.com/repos/projectatomic/osbs-client","forks_url":"https://api.github.com/repos/projectatomic/osbs-client/forks","keys_url":"https://api.github.com/repos/projectatomic/osbs-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/osbs-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/osbs-client/teams","hooks_url":"https://api.github.com/repos/projectatomic/osbs-client/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/osbs-client/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/osbs-client/events","assignees_url":"https://api.github.com/repos/projectatomic/osbs-client/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/osbs-client/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/osbs-client/tags","blobs_url":"https://api.github.com/repos/projectatomic/osbs-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/osbs-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/osbs-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/osbs-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/osbs-client/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/osbs-client/languages","stargazers_url":"https://api.github.com/repos/projectatomic/osbs-client/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/osbs-client/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/osbs-client/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/osbs-client/subscription","commits_url":"https://api.github.com/repos/projectatomic/osbs-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/osbs-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/osbs-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/osbs-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/osbs-client/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/osbs-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/osbs-client/merges","archive_url":"https://api.github.com/repos/projectatomic/osbs-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/osbs-client/downloads","issues_url":"https://api.github.com/repos/projectatomic/osbs-client/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/osbs-client/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/osbs-client/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/osbs-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/osbs-client/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/osbs-client/releases{/id}","created_at":"2015-02-27T08:20:07Z","updated_at":"2015-07-13T13:51:06Z","pushed_at":"2015-08-12T08:24:52Z","git_url":"git://github.com/projectatomic/osbs-client.git","ssh_url":"git@github.com:projectatomic/osbs-client.git","clone_url":"https://github.com/projectatomic/osbs-client.git","svn_url":"https://github.com/projectatomic/osbs-client","homepage":null,"size":1875,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":37,"forks":7,"open_issues":37,"watchers":6,"default_branch":"master"}},"base":{"label":"projectatomic:master","ref":"master","sha":"d164fdec7d6b5a61cb15e15b653e18bd9e0552ca","user":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":31409916,"name":"osbs-client","full_name":"projectatomic/osbs-client","owner":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/osbs-client","description":"client for OpenShift Build Service","fork":false,"url":"https://api.github.com/repos/projectatomic/osbs-client","forks_url":"https://api.github.com/repos/projectatomic/osbs-client/forks","keys_url":"https://api.github.com/repos/projectatomic/osbs-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/osbs-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/osbs-client/teams","hooks_url":"https://api.github.com/repos/projectatomic/osbs-client/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/osbs-client/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/osbs-client/events","assignees_url":"https://api.github.com/repos/projectatomic/osbs-client/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/osbs-client/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/osbs-client/tags","blobs_url":"https://api.github.com/repos/projectatomic/osbs-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/osbs-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/osbs-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/osbs-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/osbs-client/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/osbs-client/languages","stargazers_url":"https://api.github.com/repos/projectatomic/osbs-client/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/osbs-client/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/osbs-client/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/osbs-client/subscription","commits_url":"https://api.github.com/repos/projectatomic/osbs-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/osbs-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/osbs-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/osbs-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/osbs-client/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/osbs-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/osbs-client/merges","archive_url":"https://api.github.com/repos/projectatomic/osbs-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/osbs-client/downloads","issues_url":"https://api.github.com/repos/projectatomic/osbs-client/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/osbs-client/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/osbs-client/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/osbs-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/osbs-client/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/osbs-client/releases{/id}","created_at":"2015-02-27T08:20:07Z","updated_at":"2015-07-13T13:51:06Z","pushed_at":"2015-08-12T08:24:52Z","git_url":"git://github.com/projectatomic/osbs-client.git","ssh_url":"git@github.com:projectatomic/osbs-client.git","clone_url":"https://github.com/projectatomic/osbs-client.git","svn_url":"https://github.com/projectatomic/osbs-client","homepage":null,"size":1875,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":37,"forks":7,"open_issues":37,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectatomic/osbs-client/pulls/211"},"html":{"href":"https://github.com/projectatomic/osbs-client/pull/211"},"issue":{"href":"https://api.github.com/repos/projectatomic/osbs-client/issues/211"},"comments":{"href":"https://api.github.com/repos/projectatomic/osbs-client/issues/211/comments"},"review_comments":{"href":"https://api.github.com/repos/projectatomic/osbs-client/pulls/211/comments"},"review_comment":{"href":"https://api.github.com/repos/projectatomic/osbs-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectatomic/osbs-client/pulls/211/commits"},"statuses":{"href":"https://api.github.com/repos/projectatomic/osbs-client/statuses/21005e1bb5bc2f77333e8456ba42f95a57f94ea7"}}}}