)]}'
{"cyborg/common/utils.py":[{"author":{"_account_id":14107,"name":"zhurong","email":"aaronzhu1121@gmail.com","username":"zhurong"},"change_message_id":"4b74b872e0c9428b6a17b4c046171b8ce06eefae","unresolved":false,"context_lines":[{"line_number":339,"context_line":"                    LOG.error(\"Error during check the worker status. \""},{"line_number":340,"context_line":"                              \"Exception info: %s, result: %s, state: %s. \""},{"line_number":341,"context_line":"                              \"Reason %s\", f.exception(), f._result,"},{"line_number":342,"context_line":"                              f._state, e)"},{"line_number":343,"context_line":"                    yield f._result, f.exception(), f._state, err"},{"line_number":344,"context_line":"            finally:"},{"line_number":345,"context_line":"                # Do best to cancel remain jobs."}],"source_content_type":"text/x-python","patch_set":2,"id":"3fa7e38b_e1a6ddc0","line":342,"range":{"start_line":342,"start_character":40,"end_line":342,"end_character":41},"updated":"2019-12-23 05:48:21.000000000","message":"six.text_type(e)","commit_id":"b7c37352ffa60233192c93396d105a628db1a0d5"},{"author":{"_account_id":14107,"name":"zhurong","email":"aaronzhu1121@gmail.com","username":"zhurong"},"change_message_id":"4b74b872e0c9428b6a17b4c046171b8ce06eefae","unresolved":false,"context_lines":[{"line_number":401,"context_line":"            except Exception as e:"},{"line_number":402,"context_line":"                LOG.error(\"Error during check the worker status. Exception \""},{"line_number":403,"context_line":"                          \"info: %s, result: %s, state: %s. Reason %s\","},{"line_number":404,"context_line":"                          f.exception(), f._result, f._state, e)"},{"line_number":405,"context_line":"            finally:"},{"line_number":406,"context_line":"                if fs:"},{"line_number":407,"context_line":"                    LOG.info(\"Cancel the remained pending jobs\")"}],"source_content_type":"text/x-python","patch_set":2,"id":"3fa7e38b_c18ba11f","line":404,"range":{"start_line":404,"start_character":62,"end_line":404,"end_character":63},"updated":"2019-12-23 05:48:21.000000000","message":"six.text_type(e)","commit_id":"b7c37352ffa60233192c93396d105a628db1a0d5"},{"author":{"_account_id":14107,"name":"zhurong","email":"aaronzhu1121@gmail.com","username":"zhurong"},"change_message_id":"4b74b872e0c9428b6a17b4c046171b8ce06eefae","unresolved":false,"context_lines":[{"line_number":437,"context_line":"            try:"},{"line_number":438,"context_line":"                output \u003d method(self, *args, **kwargs)"},{"line_number":439,"context_line":"            except Exception as e:"},{"line_number":440,"context_line":"                LOG.error(msg, e)"},{"line_number":441,"context_line":"                LOG.error(traceback.format_exc())"},{"line_number":442,"context_line":"                raise"},{"line_number":443,"context_line":"            return output"}],"source_content_type":"text/x-python","patch_set":2,"id":"3fa7e38b_619aed6f","line":440,"range":{"start_line":440,"start_character":31,"end_line":440,"end_character":32},"updated":"2019-12-23 05:48:21.000000000","message":"six.text_type(e)","commit_id":"b7c37352ffa60233192c93396d105a628db1a0d5"},{"author":{"_account_id":28748,"name":"chenker","email":"chen.ke14@zte.com.cn","username":"chenke"},"change_message_id":"3ed07a67087422c4f5deaaec94de73db35b4b844","unresolved":false,"context_lines":[{"line_number":371,"context_line":"                     If timeout is not specified or None, there is no limit"},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"        return a generator which include:"},{"line_number":374,"context_line":"            exception: Return the exception raised by the workers."},{"line_number":375,"context_line":"            exception: the exception details raised from workers."},{"line_number":376,"context_line":"            result: the value returned by the job workers."},{"line_number":377,"context_line":"            state: The work state."},{"line_number":378,"context_line":"                     to the wait time."}],"source_content_type":"text/x-python","patch_set":8,"id":"3fa7e38b_1a47e67c","line":375,"range":{"start_line":374,"start_character":0,"end_line":375,"end_character":65},"updated":"2020-01-19 03:39:55.000000000","message":"repeated","commit_id":"3750590211c796bb75d3c9bada82aee215a6409d"},{"author":{"_account_id":26458,"name":"Brin Zhang","email":"zhangbailin@inspur.com","username":"zhangbailin"},"change_message_id":"5096b64da0218434571004cd35fb583f87fe949d","unresolved":false,"context_lines":[{"line_number":345,"context_line":"        timeout \u003d kwargs.get(\u0027timeout\u0027)"},{"line_number":346,"context_line":"        if timeout is not None:"},{"line_number":347,"context_line":"            end_time \u003d timeout + time.time()"},{"line_number":348,"context_line":"            LOG.info(\"job timeout set as %s\", timeout)"},{"line_number":349,"context_line":"        fs \u003d list(fs)"},{"line_number":350,"context_line":""},{"line_number":351,"context_line":"        return future_iterator()"}],"source_content_type":"text/x-python","patch_set":10,"id":"3fa7e38b_ff2aea2b","line":348,"range":{"start_line":348,"start_character":22,"end_line":348,"end_character":23},"updated":"2020-02-07 03:35:15.000000000","message":"nit: J","commit_id":"422f41cf8bb5b89de3b30ef2dcc34f0eb4759a76"},{"author":{"_account_id":24872,"name":"YumengBao","email":"yumeng_bao@yahoo.com","username":"Yumeng_Bao"},"change_message_id":"23b06db359d3bbfc212f3a0768f4c01daf58c62f","unresolved":false,"context_lines":[{"line_number":393,"context_line":"                    # Careful not to keep a reference to the popped future"},{"line_number":394,"context_line":"                    if timeout is None:"},{"line_number":395,"context_line":"                        f \u003d fs.pop()"},{"line_number":396,"context_line":"                        yield (f.exception(), f.exception(),"},{"line_number":397,"context_line":"                               f._result, f._state)"},{"line_number":398,"context_line":"                    else:"},{"line_number":399,"context_line":"                        f \u003d fs.pop()"}],"source_content_type":"text/x-python","patch_set":10,"id":"3fa7e38b_1ae7cd12","line":396,"range":{"start_line":396,"start_character":31,"end_line":396,"end_character":60},"updated":"2020-02-07 15:38:26.000000000","message":"Hi shaohe, I was wondering whether these two f.exception() represent the same exception? if not, shall we use different names?","commit_id":"422f41cf8bb5b89de3b30ef2dcc34f0eb4759a76"},{"author":{"_account_id":14131,"name":"shaohef","email":"shaohe.feng@intel.com","username":"shaohefeng"},"change_message_id":"1401f3e4d58175989dd409239ffd1ee3897f4c80","unresolved":false,"context_lines":[{"line_number":393,"context_line":"                    # Careful not to keep a reference to the popped future"},{"line_number":394,"context_line":"                    if timeout is None:"},{"line_number":395,"context_line":"                        f \u003d fs.pop()"},{"line_number":396,"context_line":"                        yield (f.exception(), f.exception(),"},{"line_number":397,"context_line":"                               f._result, f._state)"},{"line_number":398,"context_line":"                    else:"},{"line_number":399,"context_line":"                        f \u003d fs.pop()"}],"source_content_type":"text/x-python","patch_set":10,"id":"3fa7e38b_3ac71714","line":396,"range":{"start_line":396,"start_character":31,"end_line":396,"end_character":60},"in_reply_to":"3fa7e38b_1ae7cd12","updated":"2020-02-10 09:00:23.000000000","message":"\u003e Hi shaohe, I was wondering whether these two f.exception()\n \u003e represent the same exception? if not, shall we use different names?\n\nexception_info include traceback. \nlet me remove the whole, check_workers_exception.\nsince we can not use exception_info.","commit_id":"422f41cf8bb5b89de3b30ef2dcc34f0eb4759a76"}],"cyborg/objects/ext_arq.py":[{"author":{"_account_id":14107,"name":"zhurong","email":"aaronzhu1121@gmail.com","username":"zhurong"},"change_message_id":"4b74b872e0c9428b6a17b4c046171b8ce06eefae","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        except Exception as e:"},{"line_number":182,"context_line":"            LOG.error(\"Failed to allocate attach handle for ARQ %s\""},{"line_number":183,"context_line":"                      \"from deployable %s. Reason: %s\","},{"line_number":184,"context_line":"                      self.arq.uuid, deployable.uuid, e)"},{"line_number":185,"context_line":"            # TODO(Shaohe) Rollback? We have _update_placement,"},{"line_number":186,"context_line":"            # should cancel it."},{"line_number":187,"context_line":"            self.update_check_state("}],"source_content_type":"text/x-python","patch_set":2,"id":"3fa7e38b_41a011a5","line":184,"range":{"start_line":184,"start_character":54,"end_line":184,"end_character":55},"updated":"2019-12-23 05:48:21.000000000","message":"this should change to:\nsix.text_type(e)","commit_id":"b7c37352ffa60233192c93396d105a628db1a0d5"}],"cyborg/tests/unit/db/test_db_attach_handle.py":[{"author":{"_account_id":28748,"name":"chenker","email":"chen.ke14@zte.com.cn","username":"chenke"},"change_message_id":"3ed07a67087422c4f5deaaec94de73db35b4b844","unresolved":false,"context_lines":[{"line_number":35,"context_line":"                          self.dbapi.attach_handle_delete,"},{"line_number":36,"context_line":"                          self.context, random_uuid)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def test_do_allocate_attach_handle(self):"},{"line_number":39,"context_line":"        dep_id \u003d 100"},{"line_number":40,"context_line":"        self.assertRaises(exception.ResourceNotFound,"},{"line_number":41,"context_line":"                          self.dbapi._do_allocate_attach_handle,"}],"source_content_type":"text/x-python","patch_set":8,"id":"3fa7e38b_9a5af64e","line":38,"range":{"start_line":38,"start_character":7,"end_line":38,"end_character":38},"updated":"2020-01-19 03:39:55.000000000","message":"suggest the name like: test_allocate_attach_handle_not_exist","commit_id":"3750590211c796bb75d3c9bada82aee215a6409d"},{"author":{"_account_id":24872,"name":"YumengBao","email":"yumeng_bao@yahoo.com","username":"Yumeng_Bao"},"change_message_id":"23b06db359d3bbfc212f3a0768f4c01daf58c62f","unresolved":false,"context_lines":[{"line_number":35,"context_line":"                          self.dbapi.attach_handle_delete,"},{"line_number":36,"context_line":"                          self.context, random_uuid)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def test_do_allocate_attach_handle(self):"},{"line_number":39,"context_line":"        dep_id \u003d 100"},{"line_number":40,"context_line":"        self.assertRaises(exception.ResourceNotFound,"},{"line_number":41,"context_line":"                          self.dbapi._do_allocate_attach_handle,"}],"source_content_type":"text/x-python","patch_set":8,"id":"3fa7e38b_daea9575","line":38,"range":{"start_line":38,"start_character":7,"end_line":38,"end_character":38},"in_reply_to":"3fa7e38b_9a5af64e","updated":"2020-02-07 15:38:26.000000000","message":"agree","commit_id":"3750590211c796bb75d3c9bada82aee215a6409d"}]}
