{"action":"created","issue":{"url":"https://api.github.com/repos/confluentinc/ducktape/issues/72","labels_url":"https://api.github.com/repos/confluentinc/ducktape/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/confluentinc/ducktape/issues/72/comments","events_url":"https://api.github.com/repos/confluentinc/ducktape/issues/72/events","html_url":"https://github.com/confluentinc/ducktape/issues/72","id":99272030,"number":72,"title":"ducktape fails if results/latest points to nothing","user":{"login":"granders","id":1295932,"avatar_url":"https://avatars.githubusercontent.com/u/1295932?v=3","gravatar_id":"","url":"https://api.github.com/users/granders","html_url":"https://github.com/granders","followers_url":"https://api.github.com/users/granders/followers","following_url":"https://api.github.com/users/granders/following{/other_user}","gists_url":"https://api.github.com/users/granders/gists{/gist_id}","starred_url":"https://api.github.com/users/granders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/granders/subscriptions","organizations_url":"https://api.github.com/users/granders/orgs","repos_url":"https://api.github.com/users/granders/repos","events_url":"https://api.github.com/users/granders/events{/privacy}","received_events_url":"https://api.github.com/users/granders/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-05T18:49:22Z","updated_at":"2015-08-05T20:37:31Z","closed_at":null,"body":"results/latest is a symlink\r\n\r\nIf the directory to which `results/latest` points is removed (but the link is not), the next ducktape run will fail (e.g. http://jenkins.confluent.io/job/kafka_system_tests/18/console)\r\n\r\n```\r\n    if os.path.exists(latest_test_dir):  # Problem: in this case, os.path.exists -> False\r\n        os.unlink(latest_test_dir)\r\n    os.symlink(results_dir, latest_test_dir)  # Now this fails because latest_test_dir was not unlinked\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/confluentinc/ducktape/issues/comments/128141047","html_url":"https://github.com/confluentinc/ducktape/issues/72#issuecomment-128141047","issue_url":"https://api.github.com/repos/confluentinc/ducktape/issues/72","id":128141047,"user":{"login":"granders","id":1295932,"avatar_url":"https://avatars.githubusercontent.com/u/1295932?v=3","gravatar_id":"","url":"https://api.github.com/users/granders","html_url":"https://github.com/granders","followers_url":"https://api.github.com/users/granders/followers","following_url":"https://api.github.com/users/granders/following{/other_user}","gists_url":"https://api.github.com/users/granders/gists{/gist_id}","starred_url":"https://api.github.com/users/granders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/granders/subscriptions","organizations_url":"https://api.github.com/users/granders/orgs","repos_url":"https://api.github.com/users/granders/repos","events_url":"https://api.github.com/users/granders/events{/privacy}","received_events_url":"https://api.github.com/users/granders/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T20:37:31Z","updated_at":"2015-08-05T20:37:31Z","body":"Note `os.path.islink(a_link)` even if the link target no longer exists"}}