)]}'
{"etc/neutron/rootwrap.d/l3.filters":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c7e124974466186f76aaf550e5153ddbcf637fc6","unresolved":false,"context_lines":[{"line_number":47,"context_line":"# l3 agent to delete floatingip\u0027s conntrack state"},{"line_number":48,"context_line":"conntrack: CommandFilter, conntrack, root"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"kill_ip_monitor: KillFilter, root, /usr/sbin/ip, -9"}],"source_content_type":"application/octet-stream","patch_set":11,"id":"da86d52c_d48ab8bd","line":50,"updated":"2015-02-13 00:48:13.000000000","message":"doesn\u0027t this deserve a comment to set it apart from the one above? Or perhaps it can go to line 31?","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"699bf39b759a584be144c0073fbcd639b73f5e00","unresolved":false,"context_lines":[{"line_number":47,"context_line":"# l3 agent to delete floatingip\u0027s conntrack state"},{"line_number":48,"context_line":"conntrack: CommandFilter, conntrack, root"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"kill_ip_monitor: KillFilter, root, /usr/sbin/ip, -9"}],"source_content_type":"application/octet-stream","patch_set":11,"id":"da86d52c_eeacb38a","line":50,"in_reply_to":"da86d52c_d48ab8bd","updated":"2015-02-17 22:27:27.000000000","message":"Done","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"}],"neutron/agent/linux/async_process.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"adbc470d656db877e63ee3664d7281568e9f7c76","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    def _read_stderr(self):"},{"line_number":187,"context_line":"        return self._read(self._process.stderr, self._stderr_lines)"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"    def _iter_queue(self, queue, block):"},{"line_number":190,"context_line":"        while True:"},{"line_number":191,"context_line":"            try:"},{"line_number":192,"context_line":"                yield queue.get(block)"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa81d914_7be720e5","line":189,"updated":"2015-01-28 01:04:17.000000000","message":"I think block should default to False here to avoid having to change any tests that depend on the old signature.","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"67355784770d85e8a427e1574c965b7bbb62879b","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    def _read_stderr(self):"},{"line_number":187,"context_line":"        return self._read(self._process.stderr, self._stderr_lines)"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"    def _iter_queue(self, queue, block):"},{"line_number":190,"context_line":"        while True:"},{"line_number":191,"context_line":"            try:"},{"line_number":192,"context_line":"                yield queue.get(block)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_4331f158","line":189,"in_reply_to":"fa81d914_7be720e5","updated":"2015-02-11 18:45:28.000000000","message":"I don\u0027t think avoiding to change tests is a good enough reason. The only users of this (internal) method already have block as an optional parameter. Not sending block to this method is an error, so I don\u0027t think it should be optional.","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c7a5898b5c13a7a4d32ca737db3d2e2d5efbf0f4","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"        return utils.pid_invoked_with_cmdline("},{"line_number":88,"context_line":"            self.pid, self.cmd_without_namespace)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    def start(self, blocking\u003dFalse):"},{"line_number":91,"context_line":"        \"\"\"Launch a process and monitor it asynchronously."},{"line_number":92,"context_line":""}],"source_content_type":"text/x-python","patch_set":29,"id":"ba7be1f8_957b43bd","line":89,"updated":"2015-03-03 00:18:45.000000000","message":"note:  Here \"blocking\" is used as the argument name.","commit_id":"0b52c5258393d4b6884e8a3243b7bce34b914f7e"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c7a5898b5c13a7a4d32ca737db3d2e2d5efbf0f4","unresolved":false,"context_lines":[{"line_number":216,"context_line":"    def _read_stderr(self):"},{"line_number":217,"context_line":"        return self._read(self._process.stderr, self._stderr_lines)"},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"    def _iter_queue(self, queue, block):"},{"line_number":220,"context_line":"        while True:"},{"line_number":221,"context_line":"            try:"},{"line_number":222,"context_line":"                yield queue.get(block)"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba7be1f8_95dfc3d5","line":219,"updated":"2015-03-03 00:18:45.000000000","message":"nit:  This method using \"block\" as the argument name.  The arguments have a similar meaning (i.e. don\u0027t return until the job is done).","commit_id":"0b52c5258393d4b6884e8a3243b7bce34b914f7e"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c7a5898b5c13a7a4d32ca737db3d2e2d5efbf0f4","unresolved":false,"context_lines":[{"line_number":219,"context_line":"    def _iter_queue(self, queue, block):"},{"line_number":220,"context_line":"        while True:"},{"line_number":221,"context_line":"            try:"},{"line_number":222,"context_line":"                yield queue.get(block)"},{"line_number":223,"context_line":"            except eventlet.queue.Empty:"},{"line_number":224,"context_line":"                break"},{"line_number":225,"context_line":""}],"source_content_type":"text/x-python","patch_set":29,"id":"ba7be1f8_18230aa8","line":222,"updated":"2015-03-03 00:18:45.000000000","message":"note:  I\u0027m guessing you used \"block\" here because the queue.get argument is called block.","commit_id":"0b52c5258393d4b6884e8a3243b7bce34b914f7e"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"ce45f75f82a1372fcc8e8a880a864337e8cdf7eb","unresolved":false,"context_lines":[{"line_number":219,"context_line":"    def _iter_queue(self, queue, block):"},{"line_number":220,"context_line":"        while True:"},{"line_number":221,"context_line":"            try:"},{"line_number":222,"context_line":"                yield queue.get(block)"},{"line_number":223,"context_line":"            except eventlet.queue.Empty:"},{"line_number":224,"context_line":"                break"},{"line_number":225,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_e039eaa4","line":222,"updated":"2015-03-03 21:32:49.000000000","message":"(No action required) I think that naming optional arguments aids readability.","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3bc4786c36cd3ca4118cd550311bc79fa456cac0","unresolved":false,"context_lines":[{"line_number":219,"context_line":"    def _iter_queue(self, queue, block):"},{"line_number":220,"context_line":"        while True:"},{"line_number":221,"context_line":"            try:"},{"line_number":222,"context_line":"                yield queue.get(block)"},{"line_number":223,"context_line":"            except eventlet.queue.Empty:"},{"line_number":224,"context_line":"                break"},{"line_number":225,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_c77f95a9","line":222,"in_reply_to":"ba7be1f8_e039eaa4","updated":"2015-03-04 01:05:20.000000000","message":"Done","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"}],"neutron/agent/linux/ip_monitor.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"26f5c2ff57cdb7dbff6cbb00e873fcee6f305a3d","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    def __str__(self):"},{"line_number":30,"context_line":"        return self.line"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    def parse(self, line):"},{"line_number":33,"context_line":"        # TODO(amuller): Error handling"},{"line_number":34,"context_line":"        line \u003d line.split()"},{"line_number":35,"context_line":"        first_word \u003d line[0]"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a930d6b_99d07aca","line":32,"updated":"2015-01-27 18:09:43.000000000","message":"This will be handled in the next PS.","commit_id":"c1f28cd8ed0542f77f304005234f2ae85ffc1c8c"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"adbc470d656db877e63ee3664d7281568e9f7c76","unresolved":false,"context_lines":[{"line_number":44,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":45,"context_line":"                LOG.error(_LE(\u0027Unable to parse route %s\u0027), line)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        if first_word \u003d\u003d \u0027Deleted\u0027:"},{"line_number":48,"context_line":"            added \u003d False"},{"line_number":49,"context_line":"            route \u003d route[1:]"},{"line_number":50,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa81d914_5b633cb1","line":47,"updated":"2015-01-28 01:04:17.000000000","message":"(No action required) Consider the following:\n\nadded \u003d (first_word !\u003d \u0027Deleted\u0027)\nif added:\n  route \u003d route[1:]","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"67355784770d85e8a427e1574c965b7bbb62879b","unresolved":false,"context_lines":[{"line_number":44,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":45,"context_line":"                LOG.error(_LE(\u0027Unable to parse route %s\u0027), line)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        if first_word \u003d\u003d \u0027Deleted\u0027:"},{"line_number":48,"context_line":"            added \u003d False"},{"line_number":49,"context_line":"            route \u003d route[1:]"},{"line_number":50,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_e31ca5c4","line":47,"in_reply_to":"fa81d914_5b633cb1","updated":"2015-02-11 18:45:28.000000000","message":"Done","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"adbc470d656db877e63ee3664d7281568e9f7c76","unresolved":false,"context_lines":[{"line_number":62,"context_line":""},{"line_number":63,"context_line":"class IPMonitor(async_process.AsyncProcess):"},{"line_number":64,"context_line":"    \"\"\"Wrapper over `ip monitor address`."},{"line_number":65,"context_line":"    To monitor and react indefinitely:"},{"line_number":66,"context_line":"        m \u003d IPMonitor(namespace\u003d\u0027tmp\u0027, root_helper\u003d\u0027sudo\u0027)"},{"line_number":67,"context_line":"        m.start()"},{"line_number":68,"context_line":"        for iterable in m:"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa81d914_fb0230b3","line":65,"updated":"2015-01-28 01:04:17.000000000","message":"(No action required) A space after the first line would aid in readability.","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"67355784770d85e8a427e1574c965b7bbb62879b","unresolved":false,"context_lines":[{"line_number":62,"context_line":""},{"line_number":63,"context_line":"class IPMonitor(async_process.AsyncProcess):"},{"line_number":64,"context_line":"    \"\"\"Wrapper over `ip monitor address`."},{"line_number":65,"context_line":"    To monitor and react indefinitely:"},{"line_number":66,"context_line":"        m \u003d IPMonitor(namespace\u003d\u0027tmp\u0027, root_helper\u003d\u0027sudo\u0027)"},{"line_number":67,"context_line":"        m.start()"},{"line_number":68,"context_line":"        for iterable in m:"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_6357d55a","line":65,"in_reply_to":"fa81d914_fb0230b3","updated":"2015-02-11 18:45:28.000000000","message":"Done","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"adbc470d656db877e63ee3664d7281568e9f7c76","unresolved":false,"context_lines":[{"line_number":74,"context_line":"                 namespace\u003dNone,"},{"line_number":75,"context_line":"                 root_helper\u003dNone,"},{"line_number":76,"context_line":"                 respawn_interval\u003dNone):"},{"line_number":77,"context_line":"        cmd \u003d [\u0027ip\u0027, \u0027-o\u0027, \u0027monitor\u0027, \u0027address\u0027]"},{"line_number":78,"context_line":"        if namespace:"},{"line_number":79,"context_line":"            cmd \u003d [\u0027ip\u0027, \u0027netns\u0027, \u0027exec\u0027, namespace] + cmd"},{"line_number":80,"context_line":"        super(IPMonitor, self).__init__(cmd,"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa81d914_1b1704ef","line":77,"updated":"2015-01-28 01:04:17.000000000","message":"Is there a reason you\u0027re not modifying or at least using iplib in this method?","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"67355784770d85e8a427e1574c965b7bbb62879b","unresolved":false,"context_lines":[{"line_number":74,"context_line":"                 namespace\u003dNone,"},{"line_number":75,"context_line":"                 root_helper\u003dNone,"},{"line_number":76,"context_line":"                 respawn_interval\u003dNone):"},{"line_number":77,"context_line":"        cmd \u003d [\u0027ip\u0027, \u0027-o\u0027, \u0027monitor\u0027, \u0027address\u0027]"},{"line_number":78,"context_line":"        if namespace:"},{"line_number":79,"context_line":"            cmd \u003d [\u0027ip\u0027, \u0027netns\u0027, \u0027exec\u0027, namespace] + cmd"},{"line_number":80,"context_line":"        super(IPMonitor, self).__init__(cmd,"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_c36b20b7","line":77,"in_reply_to":"fa81d914_1b1704ef","updated":"2015-02-11 18:45:28.000000000","message":"I just need to pass \u0027cmd\u0027 into super.__init__ here. The actual invocation of the command is in super._spawn. ip_lib has a place it composes an optional namespace into a command, and that\u0027s in IpNetnsCommand.execute where it also invokes the command. I suppose I could extract the optional namespace composition out of that method and use it there and here, but, it\u0027s difficult as IpNetnsCommand.execute also invokes SubProcessBase.enforce_root_helper in case a namespace exists.","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"931403dc3a801105df33900259c6fe213aababd9","unresolved":false,"context_lines":[{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    def start(self):"},{"line_number":91,"context_line":"        super(IPMonitor, self).start()"},{"line_number":92,"context_line":"        while not self.is_active:"},{"line_number":93,"context_line":"            eventlet.sleep(0.1)"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def stop(self):"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_e7ea75ab","line":92,"updated":"2015-02-14 14:10:11.000000000","message":"It is better to avoid an infinite loop. For some reason the command may exit immediately. If so, I think is_active never becomes True. Isn\u0027t it better to have another error handling loop as commented below?","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"699bf39b759a584be144c0073fbcd639b73f5e00","unresolved":false,"context_lines":[{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    def start(self):"},{"line_number":91,"context_line":"        super(IPMonitor, self).start()"},{"line_number":92,"context_line":"        while not self.is_active:"},{"line_number":93,"context_line":"            eventlet.sleep(0.1)"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def stop(self):"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_2e26cb16","line":92,"in_reply_to":"da86d52c_e7ea75ab","updated":"2015-02-17 22:27:27.000000000","message":"Done","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c7e124974466186f76aaf550e5153ddbcf637fc6","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def stop(self):"},{"line_number":96,"context_line":"        super(IPMonitor, self).stop()"},{"line_number":97,"context_line":"        while self.is_active:"},{"line_number":98,"context_line":"            eventlet.sleep(0.1)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_d478f8c5","line":97,"updated":"2015-02-13 00:48:13.000000000","message":"is there any chance that the process might never die? Would it be safe to add another escape route?","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"699bf39b759a584be144c0073fbcd639b73f5e00","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def stop(self):"},{"line_number":96,"context_line":"        super(IPMonitor, self).stop()"},{"line_number":97,"context_line":"        while self.is_active:"},{"line_number":98,"context_line":"            eventlet.sleep(0.1)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_8e1977d3","line":97,"in_reply_to":"da86d52c_c7e571dd","updated":"2015-02-17 22:27:27.000000000","message":"Done","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"931403dc3a801105df33900259c6fe213aababd9","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def stop(self):"},{"line_number":96,"context_line":"        super(IPMonitor, self).stop()"},{"line_number":97,"context_line":"        while self.is_active:"},{"line_number":98,"context_line":"            eventlet.sleep(0.1)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_c7e571dd","line":97,"in_reply_to":"da86d52c_d478f8c5","updated":"2015-02-14 14:10:11.000000000","message":"Agree with Armando.","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"699bf39b759a584be144c0073fbcd639b73f5e00","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def stop(self):"},{"line_number":96,"context_line":"        super(IPMonitor, self).stop()"},{"line_number":97,"context_line":"        while self.is_active:"},{"line_number":98,"context_line":"            eventlet.sleep(0.1)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_4e23ff04","line":97,"in_reply_to":"da86d52c_d478f8c5","updated":"2015-02-17 22:27:27.000000000","message":"Done","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"c0fd906383e97913d282dd429f2421acb57577b4","unresolved":false,"context_lines":[{"line_number":40,"context_line":"            first_word \u003d route[0]"},{"line_number":41,"context_line":"        except IndexError:"},{"line_number":42,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":43,"context_line":"                LOG.error(_LE(\u0027Unable to parse route %s\u0027), line)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        added \u003d (first_word !\u003d \u0027Deleted\u0027)"},{"line_number":46,"context_line":"        if not added:"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba7be1f8_b4e19e00","line":43,"updated":"2015-02-27 07:19:39.000000000","message":"It is better to wrap %s with quotes: Unable to parse route \"%s\".\nI think \"line\" will be empty in most case of IndexError.","commit_id":"7074238a60c47171cc738ab1b2cdfcd19c7fb55d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"37d4d24003a579d8e386e6126533bbe75fa572a2","unresolved":false,"context_lines":[{"line_number":40,"context_line":"            first_word \u003d route[0]"},{"line_number":41,"context_line":"        except IndexError:"},{"line_number":42,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":43,"context_line":"                LOG.error(_LE(\u0027Unable to parse route %s\u0027), line)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        added \u003d (first_word !\u003d \u0027Deleted\u0027)"},{"line_number":46,"context_line":"        if not added:"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba7be1f8_5ff14894","line":43,"in_reply_to":"ba7be1f8_b4e19e00","updated":"2015-02-27 15:27:43.000000000","message":"Done","commit_id":"7074238a60c47171cc738ab1b2cdfcd19c7fb55d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"c0fd906383e97913d282dd429f2421acb57577b4","unresolved":false,"context_lines":[{"line_number":51,"context_line":"            cidr \u003d route[3]"},{"line_number":52,"context_line":"        except IndexError:"},{"line_number":53,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":54,"context_line":"                LOG.error(_LE(\u0027Unable to parse route %s\u0027), line)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        return cls(line, added, interface, cidr)"},{"line_number":57,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"ba7be1f8_f4c9567a","line":54,"range":{"start_line":54,"start_character":53,"end_line":54,"end_character":54},"updated":"2015-02-27 07:19:39.000000000","message":"Could you wrap %s with quotes?","commit_id":"7074238a60c47171cc738ab1b2cdfcd19c7fb55d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"37d4d24003a579d8e386e6126533bbe75fa572a2","unresolved":false,"context_lines":[{"line_number":51,"context_line":"            cidr \u003d route[3]"},{"line_number":52,"context_line":"        except IndexError:"},{"line_number":53,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":54,"context_line":"                LOG.error(_LE(\u0027Unable to parse route %s\u0027), line)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        return cls(line, added, interface, cidr)"},{"line_number":57,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"ba7be1f8_3ff49486","line":54,"in_reply_to":"ba7be1f8_f4c9567a","updated":"2015-02-27 15:27:43.000000000","message":"Done","commit_id":"7074238a60c47171cc738ab1b2cdfcd19c7fb55d"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c7a5898b5c13a7a4d32ca737db3d2e2d5efbf0f4","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                                        namespace\u003dnamespace)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def __iter__(self):"},{"line_number":79,"context_line":"        return self.iter_stdout(block\u003dTrue)"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    def start(self):"},{"line_number":82,"context_line":"        super(IPMonitor, self).start(blocking\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba7be1f8_d5f4db5c","line":79,"updated":"2015-03-03 00:18:45.000000000","message":"note:  Here it is \"block\"","commit_id":"0b52c5258393d4b6884e8a3243b7bce34b914f7e"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c7a5898b5c13a7a4d32ca737db3d2e2d5efbf0f4","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        return self.iter_stdout(block\u003dTrue)"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    def start(self):"},{"line_number":82,"context_line":"        super(IPMonitor, self).start(blocking\u003dTrue)"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    def stop(self):"},{"line_number":85,"context_line":"        super(IPMonitor, self).stop(blocking\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba7be1f8_b5bda76a","line":82,"updated":"2015-03-03 00:18:45.000000000","message":"note:  Here it is blocking.  See other file.","commit_id":"0b52c5258393d4b6884e8a3243b7bce34b914f7e"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"ce45f75f82a1372fcc8e8a880a864337e8cdf7eb","unresolved":false,"context_lines":[{"line_number":42,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":43,"context_line":"                LOG.error(_LE(\u0027Unable to parse route \"%s\"\u0027), line)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        added \u003d (first_word !\u003d \u0027Deleted\u0027)"},{"line_number":46,"context_line":"        if not added:"},{"line_number":47,"context_line":"            route \u003d route[1:]"},{"line_number":48,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_e0280a88","line":45,"updated":"2015-03-03 21:32:49.000000000","message":"(No action required) Lots of negation suggests that looking deletion might make more sense e.g.\n\ndeleted \u003d (first_word \u003d\u003d \u0027Deleted\u0027)\nif deleted:\n  ...\n\nreturn cls(line, not deleted,...)","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3bc4786c36cd3ca4118cd550311bc79fa456cac0","unresolved":false,"context_lines":[{"line_number":42,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":43,"context_line":"                LOG.error(_LE(\u0027Unable to parse route \"%s\"\u0027), line)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        added \u003d (first_word !\u003d \u0027Deleted\u0027)"},{"line_number":46,"context_line":"        if not added:"},{"line_number":47,"context_line":"            route \u003d route[1:]"},{"line_number":48,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_27f4f159","line":45,"in_reply_to":"ba7be1f8_e0280a88","updated":"2015-03-04 01:05:20.000000000","message":"Hmm, I don\u0027t know, I don\u0027t think the \u0027not deleted\u0027 at the end is \u0027worth it\u0027. I don\u0027t think it matters much either way...","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"}],"neutron/tests/functional/agent/linux/test_ip_monitor.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"adbc470d656db877e63ee3664d7281568e9f7c76","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from neutron.tests.functional.agent.linux import test_ip_lib"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class IPMonitorTestCase(test_ip_lib.IpLibTestFramework):"},{"line_number":21,"context_line":"    def test_ip_monitor(self):"},{"line_number":22,"context_line":"        attr \u003d self.generate_device_details()"},{"line_number":23,"context_line":"        device \u003d self.manage_device(attr)"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa81d914_fb4870ce","line":20,"updated":"2015-01-28 01:04:17.000000000","message":"Please prefix test classes with \u0027Test\u0027 to indicate that extension is not safe due to the potential for duplicated test execution, e.g. TestIpMonitor","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"adbc470d656db877e63ee3664d7281568e9f7c76","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        m \u003d ip_monitor.IPMonitor(attr.namespace, self.root_helper)"},{"line_number":26,"context_line":"        m.start()"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"        # TODO(amuller): This doesn\u0027t actually work! The ip monitor continues"},{"line_number":29,"context_line":"        # to exist after a *successful* test run."},{"line_number":30,"context_line":"        self.addCleanup(m.stop)"},{"line_number":31,"context_line":"        cidr \u003d \u0027169.254.128.1/24\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa81d914_7bb480f2","line":28,"updated":"2015-01-28 01:04:17.000000000","message":"Please ensure that the result of stop() is validated either in this test or an additional one.","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"67355784770d85e8a427e1574c965b7bbb62879b","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        m \u003d ip_monitor.IPMonitor(attr.namespace, self.root_helper)"},{"line_number":26,"context_line":"        m.start()"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"        # TODO(amuller): This doesn\u0027t actually work! The ip monitor continues"},{"line_number":29,"context_line":"        # to exist after a *successful* test run."},{"line_number":30,"context_line":"        self.addCleanup(m.stop)"},{"line_number":31,"context_line":"        cidr \u003d \u0027169.254.128.1/24\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_a3a1ccf9","line":28,"in_reply_to":"fa81d914_7bb480f2","updated":"2015-02-11 18:45:28.000000000","message":"Done. I was missing the dreaded kill filter.","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c7e124974466186f76aaf550e5153ddbcf637fc6","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        try:"},{"line_number":31,"context_line":"            self.monitor.stop()"},{"line_number":32,"context_line":"        except async_process.AsyncProcessException:"},{"line_number":33,"context_line":"            pass"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def test_ip_monitor_lifecycle(self):"},{"line_number":36,"context_line":"        self.assertFalse(self.monitor.is_active)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_347a34ba","line":33,"updated":"2015-02-13 00:48:13.000000000","message":"?","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"699bf39b759a584be144c0073fbcd639b73f5e00","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        try:"},{"line_number":31,"context_line":"            self.monitor.stop()"},{"line_number":32,"context_line":"        except async_process.AsyncProcessException:"},{"line_number":33,"context_line":"            pass"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def test_ip_monitor_lifecycle(self):"},{"line_number":36,"context_line":"        self.assertFalse(self.monitor.is_active)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_ee9bd314","line":33,"in_reply_to":"da86d52c_347a34ba","updated":"2015-02-17 22:27:27.000000000","message":"It\u0027s a test only helper. It means that we try to stop the monitor, and if it\u0027s already stopped it will raise an AsyncProcessException and we\u0027re fine with that.","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"931403dc3a801105df33900259c6fe213aababd9","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                           expected_cidr\u003dcidr,"},{"line_number":49,"context_line":"                           expected_added\u003dTrue,"},{"line_number":50,"context_line":"                           event\u003dip_monitor.IPMonitorEvent.from_text("},{"line_number":51,"context_line":"                               next(self.monitor.iter_stdout(block\u003dTrue))))"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        self.device.addr.delete(4, cidr)"},{"line_number":54,"context_line":"        self._assert_event(expected_name\u003dself.device.name,"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_47d98121","line":51,"updated":"2015-02-14 14:10:11.000000000","message":"It seems better we have some timeout. What happens if the monitor never returns forever for some reason?","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"699bf39b759a584be144c0073fbcd639b73f5e00","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                           expected_cidr\u003dcidr,"},{"line_number":49,"context_line":"                           expected_added\u003dTrue,"},{"line_number":50,"context_line":"                           event\u003dip_monitor.IPMonitorEvent.from_text("},{"line_number":51,"context_line":"                               next(self.monitor.iter_stdout(block\u003dTrue))))"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        self.device.addr.delete(4, cidr)"},{"line_number":54,"context_line":"        self._assert_event(expected_name\u003dself.device.name,"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_4e6a1f1b","line":51,"in_reply_to":"da86d52c_47d98121","updated":"2015-02-17 22:27:27.000000000","message":"Then the test will timeout and fail. I think that\u0027s OK.","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"ce45f75f82a1372fcc8e8a880a864337e8cdf7eb","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        self.monitor \u003d ip_monitor.IPMonitor(attr.namespace)"},{"line_number":27,"context_line":"        self.addCleanup(self._safe_stop_monitor)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def _safe_stop_monitor(self):"},{"line_number":30,"context_line":"        try:"},{"line_number":31,"context_line":"            self.monitor.stop()"},{"line_number":32,"context_line":"        except async_process.AsyncProcessException:"}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_40b2b6e5","line":29,"updated":"2015-03-03 21:32:49.000000000","message":"(No action required) I\u0027m getting a deja-vu, maybe it makes sense to add optional parameter ignore_failure\u003dFalse to stop()?","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3bc4786c36cd3ca4118cd550311bc79fa456cac0","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        self.monitor \u003d ip_monitor.IPMonitor(attr.namespace)"},{"line_number":27,"context_line":"        self.addCleanup(self._safe_stop_monitor)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def _safe_stop_monitor(self):"},{"line_number":30,"context_line":"        try:"},{"line_number":31,"context_line":"            self.monitor.stop()"},{"line_number":32,"context_line":"        except async_process.AsyncProcessException:"}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_e7f57951","line":29,"in_reply_to":"ba7be1f8_40b2b6e5","updated":"2015-03-04 01:05:20.000000000","message":"I don\u0027t think the non-test code needs that functionality so I\u0027d rather write it twice in the test code.","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"ce45f75f82a1372fcc8e8a880a864337e8cdf7eb","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        except async_process.AsyncProcessException:"},{"line_number":33,"context_line":"            pass"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def test_ip_monitor_lifecycle(self):"},{"line_number":36,"context_line":"        self.assertFalse(self.monitor.is_active())"},{"line_number":37,"context_line":"        self.monitor.start()"},{"line_number":38,"context_line":"        self.assertTrue(self.monitor.is_active())"}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_a018d21e","line":35,"updated":"2015-03-03 21:32:49.000000000","message":"This test doesn\u0027t appear to validate anything that isn\u0027t already validated either implicitly or via the async_process lifecycle test.  Consider removing.","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3bc4786c36cd3ca4118cd550311bc79fa456cac0","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        except async_process.AsyncProcessException:"},{"line_number":33,"context_line":"            pass"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def test_ip_monitor_lifecycle(self):"},{"line_number":36,"context_line":"        self.assertFalse(self.monitor.is_active())"},{"line_number":37,"context_line":"        self.monitor.start()"},{"line_number":38,"context_line":"        self.assertTrue(self.monitor.is_active())"}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_ea162048","line":35,"in_reply_to":"ba7be1f8_a018d21e","updated":"2015-03-04 01:05:20.000000000","message":"The test below might fail during _safe_stop_monitor on cleanUp and the test would still pass. stop isn\u0027t validated in the AsyncProcess tests because here we\u0027re trying to kill an ip monitor specifically and this test catches rootwrap issues. This test also validates is_active which isn\u0027t validated in the test below. I maybe squash these two tests? But I don\u0027t know it\u0027s just more intuitive when they\u0027re split. I don\u0027t have a strong opinion about this.","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"ce45f75f82a1372fcc8e8a880a864337e8cdf7eb","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        cidr \u003d \u0027169.254.128.1/24\u0027"},{"line_number":46,"context_line":"        self.device.addr.add(4, cidr, \u0027169.254.128.255\u0027)"},{"line_number":47,"context_line":"        self._assert_event(expected_name\u003dself.device.name,"},{"line_number":48,"context_line":"                           expected_cidr\u003dcidr,"},{"line_number":49,"context_line":"                           expected_added\u003dTrue,"},{"line_number":50,"context_line":"                           event\u003dip_monitor.IPMonitorEvent.from_text("}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_8092ee54","line":47,"updated":"2015-03-03 21:32:49.000000000","message":"(No action required) Interesting to see naming of non-optional arguments here but not naming optional arguments elsewhere in this patch.  Consistency is suggested.","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3bc4786c36cd3ca4118cd550311bc79fa456cac0","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        cidr \u003d \u0027169.254.128.1/24\u0027"},{"line_number":46,"context_line":"        self.device.addr.add(4, cidr, \u0027169.254.128.255\u0027)"},{"line_number":47,"context_line":"        self._assert_event(expected_name\u003dself.device.name,"},{"line_number":48,"context_line":"                           expected_cidr\u003dcidr,"},{"line_number":49,"context_line":"                           expected_added\u003dTrue,"},{"line_number":50,"context_line":"                           event\u003dip_monitor.IPMonitorEvent.from_text("}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_6746e97c","line":47,"in_reply_to":"ba7be1f8_8092ee54","updated":"2015-03-04 01:05:20.000000000","message":"Done. I think.","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"}],"neutron/tests/unit/agent/linux/test_async_process.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"c0fd906383e97913d282dd429f2421acb57577b4","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def test__iter_queue_returns_empty_list_for_empty_queue(self):"},{"line_number":131,"context_line":"        result \u003d list(self.proc._iter_queue(eventlet.queue.LightQueue(),"},{"line_number":132,"context_line":"                                            False))"},{"line_number":133,"context_line":"        self.assertEqual(result, [])"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def test__iter_queue_returns_queued_data(self):"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba7be1f8_940bba7c","line":132,"updated":"2015-02-27 07:19:39.000000000","message":"Do we need to cover _iter_queue with blocking\u003dTrue in unit tests, or can we cover it with functional tests?\nI think it is not easy to test blocking\u003dTrue in UT.","commit_id":"7074238a60c47171cc738ab1b2cdfcd19c7fb55d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"37d4d24003a579d8e386e6126533bbe75fa572a2","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def test__iter_queue_returns_empty_list_for_empty_queue(self):"},{"line_number":131,"context_line":"        result \u003d list(self.proc._iter_queue(eventlet.queue.LightQueue(),"},{"line_number":132,"context_line":"                                            False))"},{"line_number":133,"context_line":"        self.assertEqual(result, [])"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def test__iter_queue_returns_queued_data(self):"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba7be1f8_9f7820fa","line":132,"in_reply_to":"ba7be1f8_940bba7c","updated":"2015-02-27 15:27:43.000000000","message":"It\u0027s covered by functional tests in this patch (test_ip_monitor).","commit_id":"7074238a60c47171cc738ab1b2cdfcd19c7fb55d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"231f9af760d6f6c5ec41c84c3f2c9bdf397ed1dc","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def test__iter_queue_returns_empty_list_for_empty_queue(self):"},{"line_number":131,"context_line":"        result \u003d list(self.proc._iter_queue(eventlet.queue.LightQueue(),"},{"line_number":132,"context_line":"                                            False))"},{"line_number":133,"context_line":"        self.assertEqual(result, [])"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def test__iter_queue_returns_queued_data(self):"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba7be1f8_f086a912","line":132,"in_reply_to":"ba7be1f8_9f7820fa","updated":"2015-02-27 16:16:35.000000000","message":"thanks, I confirmed it is covered by that test.","commit_id":"7074238a60c47171cc738ab1b2cdfcd19c7fb55d"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c7a5898b5c13a7a4d32ca737db3d2e2d5efbf0f4","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def test__iter_queue_returns_empty_list_for_empty_queue(self):"},{"line_number":131,"context_line":"        result \u003d list(self.proc._iter_queue(eventlet.queue.LightQueue(),"},{"line_number":132,"context_line":"                                            False))"},{"line_number":133,"context_line":"        self.assertEqual(result, [])"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def test__iter_queue_returns_queued_data(self):"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba7be1f8_d5313b5b","line":132,"updated":"2015-03-03 00:18:45.000000000","message":"nit:  This would read better as \"block\u003dFalse\" to avoid a magic constant (booleans make some of the worst magic constants).  I wonder if you should change the call to pass block\u003dblock in async_process.py.  I\u0027m not very concerned about this at all though.","commit_id":"0b52c5258393d4b6884e8a3243b7bce34b914f7e"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f67b5a52f164a218986bab3e045ba0f621b639b0","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def test__iter_queue_returns_empty_list_for_empty_queue(self):"},{"line_number":131,"context_line":"        result \u003d list(self.proc._iter_queue(eventlet.queue.LightQueue(),"},{"line_number":132,"context_line":"                                            False))"},{"line_number":133,"context_line":"        self.assertEqual(result, [])"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def test__iter_queue_returns_queued_data(self):"}],"source_content_type":"text/x-python","patch_set":29,"id":"ba7be1f8_83a11ffa","line":132,"in_reply_to":"ba7be1f8_d5313b5b","updated":"2015-03-04 00:56:02.000000000","message":"I can\u0027t change it here to block\u003dFalse because the assertions will actually fail (I tried). I don\u0027t want _iter_queue to accept block as an optional parameter because the only methods that call it accept block as an optional parameter, and not passing block to _iter_queue would be an error. If only Python had named and mandatory parameters... I\u0027d use it religiously. It\u0027s my only fond memory of Objective C :)","commit_id":"0b52c5258393d4b6884e8a3243b7bce34b914f7e"}],"neutron/tests/unit/agent/linux/test_ip_monitor.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"adbc470d656db877e63ee3664d7281568e9f7c76","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from neutron.tests import base"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class IPMonitorEventTestCase(base.BaseTestCase):"},{"line_number":21,"context_line":"    def test_parse_added_line(self):"},{"line_number":22,"context_line":"        event \u003d ip_monitor.IPMonitorEvent.from_text("},{"line_number":23,"context_line":"            \u00273: wlp3s0    inet 192.168.3.59/24 brd 192.168.3.255 scope global dynamic wlp3s0\\       valid_lft 300sec preferred_lft 300sec\u0027)  # noqa"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa81d914_dbcd6c5f","line":20,"updated":"2015-01-28 01:04:17.000000000","message":"ditto","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"67355784770d85e8a427e1574c965b7bbb62879b","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from neutron.tests import base"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class IPMonitorEventTestCase(base.BaseTestCase):"},{"line_number":21,"context_line":"    def test_parse_added_line(self):"},{"line_number":22,"context_line":"        event \u003d ip_monitor.IPMonitorEvent.from_text("},{"line_number":23,"context_line":"            \u00273: wlp3s0    inet 192.168.3.59/24 brd 192.168.3.255 scope global dynamic wlp3s0\\       valid_lft 300sec preferred_lft 300sec\u0027)  # noqa"}],"source_content_type":"text/x-python","patch_set":4,"id":"da86d52c_43e4903b","line":20,"in_reply_to":"fa81d914_dbcd6c5f","updated":"2015-02-11 18:45:28.000000000","message":"Done","commit_id":"2c2214d9a27d074333de3718d8b1afb2520858e1"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"931403dc3a801105df33900259c6fe213aababd9","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class TestIPMonitorEvent(base.BaseTestCase):"},{"line_number":21,"context_line":"    def test_parse_added_line(self):"},{"line_number":22,"context_line":"        event \u003d ip_monitor.IPMonitorEvent.from_text("},{"line_number":23,"context_line":"            \u00273: wlp3s0    inet 192.168.3.59/24 brd 192.168.3.255 scope global dynamic wlp3s0\\       valid_lft 300sec preferred_lft 300sec\u0027)  # noqa"},{"line_number":24,"context_line":"        self.assertEqual(\u0027wlp3s0\u0027, event.interface)"},{"line_number":25,"context_line":"        self.assertTrue(event.added)"},{"line_number":26,"context_line":"        self.assertEqual(\u0027192.168.3.59/24\u0027, event.cidr)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_e701956b","line":23,"updated":"2015-02-14 14:10:11.000000000","message":"Is \"# noqa\" required?\nWe can wrap lines as follows:\n\n   \u00273: wlp3s0 inet 192.168.3.59/24 brd 192.168.3.255 \u0027\n   \u0027scope global dynamic wlp3s0\u0027\n   \u0027\\      valid_lft 300sec preferred_lft 300sec\u0027","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"699bf39b759a584be144c0073fbcd639b73f5e00","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class TestIPMonitorEvent(base.BaseTestCase):"},{"line_number":21,"context_line":"    def test_parse_added_line(self):"},{"line_number":22,"context_line":"        event \u003d ip_monitor.IPMonitorEvent.from_text("},{"line_number":23,"context_line":"            \u00273: wlp3s0    inet 192.168.3.59/24 brd 192.168.3.255 scope global dynamic wlp3s0\\       valid_lft 300sec preferred_lft 300sec\u0027)  # noqa"},{"line_number":24,"context_line":"        self.assertEqual(\u0027wlp3s0\u0027, event.interface)"},{"line_number":25,"context_line":"        self.assertTrue(event.added)"},{"line_number":26,"context_line":"        self.assertEqual(\u0027192.168.3.59/24\u0027, event.cidr)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_0eeae773","line":23,"in_reply_to":"da86d52c_e701956b","updated":"2015-02-17 22:27:27.000000000","message":"Done","commit_id":"262908a5a2087313a573dbd2c82ebe1b35c6e653"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"ce45f75f82a1372fcc8e8a880a864337e8cdf7eb","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class TestIPMonitorEvent(base.BaseTestCase):"},{"line_number":21,"context_line":"    def test_parse_added_line(self):"},{"line_number":22,"context_line":"        event \u003d ip_monitor.IPMonitorEvent.from_text("},{"line_number":23,"context_line":"            \u00273: wlp3s0    inet 192.168.3.59/24 brd 192.168.3.255 \u0027"},{"line_number":24,"context_line":"            \u0027scope global dynamic wlp3s0\\       valid_lft 300sec \u0027"}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_000b5ed6","line":21,"updated":"2015-03-03 21:32:49.000000000","message":"Unit tests should always include the name of the method they are testing, e.g. test_from_text_parses_added_line","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3bc4786c36cd3ca4118cd550311bc79fa456cac0","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class TestIPMonitorEvent(base.BaseTestCase):"},{"line_number":21,"context_line":"    def test_parse_added_line(self):"},{"line_number":22,"context_line":"        event \u003d ip_monitor.IPMonitorEvent.from_text("},{"line_number":23,"context_line":"            \u00273: wlp3s0    inet 192.168.3.59/24 brd 192.168.3.255 \u0027"},{"line_number":24,"context_line":"            \u0027scope global dynamic wlp3s0\\       valid_lft 300sec \u0027"}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_4af2cc06","line":21,"in_reply_to":"ba7be1f8_000b5ed6","updated":"2015-03-04 01:05:20.000000000","message":"Hmm I\u0027m usually good about that :)","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"ce45f75f82a1372fcc8e8a880a864337e8cdf7eb","unresolved":false,"context_lines":[{"line_number":27,"context_line":"        self.assertTrue(event.added)"},{"line_number":28,"context_line":"        self.assertEqual(\u0027192.168.3.59/24\u0027, event.cidr)"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    def test_parse_deleted_line(self):"},{"line_number":31,"context_line":"        event \u003d ip_monitor.IPMonitorEvent.from_text("},{"line_number":32,"context_line":"            \u0027Deleted 1: lo    inet 127.0.0.2/8 scope host secondary lo\\\u0027\u0027"},{"line_number":33,"context_line":"            \u0027       valid_lft forever preferred_lft forever\u0027)"}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_4011d602","line":30,"updated":"2015-03-03 21:32:49.000000000","message":"ditto","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3bc4786c36cd3ca4118cd550311bc79fa456cac0","unresolved":false,"context_lines":[{"line_number":27,"context_line":"        self.assertTrue(event.added)"},{"line_number":28,"context_line":"        self.assertEqual(\u0027192.168.3.59/24\u0027, event.cidr)"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    def test_parse_deleted_line(self):"},{"line_number":31,"context_line":"        event \u003d ip_monitor.IPMonitorEvent.from_text("},{"line_number":32,"context_line":"            \u0027Deleted 1: lo    inet 127.0.0.2/8 scope host secondary lo\\\u0027\u0027"},{"line_number":33,"context_line":"            \u0027       valid_lft forever preferred_lft forever\u0027)"}],"source_content_type":"text/x-python","patch_set":30,"id":"ba7be1f8_8a9844c1","line":30,"in_reply_to":"ba7be1f8_4011d602","updated":"2015-03-04 01:05:20.000000000","message":"Done","commit_id":"8455e824edbe3803011d0e4210d63c83f6005016"}]}
