)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"d89b3a4e2355ddfd35ffc0f6ea4fd3229d4bfd86","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"c9d10d09_8bb767ae","updated":"2026-11-09 21:33:46.000000000","message":"recheck failure not related to the change","commit_id":"fbc52018680316e95b381366a3c1d8a2f76a9e90"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"4aeb3584a13e6a1015625139cc3d06435c66207a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"e7f404ee_ba0e941d","updated":"2026-11-17 13:06:15.000000000","message":"Going to implement things and re-run some tests","commit_id":"58da54f64f95560c269c59e5e9763c528909cbe0"}],"ironic/common/redfish/resource.py":[{"author":{"_account_id":23851,"name":"Riccardo Pittau","email":"elfosardo@gmail.com","username":"elfosardo"},"change_message_id":"8d06f72973b16fb3214a4d033707debd08b4b695","unresolved":true,"context_lines":[{"line_number":307,"context_line":"            drives \u003d await drives_collection.get_all()"},{"line_number":308,"context_line":""},{"line_number":309,"context_line":"        \"\"\""},{"line_number":310,"context_line":"        members \u003d self.field(name, default\u003d[])"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"        paths \u003d []"},{"line_number":313,"context_line":"        for member in members:"}],"source_content_type":"text/x-python","patch_set":2,"id":"33bd1e9f_369f77b1","line":310,"updated":"2026-11-16 13:54:17.000000000","message":"I think this does not support pagination, meaning that not all members will be collected if they\u0027re on a different page.\nEither we document that, or we follow the next link in the Members data","commit_id":"58da54f64f95560c269c59e5e9763c528909cbe0"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"358924b39b5c1a434b2eca1112ae343b215fbf5c","unresolved":true,"context_lines":[{"line_number":307,"context_line":"            drives \u003d await drives_collection.get_all()"},{"line_number":308,"context_line":""},{"line_number":309,"context_line":"        \"\"\""},{"line_number":310,"context_line":"        members \u003d self.field(name, default\u003d[])"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"        paths \u003d []"},{"line_number":313,"context_line":"        for member in members:"}],"source_content_type":"text/x-python","patch_set":2,"id":"e9130e59_6402f11d","line":310,"in_reply_to":"33bd1e9f_369f77b1","updated":"2026-11-17 00:47:04.000000000","message":"If I\u0027m not mistaken we also don\u0027t handle this case in sushy .-., so this would be matching  what we already do there...happy to document or update, let\u0027s see if others have thoughts on this.","commit_id":"58da54f64f95560c269c59e5e9763c528909cbe0"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"4aeb3584a13e6a1015625139cc3d06435c66207a","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            drives \u003d await drives_collection.get_all()"},{"line_number":308,"context_line":""},{"line_number":309,"context_line":"        \"\"\""},{"line_number":310,"context_line":"        members \u003d self.field(name, default\u003d[])"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"        paths \u003d []"},{"line_number":313,"context_line":"        for member in members:"}],"source_content_type":"text/x-python","patch_set":2,"id":"a3522740_f11f7aa9","line":310,"in_reply_to":"5df1b674_94856126","updated":"2026-11-17 13:06:15.000000000","message":"Acknowledged","commit_id":"58da54f64f95560c269c59e5e9763c528909cbe0"},{"author":{"_account_id":23851,"name":"Riccardo Pittau","email":"elfosardo@gmail.com","username":"elfosardo"},"change_message_id":"032fa53ad8db6217c55f4cea61f513f0f2d7ede3","unresolved":true,"context_lines":[{"line_number":307,"context_line":"            drives \u003d await drives_collection.get_all()"},{"line_number":308,"context_line":""},{"line_number":309,"context_line":"        \"\"\""},{"line_number":310,"context_line":"        members \u003d self.field(name, default\u003d[])"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"        paths \u003d []"},{"line_number":313,"context_line":"        for member in members:"}],"source_content_type":"text/x-python","patch_set":2,"id":"5df1b674_94856126","line":310,"in_reply_to":"e9130e59_6402f11d","updated":"2026-11-17 12:47:48.000000000","message":"if we don\u0027t support that in sushy, we should probably implement it\nfor the time being, documenting it works","commit_id":"58da54f64f95560c269c59e5e9763c528909cbe0"},{"author":{"_account_id":23851,"name":"Riccardo Pittau","email":"elfosardo@gmail.com","username":"elfosardo"},"change_message_id":"2cc732d388000df2ea986b0e7dfd332ed0a0b6d2","unresolved":true,"context_lines":[{"line_number":172,"context_line":"        if not target:"},{"line_number":173,"context_line":"            raise ValueError(f\"Action \u0027{name}\u0027 has no target URL\")"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"        LOG.debug(\u0027Executing action %(action)s on %(path)s with payload \u0027"},{"line_number":176,"context_line":"                  \u0027%(payload)s\u0027,"},{"line_number":177,"context_line":"                  {\u0027action\u0027: name, \u0027path\u0027: self._path, \u0027payload\u0027: payload})"},{"line_number":178,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"7551a7d2_a12f2fb0","line":175,"updated":"2026-11-19 08:29:19.000000000","message":"are we passing redfish logs unsanitized here?","commit_id":"ea0555b6e9a26f2a64d3e3915893e898446c56e6"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"7019f454531a379480eccc6030977b8baa3d2664","unresolved":false,"context_lines":[{"line_number":172,"context_line":"        if not target:"},{"line_number":173,"context_line":"            raise ValueError(f\"Action \u0027{name}\u0027 has no target URL\")"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"        LOG.debug(\u0027Executing action %(action)s on %(path)s with payload \u0027"},{"line_number":176,"context_line":"                  \u0027%(payload)s\u0027,"},{"line_number":177,"context_line":"                  {\u0027action\u0027: name, \u0027path\u0027: self._path, \u0027payload\u0027: payload})"},{"line_number":178,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"6616b29f_f8e0d2c6","line":175,"in_reply_to":"7551a7d2_a12f2fb0","updated":"2026-11-19 13:09:15.000000000","message":"Done","commit_id":"ea0555b6e9a26f2a64d3e3915893e898446c56e6"},{"author":{"_account_id":23851,"name":"Riccardo Pittau","email":"elfosardo@gmail.com","username":"elfosardo"},"change_message_id":"2cc732d388000df2ea986b0e7dfd332ed0a0b6d2","unresolved":true,"context_lines":[{"line_number":193,"context_line":"        # Use provided ETag or fall back to cached one"},{"line_number":194,"context_line":"        etag_to_use \u003d etag or self._etag"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"        LOG.debug(\u0027Patching resource at %(path)s with payload %(payload)s\u0027,"},{"line_number":197,"context_line":"                  {\u0027path\u0027: self._path, \u0027payload\u0027: payload})"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"        response \u003d await self._connector.patch("}],"source_content_type":"text/x-python","patch_set":3,"id":"e1795111_b28844f3","line":196,"updated":"2026-11-19 08:29:19.000000000","message":"and here","commit_id":"ea0555b6e9a26f2a64d3e3915893e898446c56e6"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"7019f454531a379480eccc6030977b8baa3d2664","unresolved":false,"context_lines":[{"line_number":193,"context_line":"        # Use provided ETag or fall back to cached one"},{"line_number":194,"context_line":"        etag_to_use \u003d etag or self._etag"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"        LOG.debug(\u0027Patching resource at %(path)s with payload %(payload)s\u0027,"},{"line_number":197,"context_line":"                  {\u0027path\u0027: self._path, \u0027payload\u0027: payload})"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"        response \u003d await self._connector.patch("}],"source_content_type":"text/x-python","patch_set":3,"id":"3a6089cc_cd1d4988","line":196,"in_reply_to":"e1795111_b28844f3","updated":"2026-11-19 13:09:15.000000000","message":"Done","commit_id":"ea0555b6e9a26f2a64d3e3915893e898446c56e6"},{"author":{"_account_id":4571,"name":"Steve Baker","email":"sbaker@redhat.com","username":"steve-stevebaker"},"change_message_id":"fb87e13e7c96349345cd542520d89e1e6e5b90bf","unresolved":true,"context_lines":[{"line_number":67,"context_line":"                         call refresh() to fetch it."},{"line_number":68,"context_line":"        \"\"\""},{"line_number":69,"context_line":"        self._connector \u003d connector"},{"line_number":70,"context_line":"        self._path \u003d path"},{"line_number":71,"context_line":"        self._json \u003d json_data or {}"},{"line_number":72,"context_line":"        self._etag \u003d None"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"4aa6b15d_65a59380","line":70,"updated":"2026-11-22 21:05:21.000000000","message":"?$expand\u003d.($levels\u003d1) should be stripped off the path here, but it is not clear to me if there should be a self._expanded attribute stored here, and how that would interact with calling refresh(expand\u003dTrue/False).\n\nProposal: self._expanded is set to True if $expand\u003d.($levels\u003d1) is set on path, False otherwise. The refresh expand parameter is trinary: the default of None will result in self._expanded taking precedence.","commit_id":"8ee22ab5ad031e9644a01cdc28fd73651fd1f742"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"db7b7becec240b00c92a99b90ab1e043a97fef58","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                         call refresh() to fetch it."},{"line_number":68,"context_line":"        \"\"\""},{"line_number":69,"context_line":"        self._connector \u003d connector"},{"line_number":70,"context_line":"        self._path \u003d path"},{"line_number":71,"context_line":"        self._json \u003d json_data or {}"},{"line_number":72,"context_line":"        self._etag \u003d None"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1f254d60_a125a8e1","line":70,"in_reply_to":"4aa6b15d_65a59380","updated":"2026-11-23 02:34:26.000000000","message":"Done","commit_id":"8ee22ab5ad031e9644a01cdc28fd73651fd1f742"},{"author":{"_account_id":4571,"name":"Steve Baker","email":"sbaker@redhat.com","username":"steve-stevebaker"},"change_message_id":"fb87e13e7c96349345cd542520d89e1e6e5b90bf","unresolved":true,"context_lines":[{"line_number":205,"context_line":"        )"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"        # Refresh to get updated data"},{"line_number":208,"context_line":"        await self.refresh()"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"        return response"},{"line_number":211,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"0443fbd9_5534884c","line":208,"updated":"2026-11-22 21:05:21.000000000","message":"The patch might leave the BMC in a state that could cause a 5xx response from this get, which would be returned to the caller. They then won\u0027t be sure if the patch succeeded or not. Do patch results sometimes contain a json response can be used for a refresh action? Maybe the best documented behaviour will be to update self._json if the patch response returns a useful one, otherwise it is up to the caller to refresh themselves if they need the updated state.","commit_id":"8ee22ab5ad031e9644a01cdc28fd73651fd1f742"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"db7b7becec240b00c92a99b90ab1e043a97fef58","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        )"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"        # Refresh to get updated data"},{"line_number":208,"context_line":"        await self.refresh()"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"        return response"},{"line_number":211,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"628aa032_4c1d1a20","line":208,"in_reply_to":"0443fbd9_5534884c","updated":"2026-11-23 02:34:26.000000000","message":"Done","commit_id":"8ee22ab5ad031e9644a01cdc28fd73651fd1f742"},{"author":{"_account_id":4571,"name":"Steve Baker","email":"sbaker@redhat.com","username":"steve-stevebaker"},"change_message_id":"fb87e13e7c96349345cd542520d89e1e6e5b90bf","unresolved":true,"context_lines":[{"line_number":322,"context_line":"                    paths.append(odata_id)"},{"line_number":323,"context_line":""},{"line_number":324,"context_line":"        if expand:"},{"line_number":325,"context_line":"            paths \u003d [f\u0027{p}{EXPAND_QUERY}\u0027 for p in paths]"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"        return AsyncResourceCollection(self._connector, paths)"},{"line_number":328,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"a5860650_2ae5b71f","line":325,"updated":"2026-11-22 21:05:21.000000000","message":"?$expand\u003d.($levels\u003d1) could end up in the URLs of resource requests or appended multiple times. AsyncResource.__init__ is likely the best place to handle that, see comment there","commit_id":"8ee22ab5ad031e9644a01cdc28fd73651fd1f742"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"db7b7becec240b00c92a99b90ab1e043a97fef58","unresolved":false,"context_lines":[{"line_number":322,"context_line":"                    paths.append(odata_id)"},{"line_number":323,"context_line":""},{"line_number":324,"context_line":"        if expand:"},{"line_number":325,"context_line":"            paths \u003d [f\u0027{p}{EXPAND_QUERY}\u0027 for p in paths]"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"        return AsyncResourceCollection(self._connector, paths)"},{"line_number":328,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"4d1976c4_451ae7bf","line":325,"in_reply_to":"a5860650_2ae5b71f","updated":"2026-11-23 02:34:26.000000000","message":"Done","commit_id":"8ee22ab5ad031e9644a01cdc28fd73651fd1f742"}],"ironic/common/redfish/taskmonitor.py":[{"author":{"_account_id":23851,"name":"Riccardo Pittau","email":"elfosardo@gmail.com","username":"elfosardo"},"change_message_id":"8bc83bdf3506e5f51a3bc951b01a8f7149037fd7","unresolved":true,"context_lines":[{"line_number":200,"context_line":"        \"\"\""},{"line_number":201,"context_line":"        timeout_at \u003d asyncio.get_event_loop().time() + timeout_sec"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"        while await self.check_is_processing():"},{"line_number":204,"context_line":"            sleep_duration \u003d self.sleep_for"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"            LOG.debug(\u0027Waiting for task monitor %(url)s; sleeping for \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"0cb09325_a7e3ebb4","line":203,"updated":"2026-11-13 10:31:59.000000000","message":"is the initial retry after ignored here ? you call check_is_processing before sleeping, that calls task monitor and it polls immediately. Maybe use the current retry after response before polling","commit_id":"fbc52018680316e95b381366a3c1d8a2f76a9e90"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"80022d643e823dc684d52c9b44f8f6cad6b555ea","unresolved":false,"context_lines":[{"line_number":200,"context_line":"        \"\"\""},{"line_number":201,"context_line":"        timeout_at \u003d asyncio.get_event_loop().time() + timeout_sec"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"        while await self.check_is_processing():"},{"line_number":204,"context_line":"            sleep_duration \u003d self.sleep_for"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"            LOG.debug(\u0027Waiting for task monitor %(url)s; sleeping for \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"b22b9474_be94129c","line":203,"in_reply_to":"0cb09325_a7e3ebb4","updated":"2026-11-17 16:50:40.000000000","message":"Done","commit_id":"fbc52018680316e95b381366a3c1d8a2f76a9e90"},{"author":{"_account_id":23851,"name":"Riccardo Pittau","email":"elfosardo@gmail.com","username":"elfosardo"},"change_message_id":"8bc83bdf3506e5f51a3bc951b01a8f7149037fd7","unresolved":true,"context_lines":[{"line_number":208,"context_line":"                      {\u0027url\u0027: self.task_monitor_uri,"},{"line_number":209,"context_line":"                       \u0027sleep\u0027: sleep_duration})"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"            await asyncio.sleep(sleep_duration)"},{"line_number":212,"context_line":""},{"line_number":213,"context_line":"            if (asyncio.get_event_loop().time() \u003e\u003d timeout_at"},{"line_number":214,"context_line":"                    and await self.check_is_processing()):"}],"source_content_type":"text/x-python","patch_set":1,"id":"a02a9621_1038fd35","line":211,"updated":"2026-11-13 10:31:59.000000000","message":"this is odd, the timeout can actually be exceeded, sleep lasts for the entire retry after duration, meaning that if the timeout is 1 second, but retry after lasts a minute, the raise happen after 60 seconds. You probably need to bind the sleep to the remaining time and ensure the poll respects that.","commit_id":"fbc52018680316e95b381366a3c1d8a2f76a9e90"},{"author":{"_account_id":23851,"name":"Riccardo Pittau","email":"elfosardo@gmail.com","username":"elfosardo"},"change_message_id":"032fa53ad8db6217c55f4cea61f513f0f2d7ede3","unresolved":false,"context_lines":[{"line_number":208,"context_line":"                      {\u0027url\u0027: self.task_monitor_uri,"},{"line_number":209,"context_line":"                       \u0027sleep\u0027: sleep_duration})"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"            await asyncio.sleep(sleep_duration)"},{"line_number":212,"context_line":""},{"line_number":213,"context_line":"            if (asyncio.get_event_loop().time() \u003e\u003d timeout_at"},{"line_number":214,"context_line":"                    and await self.check_is_processing()):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da753c16_d6be147f","line":211,"in_reply_to":"55061ef4_3a44fff9","updated":"2026-11-17 12:47:48.000000000","message":"wow I completely missed that line!\nlooks good then","commit_id":"fbc52018680316e95b381366a3c1d8a2f76a9e90"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"358924b39b5c1a434b2eca1112ae343b215fbf5c","unresolved":true,"context_lines":[{"line_number":208,"context_line":"                      {\u0027url\u0027: self.task_monitor_uri,"},{"line_number":209,"context_line":"                       \u0027sleep\u0027: sleep_duration})"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"            await asyncio.sleep(sleep_duration)"},{"line_number":212,"context_line":""},{"line_number":213,"context_line":"            if (asyncio.get_event_loop().time() \u003e\u003d timeout_at"},{"line_number":214,"context_line":"                    and await self.check_is_processing()):"}],"source_content_type":"text/x-python","patch_set":1,"id":"55061ef4_3a44fff9","line":211,"in_reply_to":"a02a9621_1038fd35","updated":"2026-11-17 00:47:04.000000000","message":"Hey Riccardo, we are already bounding sleep to the remaining time. on Line 222 we have sleep_duration \u003d min(self.sleep_for, remaining), there is also unit test for it https://review.opendev.org/c/openstack/ironic/+/1014786/2/ironic/tests/unit/common/redfish/test_taskmonitor.py#454","commit_id":"fbc52018680316e95b381366a3c1d8a2f76a9e90"},{"author":{"_account_id":23851,"name":"Riccardo Pittau","email":"elfosardo@gmail.com","username":"elfosardo"},"change_message_id":"8d06f72973b16fb3214a4d033707debd08b4b695","unresolved":true,"context_lines":[{"line_number":228,"context_line":""},{"line_number":229,"context_line":"            await asyncio.sleep(sleep_duration)"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"            await self.refresh()"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"    @staticmethod"},{"line_number":234,"context_line":"    async def from_response(connector, response, target_uri):"}],"source_content_type":"text/x-python","patch_set":2,"id":"6611b6f0_2a596f49","line":231,"updated":"2026-11-16 13:54:17.000000000","message":"We should consider bounding the refresh by the remaining time, or clarify that the timeout only limits sleep and not in-flight requests.","commit_id":"58da54f64f95560c269c59e5e9763c528909cbe0"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"4aeb3584a13e6a1015625139cc3d06435c66207a","unresolved":false,"context_lines":[{"line_number":228,"context_line":""},{"line_number":229,"context_line":"            await asyncio.sleep(sleep_duration)"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"            await self.refresh()"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"    @staticmethod"},{"line_number":234,"context_line":"    async def from_response(connector, response, target_uri):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3c70b85e_0549cdbd","line":231,"in_reply_to":"49f79491_8c22b451","updated":"2026-11-17 13:06:15.000000000","message":"Acknowledged","commit_id":"58da54f64f95560c269c59e5e9763c528909cbe0"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"358924b39b5c1a434b2eca1112ae343b215fbf5c","unresolved":true,"context_lines":[{"line_number":228,"context_line":""},{"line_number":229,"context_line":"            await asyncio.sleep(sleep_duration)"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"            await self.refresh()"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"    @staticmethod"},{"line_number":234,"context_line":"    async def from_response(connector, response, target_uri):"}],"source_content_type":"text/x-python","patch_set":2,"id":"d1e45005_33dac506","line":231,"in_reply_to":"6611b6f0_2a596f49","updated":"2026-11-17 00:47:04.000000000","message":"I\u0027ve run this trough claude and the comment was a bit interesting...\n\n-----------------------------------------------------------------------------\nComment line 231: valid, and worse than they suggest\n\n`refresh()` calls `self._connector.get(path\u003d...)` with no timeout, so the budget genuinely doesn\u0027t constrain it:\n\n- `timeout \u003d timeout or self._default_request_timeout` → 60s (`connector.py:29`5, default at `connector.py:60`)\n- transient-error retry loop: `max_attempts \u003d self._server_side_retries + 1` \u003d 4 (`connector.py:306`), with `asyncio.sleep(2)` between (`connector.py:343`)\n- worst case for one `refresh()`: 4 × 60 + 3 × 2 \u003d 246s\n\nAnd it compounds: the `ServerSideError` path recurses (`connector.py:380-391`), and `max_attempts` on re-entry is computed from `self._server_side_retries`, not the decremented `server_side_retries_left` — so each 5xx retry level gets a fresh set of 4 attempts. `wait(timeout_sec\u003d1)` can plausibly take minutes.\n\nThe wrinkle worth raising in your reply\n\nBounding the refresh by the remaining time directly conflicts with the behavior the docstring promises. After `await asyncio.sleep(sleep_duration)`, when the sleep consumed the full budget, remaining is exactly 0 — so \"the deadline still buys one last poll\" would become a poll with a zero-second deadline that always fails. You can\u0027t have both literally; one has to give.\n\nThe cleanest resolution keeps the documented semantics and bounds the poll by a floor:\n```\nawait asyncio.sleep(sleep_duration)\n\npoll_budget \u003d max(timeout_at - loop.time(), MIN_POLL_TIMEOUT)\ntry:\n    await asyncio.wait_for(self.refresh(), timeout\u003dpoll_budget)\nexcept asyncio.TimeoutError:\n    raise exceptions.ConnectionError(url\u003dself.task_monitor_uri, error\u003dmsg)\n```\n`asyncio.wait_for` is the right tool over passing `timeout\u003d` down to the connector: an httpx timeout applies per-attempt (connect/read/write separately) and would still be multiplied by the retry loop, whereas `wait_for` caps the whole call including retries and backoff.\n\nThen update the docstring — the current text only claims the sleep is capped, which is true today but silent on the poll.\n\n\n-----------------------------------------------------------------------------\n\n\n\nI do find it valid... thoughts?","commit_id":"58da54f64f95560c269c59e5e9763c528909cbe0"},{"author":{"_account_id":23851,"name":"Riccardo Pittau","email":"elfosardo@gmail.com","username":"elfosardo"},"change_message_id":"032fa53ad8db6217c55f4cea61f513f0f2d7ede3","unresolved":true,"context_lines":[{"line_number":228,"context_line":""},{"line_number":229,"context_line":"            await asyncio.sleep(sleep_duration)"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"            await self.refresh()"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"    @staticmethod"},{"line_number":234,"context_line":"    async def from_response(connector, response, target_uri):"}],"source_content_type":"text/x-python","patch_set":2,"id":"49f79491_8c22b451","line":231,"in_reply_to":"d1e45005_33dac506","updated":"2026-11-17 12:47:48.000000000","message":"ok, this is worse, so we should bound the whole refresh with asyncio.wait_for, rather than pass a timeout to the connector.\nSo I kind of agree with Claude :)","commit_id":"58da54f64f95560c269c59e5e9763c528909cbe0"},{"author":{"_account_id":4571,"name":"Steve Baker","email":"sbaker@redhat.com","username":"steve-stevebaker"},"change_message_id":"fb87e13e7c96349345cd542520d89e1e6e5b90bf","unresolved":true,"context_lines":[{"line_number":131,"context_line":""},{"line_number":132,"context_line":"        :returns: True if task is processing, False otherwise"},{"line_number":133,"context_line":"        \"\"\""},{"line_number":134,"context_line":"        return self._response.status_code \u003d\u003d http_client.ACCEPTED"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    async def check_is_processing(self):"},{"line_number":137,"context_line":"        \"\"\"Refresh and check if the task is still processing."}],"source_content_type":"text/x-python","patch_set":5,"id":"edbf912d_868265ae","line":134,"updated":"2026-11-22 21:05:21.000000000","message":"self._response is None on a newly created AsyncTaskMonitor","commit_id":"8ee22ab5ad031e9644a01cdc28fd73651fd1f742"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"db7b7becec240b00c92a99b90ab1e043a97fef58","unresolved":false,"context_lines":[{"line_number":131,"context_line":""},{"line_number":132,"context_line":"        :returns: True if task is processing, False otherwise"},{"line_number":133,"context_line":"        \"\"\""},{"line_number":134,"context_line":"        return self._response.status_code \u003d\u003d http_client.ACCEPTED"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    async def check_is_processing(self):"},{"line_number":137,"context_line":"        \"\"\"Refresh and check if the task is still processing."}],"source_content_type":"text/x-python","patch_set":5,"id":"51defcfe_4a14d6e2","line":134,"in_reply_to":"edbf912d_868265ae","updated":"2026-11-23 02:34:26.000000000","message":"Done","commit_id":"8ee22ab5ad031e9644a01cdc28fd73651fd1f742"},{"author":{"_account_id":4571,"name":"Steve Baker","email":"sbaker@redhat.com","username":"steve-stevebaker"},"change_message_id":"fb87e13e7c96349345cd542520d89e1e6e5b90bf","unresolved":true,"context_lines":[{"line_number":176,"context_line":""},{"line_number":177,"context_line":"        :returns: True if task is cancellable, False otherwise"},{"line_number":178,"context_line":"        \"\"\""},{"line_number":179,"context_line":"        allow \u003d self._response.headers.get(\u0027Allow\u0027)"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"        if allow and \u0027DELETE\u0027 in allow.upper():"},{"line_number":182,"context_line":"            return True"}],"source_content_type":"text/x-python","patch_set":5,"id":"4942b3b4_77bf2b39","line":179,"updated":"2026-11-22 21:05:21.000000000","message":"self._response is None on a newly created AsyncTaskMonitor","commit_id":"8ee22ab5ad031e9644a01cdc28fd73651fd1f742"},{"author":{"_account_id":15519,"name":"Iury Gregory Melo Ferreira","display_name":"Iury Gregory","email":"iurygregory@gmail.com","username":"iurygregory"},"change_message_id":"db7b7becec240b00c92a99b90ab1e043a97fef58","unresolved":false,"context_lines":[{"line_number":176,"context_line":""},{"line_number":177,"context_line":"        :returns: True if task is cancellable, False otherwise"},{"line_number":178,"context_line":"        \"\"\""},{"line_number":179,"context_line":"        allow \u003d self._response.headers.get(\u0027Allow\u0027)"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"        if allow and \u0027DELETE\u0027 in allow.upper():"},{"line_number":182,"context_line":"            return True"}],"source_content_type":"text/x-python","patch_set":5,"id":"790f6ed0_f460bf9e","line":179,"in_reply_to":"4942b3b4_77bf2b39","updated":"2026-11-23 02:34:26.000000000","message":"Done","commit_id":"8ee22ab5ad031e9644a01cdc28fd73651fd1f742"}]}
