{"action":"created","issue":{"url":"https://api.github.com/repos/deis/deis/issues/4401","labels_url":"https://api.github.com/repos/deis/deis/issues/4401/labels{/name}","comments_url":"https://api.github.com/repos/deis/deis/issues/4401/comments","events_url":"https://api.github.com/repos/deis/deis/issues/4401/events","html_url":"https://github.com/deis/deis/pull/4401","id":104710566,"number":4401,"title":"Builder: avoid race on repositories clean up","user":{"login":"rochacon","id":321351,"avatar_url":"https://avatars.githubusercontent.com/u/321351?v=3","gravatar_id":"","url":"https://api.github.com/users/rochacon","html_url":"https://github.com/rochacon","followers_url":"https://api.github.com/users/rochacon/followers","following_url":"https://api.github.com/users/rochacon/following{/other_user}","gists_url":"https://api.github.com/users/rochacon/gists{/gist_id}","starred_url":"https://api.github.com/users/rochacon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rochacon/subscriptions","organizations_url":"https://api.github.com/users/rochacon/orgs","repos_url":"https://api.github.com/users/rochacon/repos","events_url":"https://api.github.com/users/rochacon/events{/privacy}","received_events_url":"https://api.github.com/users/rochacon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-03T14:40:24Z","updated_at":"2015-09-03T17:57:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/deis/deis/pulls/4401","html_url":"https://github.com/deis/deis/pull/4401","diff_url":"https://github.com/deis/deis/pull/4401.diff","patch_url":"https://github.com/deis/deis/pull/4401.patch"},"body":"Repositories are cleaned up periodically by the `check-repos` script, resulting in a race condition with the final cleanup of the `builder` script.\r\n\r\nThis change avoids this race by leaving the cleanup work to `check-repos` script only.\r\n\r\nFixes #4393"},"comment":{"url":"https://api.github.com/repos/deis/deis/issues/comments/137528313","html_url":"https://github.com/deis/deis/pull/4401#issuecomment-137528313","issue_url":"https://api.github.com/repos/deis/deis/issues/4401","id":137528313,"user":{"login":"bacongobbler","id":1360539,"avatar_url":"https://avatars.githubusercontent.com/u/1360539?v=3","gravatar_id":"","url":"https://api.github.com/users/bacongobbler","html_url":"https://github.com/bacongobbler","followers_url":"https://api.github.com/users/bacongobbler/followers","following_url":"https://api.github.com/users/bacongobbler/following{/other_user}","gists_url":"https://api.github.com/users/bacongobbler/gists{/gist_id}","starred_url":"https://api.github.com/users/bacongobbler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacongobbler/subscriptions","organizations_url":"https://api.github.com/users/bacongobbler/orgs","repos_url":"https://api.github.com/users/bacongobbler/repos","events_url":"https://api.github.com/users/bacongobbler/events{/privacy}","received_events_url":"https://api.github.com/users/bacongobbler/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T17:57:17Z","updated_at":"2015-09-03T17:57:17Z","body":"This smells like a bug with check-repos. The root problem is that check-repos should only remove the git repository on a `deis destroy`. `git gc` is intended to resolve #987 for long-standing applications, so I'd inspect why the repository is being randomly removed."}}