{"action":"created","issue":{"url":"https://api.github.com/repos/inspirehep/inspire-docker/issues/49","repository_url":"https://api.github.com/repos/inspirehep/inspire-docker","labels_url":"https://api.github.com/repos/inspirehep/inspire-docker/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/inspirehep/inspire-docker/issues/49/comments","events_url":"https://api.github.com/repos/inspirehep/inspire-docker/issues/49/events","html_url":"https://github.com/inspirehep/inspire-docker/pull/49","id":240413132,"number":49,"title":"python_base: don't fail to start on chown error","user":{"login":"david-caro","id":587148,"avatar_url":"https://avatars2.githubusercontent.com/u/587148?v=3","gravatar_id":"","url":"https://api.github.com/users/david-caro","html_url":"https://github.com/david-caro","followers_url":"https://api.github.com/users/david-caro/followers","following_url":"https://api.github.com/users/david-caro/following{/other_user}","gists_url":"https://api.github.com/users/david-caro/gists{/gist_id}","starred_url":"https://api.github.com/users/david-caro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-caro/subscriptions","organizations_url":"https://api.github.com/users/david-caro/orgs","repos_url":"https://api.github.com/users/david-caro/repos","events_url":"https://api.github.com/users/david-caro/events{/privacy}","received_events_url":"https://api.github.com/users/david-caro/received_events","type":"User","site_admin":false},"labels":[{"id":596780644,"url":"https://api.github.com/repos/inspirehep/inspire-docker/labels/Status:%20Ready%20for%20review","name":"Status: Ready for review","color":"ededed","default":false}],"state":"open","locked":false,"assignee":{"login":"david-caro","id":587148,"avatar_url":"https://avatars2.githubusercontent.com/u/587148?v=3","gravatar_id":"","url":"https://api.github.com/users/david-caro","html_url":"https://github.com/david-caro","followers_url":"https://api.github.com/users/david-caro/followers","following_url":"https://api.github.com/users/david-caro/following{/other_user}","gists_url":"https://api.github.com/users/david-caro/gists{/gist_id}","starred_url":"https://api.github.com/users/david-caro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-caro/subscriptions","organizations_url":"https://api.github.com/users/david-caro/orgs","repos_url":"https://api.github.com/users/david-caro/repos","events_url":"https://api.github.com/users/david-caro/events{/privacy}","received_events_url":"https://api.github.com/users/david-caro/received_events","type":"User","site_admin":false},"assignees":[{"login":"david-caro","id":587148,"avatar_url":"https://avatars2.githubusercontent.com/u/587148?v=3","gravatar_id":"","url":"https://api.github.com/users/david-caro","html_url":"https://github.com/david-caro","followers_url":"https://api.github.com/users/david-caro/followers","following_url":"https://api.github.com/users/david-caro/following{/other_user}","gists_url":"https://api.github.com/users/david-caro/gists{/gist_id}","starred_url":"https://api.github.com/users/david-caro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-caro/subscriptions","organizations_url":"https://api.github.com/users/david-caro/orgs","repos_url":"https://api.github.com/users/david-caro/repos","events_url":"https://api.github.com/users/david-caro/events{/privacy}","received_events_url":"https://api.github.com/users/david-caro/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-07-04T12:56:49Z","updated_at":"2017-07-04T13:53:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/inspirehep/inspire-docker/pulls/49","html_url":"https://github.com/inspirehep/inspire-docker/pull/49","diff_url":"https://github.com/inspirehep/inspire-docker/pull/49.diff","patch_url":"https://github.com/inspirehep/inspire-docker/pull/49.patch"},"body":"The containers got in a race condition sometimes where the chown tried\nto change the ownership of the '.pyc' files while they were removed by\nanother container, failing to run the docker_entrypoint script and\nfailing to start the container. Now it will ignore such errors and\njust continue running (if there were serious issues, it will fail to\nrun the tests).\n\nFixes https://github.com/inspirehep/inspire-next/issues/2385\n\nSigned-off-by: David Caro <david@dcaro.es>"},"comment":{"url":"https://api.github.com/repos/inspirehep/inspire-docker/issues/comments/312883939","html_url":"https://github.com/inspirehep/inspire-docker/pull/49#issuecomment-312883939","issue_url":"https://api.github.com/repos/inspirehep/inspire-docker/issues/49","id":312883939,"user":{"login":"david-caro","id":587148,"avatar_url":"https://avatars2.githubusercontent.com/u/587148?v=3","gravatar_id":"","url":"https://api.github.com/users/david-caro","html_url":"https://github.com/david-caro","followers_url":"https://api.github.com/users/david-caro/followers","following_url":"https://api.github.com/users/david-caro/following{/other_user}","gists_url":"https://api.github.com/users/david-caro/gists{/gist_id}","starred_url":"https://api.github.com/users/david-caro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-caro/subscriptions","organizations_url":"https://api.github.com/users/david-caro/orgs","repos_url":"https://api.github.com/users/david-caro/repos","events_url":"https://api.github.com/users/david-caro/events{/privacy}","received_events_url":"https://api.github.com/users/david-caro/received_events","type":"User","site_admin":false},"created_at":"2017-07-04T13:53:34Z","updated_at":"2017-07-04T13:53:34Z","body":"> What is || :? Additionally this ignores errors in general. Hopefully it doesn't mask other errors?\r\n\r\nIn bash (and any shell) the `:` is a command that just does not do anything, similar to `true`, so `something || :` means run `something`, and if it fails (`||`) run `:`, so the return code of the statement line is always `0`.\r\n\r\nThat will ignore all the errors of the commands followed by `|| :`, that in this case we don't really want to handle specially, as if it fails, it will fail later anyhow (there's no way that if something bad happens, it will generate a false positive). "}}
{"actor":{"display_login":"david-caro"}}