)]}'
{"bowling_ball/tests/glance_api.py":[{"author":{"_account_id":12807,"name":"Steve Lewis (stevelle)","email":"stevelle@gmail.com","username":"stevelle"},"change_message_id":"40e4ee4e0223f5a71749fa768c01cfcf8c249caf","unresolved":false,"context_lines":[{"line_number":56,"context_line":"def get_session():"},{"line_number":57,"context_line":"    auth_url \u003d os.environ[\u0027OS_AUTH_URL\u0027]"},{"line_number":58,"context_line":"    password \u003d os.environ[\u0027OS_PASSWORD\u0027]"},{"line_number":59,"context_line":"    auth \u003d v3.Password(auth_url\u003dauth_url, username\u003d\"admin\","},{"line_number":60,"context_line":"                       password\u003dpassword, project_name\u003d\"admin\","},{"line_number":61,"context_line":"                       user_domain_id\u003d\"default\","},{"line_number":62,"context_line":"                       project_domain_id\u003d\"default\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a1ff146_3a0062aa","line":59,"updated":"2017-03-16 18:39:52.000000000","message":"would recommend not testing as admin if at all possible.","commit_id":"540abf5dc9d6523cacbabd5fb067faa8e690ce97"},{"author":{"_account_id":12807,"name":"Steve Lewis (stevelle)","email":"stevelle@gmail.com","username":"stevelle"},"change_message_id":"40e4ee4e0223f5a71749fa768c01cfcf8c249caf","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                                              interface\u003d\u0027admin\u0027)[0]"},{"line_number":80,"context_line":"    # The glance client wants the URL, not the keystone object"},{"line_number":81,"context_line":"    return glance_endpoint.url"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"disconnected \u003d None"},{"line_number":84,"context_line":"try:"},{"line_number":85,"context_line":"    while True:"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a1ced50_ddb5eb7e","line":82,"updated":"2017-03-16 18:39:52.000000000","message":"future: from here down is a standard loop that will want to be repeated with different operations?","commit_id":"540abf5dc9d6523cacbabd5fb067faa8e690ce97"},{"author":{"_account_id":12807,"name":"Steve Lewis (stevelle)","email":"stevelle@gmail.com","username":"stevelle"},"change_message_id":"40e4ee4e0223f5a71749fa768c01cfcf8c249caf","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":"disconnected \u003d None"},{"line_number":84,"context_line":"try:"},{"line_number":85,"context_line":"    while True:"},{"line_number":86,"context_line":"        try:"},{"line_number":87,"context_line":"            time.sleep(1)"},{"line_number":88,"context_line":"            start_time \u003d datetime.datetime.now()"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a1ced50_3dffdf35","line":85,"updated":"2017-03-16 18:39:52.000000000","message":"future: really like to recommend a time box or number of rounds option here, to make this usable in automation.","commit_id":"540abf5dc9d6523cacbabd5fb067faa8e690ce97"},{"author":{"_account_id":12807,"name":"Steve Lewis (stevelle)","email":"stevelle@gmail.com","username":"stevelle"},"change_message_id":"40e4ee4e0223f5a71749fa768c01cfcf8c249caf","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            glance \u003d Client(version\u003d\u00272\u0027, endpoint\u003dendpoint, session\u003dsess)"},{"line_number":94,"context_line":"            # The image.list method returns a generator, but we just care about"},{"line_number":95,"context_line":"            # response time"},{"line_number":96,"context_line":"            image_list \u003d glance.images.list()"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"            end_time \u003d datetime.datetime.now()"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a1ced50_3d86ffb9","line":96,"updated":"2017-03-16 18:39:52.000000000","message":"future: some multiprocessing or threading on the operation would be killer.","commit_id":"540abf5dc9d6523cacbabd5fb067faa8e690ce97"},{"author":{"_account_id":12807,"name":"Steve Lewis (stevelle)","email":"stevelle@gmail.com","username":"stevelle"},"change_message_id":"656990b96deca9d1b0d962a74166715d3f35d865","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"ffe62b97_1a4771be","updated":"2017-03-29 16:40:00.000000000","message":"rename to image_list or something","commit_id":"ede1af70b974e80e0d5a5ace3e672698192e11e7"}],"bowling_ball/tests/glance_upload.py":[{"author":{"_account_id":12807,"name":"Steve Lewis (stevelle)","email":"stevelle@gmail.com","username":"stevelle"},"change_message_id":"656990b96deca9d1b0d962a74166715d3f35d865","unresolved":false,"context_lines":[{"line_number":97,"context_line":"            time.sleep(1)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"            # make a bogus file to give to glance."},{"line_number":100,"context_line":"            temp_file \u003d tempfile.TemporaryFile()"},{"line_number":101,"context_line":"            temp_file.write(os.urandom(1024 * 1024))"},{"line_number":102,"context_line":"            temp_file.seek(0)"},{"line_number":103,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"ffe62b97_1a91b1f1","line":100,"updated":"2017-03-29 16:40:00.000000000","message":"Maybe use a contact manager for the temp file so it gets cleaned up explicitly?","commit_id":"ede1af70b974e80e0d5a5ace3e672698192e11e7"},{"author":{"_account_id":12807,"name":"Steve Lewis (stevelle)","email":"stevelle@gmail.com","username":"stevelle"},"change_message_id":"656990b96deca9d1b0d962a74166715d3f35d865","unresolved":false,"context_lines":[{"line_number":112,"context_line":"            except exc.HTTPInternalServerError:"},{"line_number":113,"context_line":"                logger.error(\"Failed to upload\")"},{"line_number":114,"context_line":"            finally:"},{"line_number":115,"context_line":"                glance.images.delete(image.id)"},{"line_number":116,"context_line":"                temp_file.close()"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"            end_time \u003d datetime.datetime.now()"}],"source_content_type":"text/x-python","patch_set":5,"id":"ffe62b97_1ae3f1a5","line":115,"updated":"2017-03-29 16:40:00.000000000","message":"there is a bit of a race between line 107 and 110 due to keyboard interrupt, but probably not a big deal","commit_id":"ede1af70b974e80e0d5a5ace3e672698192e11e7"}]}
