)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"db95d04f228f525cdc491d3063c9bf01e0782739","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"9a12a8f8_18075983","updated":"2026-07-21 16:35:18.000000000","message":"thanks for the improvment Chandan!","commit_id":"0324c62e2957689da999938cff4e86c2aa8f4189"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9daad5b5fea912673b5ac7180cfa8897a0a98d74","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"681cb959_36d96df7","updated":"2026-10-22 16:30:24.000000000","message":"this is gettign pretty close but it still feels a bit off","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"ab3510865ec6972cf79612f1d71ca2495fe36c77","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":9,"id":"ee1e4243_67db57c0","updated":"2026-10-23 18:10:40.000000000","message":"actully i think the best approch is to put \nhttps://review.opendev.org/c/openstack/cyborg/+/999938 on the tip of mater and rebase teh fpga sersie on top adn sepreatly put \n\nhttps://review.opendev.org/c/openstack/cyborg/+/999937/22 after https://review.opendev.org/c/openstack/cyborg/+/999938  in the nvme serise","commit_id":"400af3c42d1c6ec34d13fe8a0f243f92247fecea"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"cfd86412395eba3c657aa573b6d527c9ba6a9c6e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":9,"id":"556e0864_9f8f205d","updated":"2026-10-23 18:08:03.000000000","message":"i feel like you doign more in this commit then you shoudl be but i think we coudl procieed if you align it with \n\nhttps://review.opendev.org/c/openstack/cyborg/+/1002256/1/cyborg/agent/manager.py","commit_id":"400af3c42d1c6ec34d13fe8a0f243f92247fecea"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"b3da3eb899067228d145d0cd61192ad691861331","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":9,"id":"7500e6b0_1021381a","updated":"2026-10-23 18:09:06.000000000","message":"otherwise we shoudl leve the init_host change to one fo\n\nhttps://review.opendev.org/c/openstack/cyborg/+/999938\nor \nhttps://review.opendev.org/c/openstack/cyborg/+/1002256/1/cyborg/agent/manager.py","commit_id":"400af3c42d1c6ec34d13fe8a0f243f92247fecea"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"8e9203ecb2123dfdb44cc052200b3e8e013412e1","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":9,"id":"dcbad02c_8a4958fe","in_reply_to":"ee1e4243_67db57c0","updated":"2026-10-27 11:43:48.000000000","message":"Thank you @smooney@redhat.com for reviewing it. Based on the above suggestion here is what I have done.\n\n- I have rebased this patch on top of https://review.opendev.org/c/openstack/cyborg/+/999938\n- Dropped init_host() startup from this patch so that we can include it in https://review.opendev.org/c/openstack/cyborg/+/1002256\n- For nvme, https://review.opendev.org/c/openstack/cyborg/+/999937 is rebased on top of https://review.opendev.org/c/openstack/cyborg/+/999938.\n\nNow this changes is self contained around fpga and control path.","commit_id":"400af3c42d1c6ec34d13fe8a0f243f92247fecea"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"4ade5cd195015f369f132baa597ae47067fdcc09","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":10,"id":"59c6e6a0_f6898f0f","updated":"2026-10-26 16:18:45.000000000","message":"Need to respond to comments.","commit_id":"f162ad08935e86eec4d5fd908a00b51b3bdf4479"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"20cf3334db6efa03421d6b3d8785812d6bf61d05","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":11,"id":"c595477b_bbf9bef7","updated":"2026-10-28 10:28:54.000000000","message":"ok we are moving closer\n\ncan you make the refinement i suggted related to the address property indriection so that the resouce tracker does nto need to care waht format the adress is beyond it being a hasable value aka a string.\n\ni want to start with a propety for now but eventually we may decied to make this be a db column but since i dont think we will eb doing db queires based on it in the near term we shoudl avoid that for now.","commit_id":"8715066e4f3efe6342c0a111f5c1fdafcad45bbb"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"c1dc52120ae8940b9439924e65f4a24977f8f28c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":12,"id":"09268119_8424fcf1","updated":"2026-10-28 13:38:50.000000000","message":"current version lgtm, there is room from improvement as discussed, but it\u0027s considerably better than what we currently have, thanks!","commit_id":"1d04bdfcc0da3ab98ec820cef061142beec4f829"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"c1e869e640f57ea0f540477e04cf5134774c4b1f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":12,"id":"2a030746_47d827c1","in_reply_to":"09268119_8424fcf1","updated":"2026-10-28 13:43:52.000000000","message":"i agree\n\ntehre are other rough edges i woudl liek to fix but i think this is a good stoping poing for this patch","commit_id":"1d04bdfcc0da3ab98ec820cef061142beec4f829"}],"cyborg/accelerator/drivers/driver.py":[{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"a7b836e6851efc3194b986893d1180e1fe38fe36","unresolved":false,"context_lines":[{"line_number":25,"context_line":"            yield sub"},{"line_number":26,"context_line":"            yield from sub._all_subclasses()"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    @classmethod"},{"line_number":29,"context_line":"    def create(cls, vendor, *args, **kwargs):"},{"line_number":30,"context_line":"        \"\"\"Instantiate a vendor-specific driver subclass."},{"line_number":31,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"c2ec1077_d9d36c65","line":28,"updated":"2026-07-20 17:33:38.000000000","message":"GenericDriver.create() and _all_subclasses() are new public methods with no direct unit tests. Existing tests only exercise FPGADriver.create() (inherited). No test calls GenericDriver.create() directly, which is the actual call path used by manager.py. The recursive subclass walk and cross-categ...\n\n**Severity**: SUGGESTION | **Confidence**: 0.8\n\n**Benefit**: The recursive _all_subclasses() walk and GenericDriver.create() entry point are untested. A regression in subclass discovery would not be caught until runtime. The production call path (GenericDriver.create() from manager.py) has zero test coverage.\n\n**Recommendation**:\nAdd tests to test_driver.py that: (1) call GenericDriver.create() with known vendor names and verify correct subclass returned, (2) test nested subclass discovery via _all_subclasses(), (3) verify LookupError for unknown vendors, and (4) add a fpga_program test in test_manager.py.","commit_id":"ac8333d6eb3f7ebd3c094dc532ffd4f644cb538b"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"db95d04f228f525cdc491d3063c9bf01e0782739","unresolved":true,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"        Resolves *vendor* through ``cls.VENDOR_MAPS`` then matches"},{"line_number":33,"context_line":"        against each subclass\u0027s ``VENDOR`` attribute."},{"line_number":34,"context_line":"        \"\"\""},{"line_number":35,"context_line":"        vendor_name \u003d cls.VENDOR_MAPS.get(vendor, vendor)"},{"line_number":36,"context_line":"        for driver_class in cls._all_subclasses():"},{"line_number":37,"context_line":"            if vendor_name \u003d\u003d driver_class.VENDOR:"}],"source_content_type":"text/x-python","patch_set":2,"id":"4bace023_61e315ca","line":34,"updated":"2026-07-21 16:35:18.000000000","message":"thinking about this, I\u0027m not convinced on the robustness of the whole mechanism of having a `create` method and VENDOR and VENDOR_MAPS attributes to resolve the driver. This is completely out of the scope of this change, but I\u0027m thinking that maybe giving each driver an id and storing that in the deployable might be a cleaner way to handle it","commit_id":"0324c62e2957689da999938cff4e86c2aa8f4189"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"0d4d36391a8d0ea6d2ddb47a4fd6258558df5a61","unresolved":true,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"        Resolves *vendor* through ``cls.VENDOR_MAPS`` then matches"},{"line_number":33,"context_line":"        against each subclass\u0027s ``VENDOR`` attribute."},{"line_number":34,"context_line":"        \"\"\""},{"line_number":35,"context_line":"        vendor_name \u003d cls.VENDOR_MAPS.get(vendor, vendor)"},{"line_number":36,"context_line":"        for driver_class in cls._all_subclasses():"},{"line_number":37,"context_line":"            if vendor_name \u003d\u003d driver_class.VENDOR:"}],"source_content_type":"text/x-python","patch_set":2,"id":"6d3ad39a_9b7bb1a0","line":34,"in_reply_to":"1a9d8aa4_a95b21bc","updated":"2026-10-22 11:12:08.000000000","message":"Totally agree with your approach to go with the resource tracker.\n\nI have updated the patch to use the resource tracker.\n\nThe resource tracker now keeps the map you described, _drivers_by_controlpath,\nfrom control path to the driver instance that discovered the device.\n\nfpga_program() looks up the driver with ResourceTracker.get_driver_for_controlpath()\nand calls update() as a normal instance method, so the agent manager never\nlearns the driver type.\n\nFPGADriver.create() and VENDOR_MAPS are removed.\n\nDo let me know if i missed anything.","commit_id":"0324c62e2957689da999938cff4e86c2aa8f4189"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"420cfa16bf5dfb9476264877f2d5ae9aa042ae7d","unresolved":true,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"        Resolves *vendor* through ``cls.VENDOR_MAPS`` then matches"},{"line_number":33,"context_line":"        against each subclass\u0027s ``VENDOR`` attribute."},{"line_number":34,"context_line":"        \"\"\""},{"line_number":35,"context_line":"        vendor_name \u003d cls.VENDOR_MAPS.get(vendor, vendor)"},{"line_number":36,"context_line":"        for driver_class in cls._all_subclasses():"},{"line_number":37,"context_line":"            if vendor_name \u003d\u003d driver_class.VENDOR:"}],"source_content_type":"text/x-python","patch_set":2,"id":"64eb3cf9_076720bf","line":34,"in_reply_to":"4bace023_61e315ca","updated":"2026-10-20 14:58:17.000000000","message":"this is not correct.\n\nit shoudl not be a class method it shoudl be a normal instnace method and we will call it based on the the normal polly morphsic dispatch via inheritance.\n\non its parmaters we shoudl really only be passing the device and and perhaps the arq object \n\ncertenly not the vendor or arbitrary args\n\nthe compute manager shoudl not need to know why type of driver its calling becasue all drivers shoudl have a common interface.","commit_id":"0324c62e2957689da999938cff4e86c2aa8f4189"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"e03fe296a2097548076585658294a2b87bdba6a8","unresolved":true,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"        Resolves *vendor* through ``cls.VENDOR_MAPS`` then matches"},{"line_number":33,"context_line":"        against each subclass\u0027s ``VENDOR`` attribute."},{"line_number":34,"context_line":"        \"\"\""},{"line_number":35,"context_line":"        vendor_name \u003d cls.VENDOR_MAPS.get(vendor, vendor)"},{"line_number":36,"context_line":"        for driver_class in cls._all_subclasses():"},{"line_number":37,"context_line":"            if vendor_name \u003d\u003d driver_class.VENDOR:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a9d8aa4_a95b21bc","line":34,"in_reply_to":"64eb3cf9_076720bf","updated":"2026-10-20 15:16:49.000000000","message":"thinking about this more what we will actully need at the agent manger level or proably the resouce tracker is a mapp form the the device contopl path id to the drvier instance that manages tehat device object","commit_id":"0324c62e2957689da999938cff4e86c2aa8f4189"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"758dfec060d6df167229074d5d88d43cf090e08d","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        Resolves *vendor* through ``cls.VENDOR_MAPS`` then matches"},{"line_number":33,"context_line":"        against each subclass\u0027s ``VENDOR`` attribute."},{"line_number":34,"context_line":"        \"\"\""},{"line_number":35,"context_line":"        vendor_name \u003d cls.VENDOR_MAPS.get(vendor, vendor)"},{"line_number":36,"context_line":"        for driver_class in cls._all_subclasses():"},{"line_number":37,"context_line":"            if vendor_name \u003d\u003d driver_class.VENDOR:"},{"line_number":38,"context_line":"                return driver_class(*args, **kwargs)"}],"source_content_type":"text/x-python","patch_set":2,"id":"e2293a8a_7ffa5365","line":35,"updated":"2026-07-21 04:55:06.000000000","message":"manager.py now calls GenericDriver.create(driver_name) which uses GenericDriver.VENDOR_MAPS (empty {}), not FPGADriver.VENDOR_MAPS. The PCI vendor ID resolution documented by the FPGADriver.VENDOR_MAPS comment only takes effect when create() is called directly on FPGADriver, which no production c...\n\n**Severity**: WARNING | **Confidence**: 0.8\n\n**Impact**: The FPGADriver.VENDOR_MAPS dictionary and its comment (\u0027Resolves PCI vendor IDs for FPGADriver.create() callers\u0027) are misleading dead code from the primary call path. While the current fpga_program flow passes already-resolved vendor names (e.g. \u0027intel\u0027), any future caller passing a raw PCI vendo...\n\n**Suggestion**:\nEither (a) merge VENDOR_MAPS from all ancestor classes in create() so FPGADriver.VENDOR_MAPS is consulted regardless of entry point, or (b) update the comment on FPGADriver.VENDOR_MAPS to clarify it is only used when calling FPGADriver.create() directly, or (c) if PCI vendor ID resolution is no longer needed at all, remove VENDOR_MAPS from FPGADriver and document that GenericDriver.create() expects resolved vendor names.","commit_id":"0324c62e2957689da999938cff4e86c2aa8f4189"}],"cyborg/agent/manager.py":[{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"a7b836e6851efc3194b986893d1180e1fe38fe36","unresolved":false,"context_lines":[{"line_number":179,"context_line":"            context, bitstream_uuid, dest_path\u003ddownload_path.name"},{"line_number":180,"context_line":"        )"},{"line_number":181,"context_line":"        try:"},{"line_number":182,"context_line":"            driver \u003d GenericDriver.create(driver_name)"},{"line_number":183,"context_line":"            ret \u003d driver.update(controlpath_id, download_path.name)"},{"line_number":184,"context_line":"            LOG.info(\u0027Driver update() API returned %s\u0027, ret)"},{"line_number":185,"context_line":"        finally:"}],"source_content_type":"text/x-python","patch_set":1,"id":"657a2529_f99d5a69","line":182,"updated":"2026-07-20 17:33:38.000000000","message":"manager.py now calls GenericDriver.create() instead of FPGADriver.create(). The create() method resolves vendor through cls.VENDOR_MAPS, but when cls is GenericDriver, VENDOR_MAPS is empty. The FPGADriver.VENDOR_MAPS override (\u00270x8086\u0027-\u003e\u0027intel\u0027, \u00271bd4\u0027-\u003e\u0027inspur\u0027) is never consulted in the fpga_pr...\n\n**Severity**: WARNING | **Confidence**: 0.8\n\n**Impact**: If any caller passes a raw PCI vendor ID (e.g., \u00270x8086\u0027) to fpga_program, driver lookup will fail with LookupError. While current callers pass resolved vendor names, the FPGADriver.VENDOR_MAPS override added here is dead code for the production path, creating confusion for maintainers.\n\n**Suggestion**:\nEither (a) call FPGADriver.create() in manager.py to preserve PCI vendor ID resolution, or (b) if GenericDriver.create() is the intended universal entry point, document that callers must pass resolved vendor names and that VENDOR_MAPS on FPGADriver only applies to FPGADriver.create() calls.","commit_id":"ac8333d6eb3f7ebd3c094dc532ffd4f644cb538b"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"d3e7411514dbcd1a84960eb951d77d2defc84d77","unresolved":false,"context_lines":[{"line_number":179,"context_line":"            context, bitstream_uuid, dest_path\u003ddownload_path.name"},{"line_number":180,"context_line":"        )"},{"line_number":181,"context_line":"        try:"},{"line_number":182,"context_line":"            driver \u003d GenericDriver.create(driver_name)"},{"line_number":183,"context_line":"            ret \u003d driver.update(controlpath_id, download_path.name)"},{"line_number":184,"context_line":"            LOG.info(\u0027Driver update() API returned %s\u0027, ret)"},{"line_number":185,"context_line":"        finally:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ec14052c_e64b4e99","line":182,"updated":"2026-08-04 05:52:02.000000000","message":"manager.py switched from FPGADriver.create() to GenericDriver.create(). GenericDriver.VENDOR_MAPS is {}, so FPGA PCI vendor IDs (e.g. \"0x8086\") are no longer resolved. The search scope also expanded from FPGA-only subclasses to ALL GenericDriver subclasses including non-FPGA drivers (FakeDriver,...\n\n**Severity**: HIGH | **Confidence**: 0.8\n\n**Risk**: PCI vendor IDs (e.g. \"0x8086\") passed as driver_name will raise LookupError instead of resolving to IntelFPGADriver. This is latent since driver_name normally comes from obj_dep.driver_name (a vendor name). The expanded scope also means a non-FPGA driver could be returned from fpga_program if a m...\n\n**Priority**: Before merge\n**Why This Matters**: PCI vendor IDs (e.g. \"0x8086\") passed as driver_name will raise LookupError instead of resolving to IntelFPGADriver. This is latent since driver_name normally comes from obj_dep.driver_name (a vendor name). The expanded scope also means a non-FPGA driver could be returned from fpga_program if a m...\n\n**Recommendation**:\nChange GenericDriver.create(driver_name) to FPGADriver.create(driver_name) in manager.py and import FPGADriver. This preserves FPGA-specific VENDOR_MAPS resolution, keeps the search scoped to FPGA subclasses, and still benefits from the recursive _all_subclasses() walk added by this patch.","commit_id":"60a5351c98951b694a423284681ab0870a36f7ee"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"91686474b16b986defbb5622a7f2d31f585f8642","unresolved":true,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def init_host(self):"},{"line_number":99,"context_line":"        \"\"\"Hook called by RPCService.start() after the RPC server is up.\"\"\""},{"line_number":100,"context_line":"        self._rt.discover_devices()"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def _get_resource_provider_name(self):"},{"line_number":103,"context_line":"        \"\"\"Determine the correct resource provider name by querying Placement."}],"source_content_type":"text/x-python","patch_set":9,"id":"cc6acad1_c2e3c008","line":100,"updated":"2026-10-23 14:54:26.000000000","message":"isn\u0027t this call to discover_devices on init redundant? If my understanding of the agent is correct, after starting the first thing it does is call `update_available_resource`, which already runs discovery through the resource tracker\nthe overhead would be generally quite small since discovery is quite fast, but it seems wasteful","commit_id":"400af3c42d1c6ec34d13fe8a0f243f92247fecea"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"cfd86412395eba3c657aa573b6d527c9ba6a9c6e","unresolved":true,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def init_host(self):"},{"line_number":99,"context_line":"        \"\"\"Hook called by RPCService.start() after the RPC server is up.\"\"\""},{"line_number":100,"context_line":"        self._rt.discover_devices()"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def _get_resource_provider_name(self):"},{"line_number":103,"context_line":"        \"\"\"Determine the correct resource provider name by querying Placement."}],"source_content_type":"text/x-python","patch_set":9,"id":"db679c26_598bd744","line":100,"in_reply_to":"cc6acad1_c2e3c008","updated":"2026-10-23 18:08:03.000000000","message":"this is part of our startu validateion we want to expiclty do it in the init host phase so that any isues with say duplicate device causes the startup to hard fail form the start hook.\n\nhowever this shoudl be calleing update_available_resource directly and it shoudl be update to not run on startup/runimidately anymore.\n\nnote that the perosdic task run in there own background thread and dont nessisarly blcok agent startup if they raise wehre as this mehod will which is why we want to call update_available_resource directly.\n\nwhat why im doing that here \nhttps://review.opendev.org/c/openstack/cyborg/+/1002256/1/cyborg/agent/manager.py","commit_id":"400af3c42d1c6ec34d13fe8a0f243f92247fecea"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"6c9cec724837422ba1b065c9bb30ac64d98b23bf","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def init_host(self):"},{"line_number":99,"context_line":"        \"\"\"Hook called by RPCService.start() after the RPC server is up.\"\"\""},{"line_number":100,"context_line":"        self._rt.discover_devices()"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def _get_resource_provider_name(self):"},{"line_number":103,"context_line":"        \"\"\"Determine the correct resource provider name by querying Placement."}],"source_content_type":"text/x-python","patch_set":9,"id":"1f098c2b_25f4e3ec","line":100,"in_reply_to":"db679c26_598bd744","updated":"2026-10-27 11:50:07.000000000","message":"I see, that is a good point about being able to raise. I see you commented below to remove the run immediately from the periodic, so I\u0027m marking this as resolved","commit_id":"400af3c42d1c6ec34d13fe8a0f243f92247fecea"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"cfd86412395eba3c657aa573b6d527c9ba6a9c6e","unresolved":true,"context_lines":[{"line_number":188,"context_line":"            os.remove(download_path.name)"},{"line_number":189,"context_line":"        return ret"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"    @periodic_task.periodic_task(run_immediately\u003dTrue)"},{"line_number":192,"context_line":"    def update_available_resource(self, context, startup\u003dTrue):"},{"line_number":193,"context_line":"        \"\"\"Update all kinds of accelerator resources from their drivers.\"\"\""},{"line_number":194,"context_line":"        self._rt.update_usage(context)"},{"line_number":195,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"ff865cd1_126d4ebc","line":192,"range":{"start_line":191,"start_character":3,"end_line":192,"end_character":63},"updated":"2026-10-23 18:08:03.000000000","message":"so these shoudl be updated.\n\nalso i feel like i gave this feedback on a review before or saw that change already do we have conficltiy patches taht are makint that refinement.\nlatere ok yes\nchandand had rewroed thsi a bit in \nhttps://review.opendev.org/c/openstack/cyborg/+/999938\nand i had also done that before in \nhttps://review.opendev.org/c/openstack/cyborg/+/1002256/1/cyborg/agent/manager.py","commit_id":"400af3c42d1c6ec34d13fe8a0f243f92247fecea"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"20cf3334db6efa03421d6b3d8785812d6bf61d05","unresolved":false,"context_lines":[{"line_number":188,"context_line":"            os.remove(download_path.name)"},{"line_number":189,"context_line":"        return ret"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"    @periodic_task.periodic_task(run_immediately\u003dTrue)"},{"line_number":192,"context_line":"    def update_available_resource(self, context, startup\u003dTrue):"},{"line_number":193,"context_line":"        \"\"\"Update all kinds of accelerator resources from their drivers.\"\"\""},{"line_number":194,"context_line":"        self._rt.update_usage(context)"},{"line_number":195,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"78fa75ec_66a93bcd","line":192,"range":{"start_line":191,"start_character":3,"end_line":192,"end_character":63},"in_reply_to":"ff865cd1_126d4ebc","updated":"2026-10-28 10:28:54.000000000","message":"lets address this seperatly once we land some of these patches and see how it looks after the dust settles","commit_id":"400af3c42d1c6ec34d13fe8a0f243f92247fecea"}],"cyborg/agent/resource_tracker.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"1cb9e4a4880db56eed6bebd2f51be77e7bd41a13","unresolved":true,"context_lines":[{"line_number":95,"context_line":"        for acc_driver in self.acc_drivers:"},{"line_number":96,"context_line":"            devices \u003d acc_driver.discover()"},{"line_number":97,"context_line":"            for device in devices:"},{"line_number":98,"context_line":"                key \u003d self._controlpath_key(device.controlpath_id)"},{"line_number":99,"context_line":"                if key in drivers_by_controlpath:"},{"line_number":100,"context_line":"                    # Do not select a driver when ownership is ambiguous."},{"line_number":101,"context_line":"                    drivers_by_controlpath[key] \u003d None"},{"line_number":102,"context_line":"                else:"},{"line_number":103,"context_line":"                    drivers_by_controlpath[key] \u003d acc_driver"},{"line_number":104,"context_line":"            acc_list.extend(devices)"}],"source_content_type":"text/x-python","patch_set":7,"id":"a9ff900f_387d8c65","line":101,"range":{"start_line":98,"start_character":16,"end_line":101,"end_character":54},"updated":"2026-10-22 11:21:57.000000000","message":"so this should be a hard startup error.\n\nIts not OK for a device to be manged by 2 drivers.\n\ni have menthioend this on both the nvme and mdev driver series\n\ncan you make this raise an invlaide cofnig expction\n\n@jgilaber@redhat.com this change will allow you to remove\nhttps://review.opendev.org/c/openstack/cyborg/+/997051/22","commit_id":"629e7b6cb544c46663bffd9993245d2e25d6f0ce"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"49bdd1d8cfebe595f9175af74d0c0dd47ce594e6","unresolved":true,"context_lines":[{"line_number":95,"context_line":"        for acc_driver in self.acc_drivers:"},{"line_number":96,"context_line":"            devices \u003d acc_driver.discover()"},{"line_number":97,"context_line":"            for device in devices:"},{"line_number":98,"context_line":"                key \u003d self._controlpath_key(device.controlpath_id)"},{"line_number":99,"context_line":"                if key in drivers_by_controlpath:"},{"line_number":100,"context_line":"                    # Do not select a driver when ownership is ambiguous."},{"line_number":101,"context_line":"                    drivers_by_controlpath[key] \u003d None"},{"line_number":102,"context_line":"                else:"},{"line_number":103,"context_line":"                    drivers_by_controlpath[key] \u003d acc_driver"},{"line_number":104,"context_line":"            acc_list.extend(devices)"}],"source_content_type":"text/x-python","patch_set":7,"id":"f60fe738_5851eae2","line":101,"range":{"start_line":98,"start_character":16,"end_line":101,"end_character":54},"in_reply_to":"a9ff900f_387d8c65","updated":"2026-10-22 11:34:08.000000000","message":"ack, will review this patch and abandon mine, thanks","commit_id":"629e7b6cb544c46663bffd9993245d2e25d6f0ce"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"8e9203ecb2123dfdb44cc052200b3e8e013412e1","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        for acc_driver in self.acc_drivers:"},{"line_number":96,"context_line":"            devices \u003d acc_driver.discover()"},{"line_number":97,"context_line":"            for device in devices:"},{"line_number":98,"context_line":"                key \u003d self._controlpath_key(device.controlpath_id)"},{"line_number":99,"context_line":"                if key in drivers_by_controlpath:"},{"line_number":100,"context_line":"                    # Do not select a driver when ownership is ambiguous."},{"line_number":101,"context_line":"                    drivers_by_controlpath[key] \u003d None"},{"line_number":102,"context_line":"                else:"},{"line_number":103,"context_line":"                    drivers_by_controlpath[key] \u003d acc_driver"},{"line_number":104,"context_line":"            acc_list.extend(devices)"}],"source_content_type":"text/x-python","patch_set":7,"id":"2aa618f0_6e7c4fb0","line":101,"range":{"start_line":98,"start_character":16,"end_line":101,"end_character":54},"in_reply_to":"cc072865_c82d3589","updated":"2026-10-27 11:43:48.000000000","message":"Done","commit_id":"629e7b6cb544c46663bffd9993245d2e25d6f0ce"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"0187e7a82850e4b66006a73db7b64b6eabe6e25d","unresolved":true,"context_lines":[{"line_number":95,"context_line":"        for acc_driver in self.acc_drivers:"},{"line_number":96,"context_line":"            devices \u003d acc_driver.discover()"},{"line_number":97,"context_line":"            for device in devices:"},{"line_number":98,"context_line":"                key \u003d self._controlpath_key(device.controlpath_id)"},{"line_number":99,"context_line":"                if key in drivers_by_controlpath:"},{"line_number":100,"context_line":"                    # Do not select a driver when ownership is ambiguous."},{"line_number":101,"context_line":"                    drivers_by_controlpath[key] \u003d None"},{"line_number":102,"context_line":"                else:"},{"line_number":103,"context_line":"                    drivers_by_controlpath[key] \u003d acc_driver"},{"line_number":104,"context_line":"            acc_list.extend(devices)"}],"source_content_type":"text/x-python","patch_set":7,"id":"cc072865_c82d3589","line":101,"range":{"start_line":98,"start_character":16,"end_line":101,"end_character":54},"in_reply_to":"f60fe738_5851eae2","updated":"2026-10-22 15:02:24.000000000","message":"I have added `InvalidConfiguration` exception.\n\nDone. now `_discover_devices()` raises `InvalidConfiguration` when two enabled drivers report the same control path.\n\nDiscovery runs in the ResourceTracker constructor, so a duplicate claim aborts agent startup. It will handle the hard startup error.","commit_id":"629e7b6cb544c46663bffd9993245d2e25d6f0ce"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"1cb9e4a4880db56eed6bebd2f51be77e7bd41a13","unresolved":true,"context_lines":[{"line_number":118,"context_line":"            self._discover_devices()"},{"line_number":119,"context_line":"        try:"},{"line_number":120,"context_line":"            driver \u003d self._drivers_by_controlpath[key]"},{"line_number":121,"context_line":"            if driver is None:"},{"line_number":122,"context_line":"                raise LookupError("},{"line_number":123,"context_line":"                    \u0027Multiple drivers discovered control path %s\u0027 % (key,)"},{"line_number":124,"context_line":"                )"},{"line_number":125,"context_line":"            return driver"},{"line_number":126,"context_line":"        except KeyError:"},{"line_number":127,"context_line":"            raise LookupError("},{"line_number":128,"context_line":"                \u0027No enabled driver discovered control path %s\u0027 % (key,)"}],"source_content_type":"text/x-python","patch_set":7,"id":"f797063e_496a51b3","line":125,"range":{"start_line":121,"start_character":12,"end_line":125,"end_character":25},"updated":"2026-10-22 11:21:57.000000000","message":"this is beaicly the check that shoudl be in _discover_devices however weshoudl be raising a custom cybrog excption not using LookupError.","commit_id":"629e7b6cb544c46663bffd9993245d2e25d6f0ce"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"8e9203ecb2123dfdb44cc052200b3e8e013412e1","unresolved":false,"context_lines":[{"line_number":118,"context_line":"            self._discover_devices()"},{"line_number":119,"context_line":"        try:"},{"line_number":120,"context_line":"            driver \u003d self._drivers_by_controlpath[key]"},{"line_number":121,"context_line":"            if driver is None:"},{"line_number":122,"context_line":"                raise LookupError("},{"line_number":123,"context_line":"                    \u0027Multiple drivers discovered control path %s\u0027 % (key,)"},{"line_number":124,"context_line":"                )"},{"line_number":125,"context_line":"            return driver"},{"line_number":126,"context_line":"        except KeyError:"},{"line_number":127,"context_line":"            raise LookupError("},{"line_number":128,"context_line":"                \u0027No enabled driver discovered control path %s\u0027 % (key,)"}],"source_content_type":"text/x-python","patch_set":7,"id":"ec81b6e4_cc4a0efe","line":125,"range":{"start_line":121,"start_character":12,"end_line":125,"end_character":25},"in_reply_to":"f797063e_496a51b3","updated":"2026-10-27 11:43:48.000000000","message":"Done","commit_id":"629e7b6cb544c46663bffd9993245d2e25d6f0ce"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"1cb9e4a4880db56eed6bebd2f51be77e7bd41a13","unresolved":true,"context_lines":[{"line_number":124,"context_line":"                )"},{"line_number":125,"context_line":"            return driver"},{"line_number":126,"context_line":"        except KeyError:"},{"line_number":127,"context_line":"            raise LookupError("},{"line_number":128,"context_line":"                \u0027No enabled driver discovered control path %s\u0027 % (key,)"},{"line_number":129,"context_line":"            ) from None"},{"line_number":130,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"79161438_1e266195","line":127,"range":{"start_line":127,"start_character":18,"end_line":127,"end_character":29},"updated":"2026-10-22 11:21:57.000000000","message":"same here this shoudl eb a expction derived form our base expction class","commit_id":"629e7b6cb544c46663bffd9993245d2e25d6f0ce"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"8e9203ecb2123dfdb44cc052200b3e8e013412e1","unresolved":false,"context_lines":[{"line_number":124,"context_line":"                )"},{"line_number":125,"context_line":"            return driver"},{"line_number":126,"context_line":"        except KeyError:"},{"line_number":127,"context_line":"            raise LookupError("},{"line_number":128,"context_line":"                \u0027No enabled driver discovered control path %s\u0027 % (key,)"},{"line_number":129,"context_line":"            ) from None"},{"line_number":130,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"a54085de_bc2d971b","line":127,"range":{"start_line":127,"start_character":18,"end_line":127,"end_character":29},"in_reply_to":"79161438_1e266195","updated":"2026-10-27 11:43:48.000000000","message":"Done","commit_id":"629e7b6cb544c46663bffd9993245d2e25d6f0ce"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9daad5b5fea912673b5ac7180cfa8897a0a98d74","unresolved":true,"context_lines":[{"line_number":73,"context_line":"    @staticmethod"},{"line_number":74,"context_line":"    def _controlpath_key(controlpath_id):"},{"line_number":75,"context_line":"        \"\"\"Use the same key for discovered and RPC control paths.\"\"\""},{"line_number":76,"context_line":"        info \u003d controlpath_id[\u0027cpid_info\u0027]"},{"line_number":77,"context_line":"        if isinstance(info, str | bytes):"},{"line_number":78,"context_line":"            try:"},{"line_number":79,"context_line":"                info \u003d jsonutils.loads(info)"},{"line_number":80,"context_line":"            except ValueError:"},{"line_number":81,"context_line":"                pass"},{"line_number":82,"context_line":"        return ("},{"line_number":83,"context_line":"            controlpath_id[\u0027cpid_type\u0027],"},{"line_number":84,"context_line":"            jsonutils.dumps(info, sort_keys\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":8,"id":"ff4e8b71_2fe1ac7f","line":81,"range":{"start_line":76,"start_character":8,"end_line":81,"end_character":20},"updated":"2026-10-22 16:30:24.000000000","message":"this is a code smell by the way, we really shoudl not have diffetn types here\nit shoudl nto be ehter a dict or a UNION[str,bytes] but instead alwasy be one or the other.\n\nwe can proably proceed with this for now and clean i tup later.\n\nwe shoudl be using object not dicts or string here so we shoudl not need to do the de-serisation locally.\n\ni didnt see production code where this is not a vaild json object so this feels like a bug in out tests if we ever need to supprot non json values.","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"a275e140ed1e10324e632c9e2037521865f25d99","unresolved":false,"context_lines":[{"line_number":73,"context_line":"    @staticmethod"},{"line_number":74,"context_line":"    def _controlpath_key(controlpath_id):"},{"line_number":75,"context_line":"        \"\"\"Use the same key for discovered and RPC control paths.\"\"\""},{"line_number":76,"context_line":"        info \u003d controlpath_id[\u0027cpid_info\u0027]"},{"line_number":77,"context_line":"        if isinstance(info, str | bytes):"},{"line_number":78,"context_line":"            try:"},{"line_number":79,"context_line":"                info \u003d jsonutils.loads(info)"},{"line_number":80,"context_line":"            except ValueError:"},{"line_number":81,"context_line":"                pass"},{"line_number":82,"context_line":"        return ("},{"line_number":83,"context_line":"            controlpath_id[\u0027cpid_type\u0027],"},{"line_number":84,"context_line":"            jsonutils.dumps(info, sort_keys\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":8,"id":"45d16651_fd4d8676","line":81,"range":{"start_line":76,"start_character":8,"end_line":81,"end_character":20},"in_reply_to":"ff4e8b71_2fe1ac7f","updated":"2026-10-23 13:20:36.000000000","message":"Done\n\nNo longer needed in favor of helper property controlplaneID object","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9daad5b5fea912673b5ac7180cfa8897a0a98d74","unresolved":true,"context_lines":[{"line_number":101,"context_line":"        acc_list \u003d []"},{"line_number":102,"context_line":"        drivers_by_controlpath \u003d {}"},{"line_number":103,"context_line":"        for acc_driver in self.acc_drivers:"},{"line_number":104,"context_line":"            devices \u003d acc_driver.discover()"},{"line_number":105,"context_line":"            for device in devices:"},{"line_number":106,"context_line":"                key \u003d self._controlpath_key(device.controlpath_id)"},{"line_number":107,"context_line":"                if key in drivers_by_controlpath:"}],"source_content_type":"text/x-python","patch_set":8,"id":"9bdf194c_1afde9a8","line":104,"updated":"2026-10-22 16:30:24.000000000","message":"so this shoudl return a list of DriverDevice objects\n\nhttps://github.com/openstack/cyborg/blob/master/cyborg/objects/driver_objects/driver_device.py\n\nDriverDevice  has na info filed of type DriverControlPathID\nhttps://github.com/openstack/cyborg/blob/master/cyborg/objects/driver_objects/driver_device.py#L55-L57\n\nand \u0027cpid_info\u0027: object_fields.StringField(nullable\u003dFalse), is alwasy a string\n\nso we can jsut use device.controlpath_id.cpid_info directly\n\n\nwe coudl also condier mirriorign the actual ControlpathID object which has a helper propety\n```\n @property\n    def cpid_info_obj(self):\n        return jsonutils.loads(self.cpid_info)\n\n    @cpid_info_obj.setter\n    def cpid_info_obj(self, cpid_info_obj):\n        self.cpid_info \u003d jsonutils.dumps(cpid_info_obj)\n```\n\nto help amange the json load.\n\nhttps://github.com/openstack/cyborg/blob/master/cyborg/objects/control_path.py#L47C4-L54C1\n\n\nwe shoudl proably jsut add that to the driver version\n\nhttps://github.com/openstack/cyborg/blob/master/cyborg/objects/driver_objects/driver_controlpath_id.py\n\n\nthen we can remove _controlpath_key if we need it in dict form.","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"8e9203ecb2123dfdb44cc052200b3e8e013412e1","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        acc_list \u003d []"},{"line_number":102,"context_line":"        drivers_by_controlpath \u003d {}"},{"line_number":103,"context_line":"        for acc_driver in self.acc_drivers:"},{"line_number":104,"context_line":"            devices \u003d acc_driver.discover()"},{"line_number":105,"context_line":"            for device in devices:"},{"line_number":106,"context_line":"                key \u003d self._controlpath_key(device.controlpath_id)"},{"line_number":107,"context_line":"                if key in drivers_by_controlpath:"}],"source_content_type":"text/x-python","patch_set":8,"id":"7ccbb54e_d15bece0","line":104,"in_reply_to":"7ccb4340_9b39649c","updated":"2026-10-27 11:43:48.000000000","message":"Done","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"a275e140ed1e10324e632c9e2037521865f25d99","unresolved":true,"context_lines":[{"line_number":101,"context_line":"        acc_list \u003d []"},{"line_number":102,"context_line":"        drivers_by_controlpath \u003d {}"},{"line_number":103,"context_line":"        for acc_driver in self.acc_drivers:"},{"line_number":104,"context_line":"            devices \u003d acc_driver.discover()"},{"line_number":105,"context_line":"            for device in devices:"},{"line_number":106,"context_line":"                key \u003d self._controlpath_key(device.controlpath_id)"},{"line_number":107,"context_line":"                if key in drivers_by_controlpath:"}],"source_content_type":"text/x-python","patch_set":8,"id":"7ccb4340_9b39649c","line":104,"in_reply_to":"9bdf194c_1afde9a8","updated":"2026-10-23 13:20:36.000000000","message":"Yes, mirroring the actual controlplaneID object would be much better.\n\nI have also dropped  remove _controlpath_key.","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9daad5b5fea912673b5ac7180cfa8897a0a98d74","unresolved":true,"context_lines":[{"line_number":123,"context_line":"        InvalidConfiguration if no enabled driver reports the path."},{"line_number":124,"context_line":"        \"\"\""},{"line_number":125,"context_line":"        key \u003d self._controlpath_key(controlpath_id)"},{"line_number":126,"context_line":"        if key not in self._drivers_by_controlpath:"},{"line_number":127,"context_line":"            self._discover_devices()"},{"line_number":128,"context_line":"        if key not in self._drivers_by_controlpath:"},{"line_number":129,"context_line":"            raise exception.InvalidConfiguration("},{"line_number":130,"context_line":"                reason\u003d\u0027No enabled driver discovered control path %s\u0027 % (key,)"}],"source_content_type":"text/x-python","patch_set":8,"id":"834a2714_e7b30232","line":127,"range":{"start_line":126,"start_character":0,"end_line":127,"end_character":36},"updated":"2026-10-22 16:30:24.000000000","message":"we shoudl not be triggerting discover again here\n\nthat shoudl really only happen durign startup or the perodic.","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"a275e140ed1e10324e632c9e2037521865f25d99","unresolved":true,"context_lines":[{"line_number":123,"context_line":"        InvalidConfiguration if no enabled driver reports the path."},{"line_number":124,"context_line":"        \"\"\""},{"line_number":125,"context_line":"        key \u003d self._controlpath_key(controlpath_id)"},{"line_number":126,"context_line":"        if key not in self._drivers_by_controlpath:"},{"line_number":127,"context_line":"            self._discover_devices()"},{"line_number":128,"context_line":"        if key not in self._drivers_by_controlpath:"},{"line_number":129,"context_line":"            raise exception.InvalidConfiguration("},{"line_number":130,"context_line":"                reason\u003d\u0027No enabled driver discovered control path %s\u0027 % (key,)"}],"source_content_type":"text/x-python","patch_set":8,"id":"cc0119f5_d69e6c8f","line":127,"range":{"start_line":126,"start_character":0,"end_line":127,"end_character":36},"in_reply_to":"834a2714_e7b30232","updated":"2026-10-23 13:20:36.000000000","message":"Added at startup https://review.opendev.org/c/openstack/cyborg/+/998004/9/cyborg/agent/manager.py","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"8e9203ecb2123dfdb44cc052200b3e8e013412e1","unresolved":false,"context_lines":[{"line_number":123,"context_line":"        InvalidConfiguration if no enabled driver reports the path."},{"line_number":124,"context_line":"        \"\"\""},{"line_number":125,"context_line":"        key \u003d self._controlpath_key(controlpath_id)"},{"line_number":126,"context_line":"        if key not in self._drivers_by_controlpath:"},{"line_number":127,"context_line":"            self._discover_devices()"},{"line_number":128,"context_line":"        if key not in self._drivers_by_controlpath:"},{"line_number":129,"context_line":"            raise exception.InvalidConfiguration("},{"line_number":130,"context_line":"                reason\u003d\u0027No enabled driver discovered control path %s\u0027 % (key,)"}],"source_content_type":"text/x-python","patch_set":8,"id":"65914f61_5b5e683a","line":127,"range":{"start_line":126,"start_character":0,"end_line":127,"end_character":36},"in_reply_to":"cc0119f5_d69e6c8f","updated":"2026-10-27 11:43:48.000000000","message":"Done","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"20cf3334db6efa03421d6b3d8785812d6bf61d05","unresolved":true,"context_lines":[{"line_number":140,"context_line":"        owners \u003d {}"},{"line_number":141,"context_line":"        for driver_name, devices in device_lists.items():"},{"line_number":142,"context_line":"            for device in devices:"},{"line_number":143,"context_line":"                controlpath \u003d device.controlpath_id"},{"line_number":144,"context_line":"                key \u003d ("},{"line_number":145,"context_line":"                    controlpath.cpid_type,"},{"line_number":146,"context_line":"                    jsonutils.dumps(controlpath.cpid_info_obj, sort_keys\u003dTrue),"},{"line_number":147,"context_line":"                )"},{"line_number":148,"context_line":"                owners[key] \u003d self.acc_drivers[driver_name]"},{"line_number":149,"context_line":"            devices_to_report.extend(devices)"},{"line_number":150,"context_line":"        self._drivers_by_controlpath \u003d owners"}],"source_content_type":"text/x-python","patch_set":11,"id":"3941da1a_b5c90dd0","line":147,"range":{"start_line":143,"start_character":16,"end_line":147,"end_character":17},"updated":"2026-10-28 10:28:54.000000000","message":"this will work for now but as an aside i want to revisit how we identify device within a contolpaht id to be able to provide a stable id we can culation a the drvier seide that will work for any device.\n\ni have a few ideas of how to do that but i dont want the jsonutils. dumps of controlpath.cpid_info_obj to be part of that in the long term\n \nmy currnet tought is each we will have a gallback in the obejct with a default \nvalue which is just  `jsonutils.dumps(controlpath.cpid_info_obj, sort_keys\u003dTrue)`\n\nor perhaps the entire key tuple\n\nand then driver when construction the controlpath_id may supply that to project out only the parts that form the \"address\" for that driver\u0027s bus\n\ni need to think about this more but we are workign around a poor data model here adn we can make this better with a littl eoguht but i dont want to do that yet.\n\n\nwith that said i was expecting you to use \n\naddr \u003d self._canonical_pci_address(dev.controlpath_id.cpid_info) or simielr here as the key insterad.\n\nthe problem with tha tis it assuems all manged device are pci devices.\n\ni have noted before that that is ture of every device we currently track btu not i nteh long term.\n\n\nthe cleanse way  to do this in the short term woudl be to move\n```\n    @staticmethod\n    def _canonical_pci_address(cpid_info):\n        \"\"\"Return a serialization-independent BDF string for cpid_info.\n\n        Drivers serialize cpid_info differently (key order, spacing), so\n        comparing the raw JSON would miss duplicates describing the same\n        device. Rebuild the canonical domain:bus:device.function form. Fall\n        back to the raw value if cpid_info is not the expected BDF JSON.\n        \"\"\"\n        try:\n            info \u003d jsonutils.loads(cpid_info)\n            return \u0027%(domain)s:%(bus)s:%(device)s.%(function)s\u0027 % info\n        except (ValueError, TypeError, KeyError):\n            return cpid_info\n```\nto the contolpath_id class and provide an adress property that just calls that\nthen use that as the key. we do not need the cpid_type in the key\n\nso this woudl then just become \nkey \u003d device.controlpath_id.address\n\nand you can update  check_duplicate_devices from \n```\naddr \u003d self._canonical_pci_address(dev.controlpath_id.cpid_info)\n```\nto \n```\naddr \u003d dev.controlpath_id.cpid_info.address\n```\n\nby using a propety liek this we ca make _canonical_pci_address replaceable\nwith a differnt _canonical_\u003cbus\u003e_address function that the driver could suppy or we could tiy the adress funtion to the cpid_type\n\nso if we have generic block devices vai an lvm driver or similar in the futre we coudl have have a cpid_type for block devices that woudl cause the adress property to all _canonical_block_address instead.\n\nthe impoant pat is the resouce tracker shoudl not knwo or care that the adress is a pci adress, it shoudl care that 2 drivers are retuning the same adress regardless of the format.\n\ndoes that make sense\n\nim trying to establish a abstaction between the resouce tracker, the drivers it manages and the device/contol path obejct that they return.","commit_id":"8715066e4f3efe6342c0a111f5c1fdafcad45bbb"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"5a61d563da0972616a5554c3ad6a222550ab42b4","unresolved":true,"context_lines":[{"line_number":140,"context_line":"        owners \u003d {}"},{"line_number":141,"context_line":"        for driver_name, devices in device_lists.items():"},{"line_number":142,"context_line":"            for device in devices:"},{"line_number":143,"context_line":"                controlpath \u003d device.controlpath_id"},{"line_number":144,"context_line":"                key \u003d ("},{"line_number":145,"context_line":"                    controlpath.cpid_type,"},{"line_number":146,"context_line":"                    jsonutils.dumps(controlpath.cpid_info_obj, sort_keys\u003dTrue),"},{"line_number":147,"context_line":"                )"},{"line_number":148,"context_line":"                owners[key] \u003d self.acc_drivers[driver_name]"},{"line_number":149,"context_line":"            devices_to_report.extend(devices)"},{"line_number":150,"context_line":"        self._drivers_by_controlpath \u003d owners"}],"source_content_type":"text/x-python","patch_set":11,"id":"9deec587_9181c444","line":147,"range":{"start_line":143,"start_character":16,"end_line":147,"end_character":17},"in_reply_to":"3941da1a_b5c90dd0","updated":"2026-10-28 12:13:14.000000000","message":"+1, currently the controlpath id object exposes a weak interface, that makes it not obvious how the address is stored. An abstraction like the one suggested here would be a great improvement for the future.","commit_id":"8715066e4f3efe6342c0a111f5c1fdafcad45bbb"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"5a61d563da0972616a5554c3ad6a222550ab42b4","unresolved":true,"context_lines":[{"line_number":157,"context_line":"        Raise InvalidConfiguration if no enabled driver reports the path."},{"line_number":158,"context_line":"        \"\"\""},{"line_number":159,"context_line":"        key \u003d ("},{"line_number":160,"context_line":"            controlpath_id[\u0027cpid_type\u0027],"},{"line_number":161,"context_line":"            jsonutils.dumps(controlpath_id[\u0027cpid_info\u0027], sort_keys\u003dTrue),"},{"line_number":162,"context_line":"        )"},{"line_number":163,"context_line":"        selected_driver \u003d self._drivers_by_controlpath.get(key)"}],"source_content_type":"text/x-python","patch_set":11,"id":"2258d8ef_7ab9eb22","line":160,"updated":"2026-10-28 12:13:14.000000000","message":"if I am understanding correctly, this `controlpath_id` is an instance of https://github.com/openstack/cyborg/blob/32caf7f39ab7c4bb523160a4331b1d59308b98c0/cyborg/objects/control_path.py#L30 while the one in discover_devices is an instance of the driver_objects ControlpathID https://github.com/openstack/cyborg/blob/32caf7f39ab7c4bb523160a4331b1d59308b98c0/cyborg/objects/driver_objects/driver_controlpath_id.py#L24 so the key could be constructed using the `cpid_info_obj` property here as well. I was going to suggest to introduce a new property to avoid constructing the same tuple in two places here, but I\u0027m not sure it\u0027s worth it to have to introduce an object version bump for an intermediate solution before doing a well thought solution like Sean proposed above","commit_id":"8715066e4f3efe6342c0a111f5c1fdafcad45bbb"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"c235d09abb25cd0c724c62c045e067a2ed587768","unresolved":true,"context_lines":[{"line_number":157,"context_line":"        Raise InvalidConfiguration if no enabled driver reports the path."},{"line_number":158,"context_line":"        \"\"\""},{"line_number":159,"context_line":"        key \u003d ("},{"line_number":160,"context_line":"            controlpath_id[\u0027cpid_type\u0027],"},{"line_number":161,"context_line":"            jsonutils.dumps(controlpath_id[\u0027cpid_info\u0027], sort_keys\u003dTrue),"},{"line_number":162,"context_line":"        )"},{"line_number":163,"context_line":"        selected_driver \u003d self._drivers_by_controlpath.get(key)"}],"source_content_type":"text/x-python","patch_set":11,"id":"4cf72c78_121c2231","line":160,"in_reply_to":"2258d8ef_7ab9eb22","updated":"2026-10-28 14:40:45.000000000","message":"Thanks, Joan. I traced the value passed to get_driver_for_controlpath():\n\n- For discover_devices, you are correct. device.controlpath_id is a DriverControlPathID, so cpid_info_obj is available on that object.\n\n- for controlpatj_id, The deployables program()(https://github.com/openstack/cyborg/blob/32caf7f39ab7c4bb523160a4331b1d59308b98c0/cyborg/api/controllers/v2/deployables.py#L156-L168) endpoint and \n\nFPGA ARQ _do_programming()(https://github.com/openstack/cyborg/blob/32caf7f39ab7c4bb523160a4331b1d59308b98c0/cyborg/objects/extarq/fpga_ext_arq.py#L248-L272) both take controlpath_id from Deployable.get_cpid_list(context)[0](https://github.com/openstack/cyborg/blob/32caf7f39ab7c4bb523160a4331b1d59308b98c0/cyborg/objects/deployable.py#L173-L181).\n\nThen decode cpid_info, and pass it through AgentAPI.fpga_program(). \n\nget_cpid_list() queries database dbapi.control_path_get_by_filters rows; get_cpid_list() returns database models.ControlpathID(https://github.com/openstack/cyborg/blob/32caf7f39ab7c4bb523160a4331b1d59308b98c0/cyborg/db/sqlalchemy/models.py#L159-L175) rows, which do not have a cpid_info_obj property.\n\n patchset 12 constructs a DriverControlPathID from the incoming fields in get_driver_for_controlpath(). The lookup and discovery then both use DriverControlPathID.address for the key. This removes the duplicate key construction you identified.\n \nI hope it helps.","commit_id":"8715066e4f3efe6342c0a111f5c1fdafcad45bbb"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"afbb726582d300b17c70b9e168b5d89649d0fd95","unresolved":true,"context_lines":[{"line_number":157,"context_line":"        Raise InvalidConfiguration if no enabled driver reports the path."},{"line_number":158,"context_line":"        \"\"\""},{"line_number":159,"context_line":"        key \u003d ("},{"line_number":160,"context_line":"            controlpath_id[\u0027cpid_type\u0027],"},{"line_number":161,"context_line":"            jsonutils.dumps(controlpath_id[\u0027cpid_info\u0027], sort_keys\u003dTrue),"},{"line_number":162,"context_line":"        )"},{"line_number":163,"context_line":"        selected_driver \u003d self._drivers_by_controlpath.get(key)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3fefbee3_a79c69fa","line":160,"in_reply_to":"4cf72c78_121c2231","updated":"2026-10-28 16:23:47.000000000","message":"... https://github.com/openstack/cyborg/blob/master/cyborg/objects/deployable.py#L175-L176\n\nso we shoud not have the the db content here.\nthat a major violation of our rpc rules\n\nyou are only allowed to send OVO over teh rpc bus\n\nso here\n\nhttps://github.com/openstack/cyborg/blob/32caf7f39ab7c4bb523160a4331b1d59308b98c0/cyborg/api/controllers/v2/deployables.py#L156-L168\n\ncpid_list \u003d obj_dep.get_cpid_list(pecan.request.context) shoudl be returning a list of ControlpathID obejcts. \n\nhttps://github.com/openstack/cyborg/blob/master/cyborg/objects/control_path.py\n\nit violate the rpc rules to seriase dict like this and send them over teh rpc bus so this is a very sever bug.\n\n\nthe only type that are allowed to be passed to an rpc method are scaler python types (bool,None,number and string) or OVOs\n\nsending a dictionay constucted form a db row is not allowed.\n\nwe shoudl fix this as  a sperate bug fix.\ndoing tha twithout breaking upgades is problmaitc without a new rpc version as changing the type of a parmter or adding a new parmater requires an rpc versoin bump.\n\nlets track this as a seperat bug to fix after we have the ovo inderiction api.","commit_id":"8715066e4f3efe6342c0a111f5c1fdafcad45bbb"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"099a08f9f2f8098d6e82c9bf133c19dab29dcef7","unresolved":false,"context_lines":[{"line_number":157,"context_line":"        Raise InvalidConfiguration if no enabled driver reports the path."},{"line_number":158,"context_line":"        \"\"\""},{"line_number":159,"context_line":"        key \u003d ("},{"line_number":160,"context_line":"            controlpath_id[\u0027cpid_type\u0027],"},{"line_number":161,"context_line":"            jsonutils.dumps(controlpath_id[\u0027cpid_info\u0027], sort_keys\u003dTrue),"},{"line_number":162,"context_line":"        )"},{"line_number":163,"context_line":"        selected_driver \u003d self._drivers_by_controlpath.get(key)"}],"source_content_type":"text/x-python","patch_set":11,"id":"926b5cfc_4588dbac","line":160,"in_reply_to":"4cf72c78_121c2231","updated":"2026-10-28 16:54:16.000000000","message":"thanks that helps, I thought we were getting an API object, not the db result. Your solution is the best short term one I think","commit_id":"8715066e4f3efe6342c0a111f5c1fdafcad45bbb"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"ff22fcb8d428af37bdb4674aee3ff897913cdf52","unresolved":false,"context_lines":[{"line_number":157,"context_line":"        Raise InvalidConfiguration if no enabled driver reports the path."},{"line_number":158,"context_line":"        \"\"\""},{"line_number":159,"context_line":"        key \u003d ("},{"line_number":160,"context_line":"            controlpath_id[\u0027cpid_type\u0027],"},{"line_number":161,"context_line":"            jsonutils.dumps(controlpath_id[\u0027cpid_info\u0027], sort_keys\u003dTrue),"},{"line_number":162,"context_line":"        )"},{"line_number":163,"context_line":"        selected_driver \u003d self._drivers_by_controlpath.get(key)"}],"source_content_type":"text/x-python","patch_set":11,"id":"fb3268c4_94040289","line":160,"in_reply_to":"926b5cfc_4588dbac","updated":"2026-10-29 10:27:47.000000000","message":"Created a bug report https://bugs.launchpad.net/openstack-cyborg/+bug/2172447 to track Deployable.get_cpid_list() returns raw DB rows issue.","commit_id":"8715066e4f3efe6342c0a111f5c1fdafcad45bbb"}],"cyborg/objects/driver_objects/driver_controlpath_id.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"c1e869e640f57ea0f540477e04cf5134774c4b1f","unresolved":true,"context_lines":[{"line_number":56,"context_line":"    @property"},{"line_number":57,"context_line":"    def address(self):"},{"line_number":58,"context_line":"        \"\"\"Return a hashable address for the device on this control path.\"\"\""},{"line_number":59,"context_line":"        return self._canonical_pci_address(self.cpid_info)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def create(self, context, device_id):"},{"line_number":62,"context_line":"        \"\"\"Create a driver-side ControlPathID for drivers. Call"}],"source_content_type":"text/x-python","patch_set":12,"id":"54eb46c3_44ff7822","line":59,"range":{"start_line":59,"start_character":48,"end_line":59,"end_character":57},"updated":"2026-10-28 13:43:52.000000000","message":"nit: you shoudl pass self.cpid_info_obj adn remove teh use of jsonutils.loads(cpid_info) in _canonical_pci_address","commit_id":"1d04bdfcc0da3ab98ec820cef061142beec4f829"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"7bb120d0215eeb337b22225d76945b05459a829d","unresolved":false,"context_lines":[{"line_number":56,"context_line":"    @property"},{"line_number":57,"context_line":"    def address(self):"},{"line_number":58,"context_line":"        \"\"\"Return a hashable address for the device on this control path.\"\"\""},{"line_number":59,"context_line":"        return self._canonical_pci_address(self.cpid_info)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def create(self, context, device_id):"},{"line_number":62,"context_line":"        \"\"\"Create a driver-side ControlPathID for drivers. Call"}],"source_content_type":"text/x-python","patch_set":12,"id":"13ab009b_91052171","line":59,"range":{"start_line":59,"start_character":48,"end_line":59,"end_character":57},"in_reply_to":"54eb46c3_44ff7822","updated":"2026-10-28 15:22:15.000000000","message":"Done, kept the exception for catching incomplete PCI json parsing.","commit_id":"1d04bdfcc0da3ab98ec820cef061142beec4f829"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"afbb726582d300b17c70b9e168b5d89649d0fd95","unresolved":true,"context_lines":[{"line_number":54,"context_line":"        \"\"\"Return a hashable address for the device on this control path.\"\"\""},{"line_number":55,"context_line":"        try:"},{"line_number":56,"context_line":"            return self._canonical_pci_address(self.cpid_info_obj)"},{"line_number":57,"context_line":"        except (ValueError, TypeError, KeyError):"},{"line_number":58,"context_line":"            return self.cpid_info"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    def create(self, context, device_id):"},{"line_number":61,"context_line":"        \"\"\"Create a driver-side ControlPathID for drivers. Call"}],"source_content_type":"text/x-python","patch_set":14,"id":"8d076e77_9396281c","line":58,"range":{"start_line":57,"start_character":6,"end_line":58,"end_character":33},"updated":"2026-10-28 16:23:47.000000000","message":"i think we will have to come back to this as i dont think this is correct long term but we can likely live with it for now.","commit_id":"619ef356ebcbfd90db82f5cc8174c11c529e1977"}],"cyborg/tests/unit/agent/test_manager.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"8e4ebc533459bec4a636563aa0cbf20b489fb1e4","unresolved":true,"context_lines":[{"line_number":48,"context_line":"        mock_remove \u003d self.useFixture("},{"line_number":49,"context_line":"            fixtures.MockPatch(\u0027cyborg.agent.manager.os.remove\u0027, autospec\u003dTrue)"},{"line_number":50,"context_line":"        ).mock"},{"line_number":51,"context_line":"        mock_tempfile \u003d self.useFixture("},{"line_number":52,"context_line":"            fixtures.MockPatch("},{"line_number":53,"context_line":"                \u0027cyborg.agent.manager.tempfile.NamedTemporaryFile\u0027,"},{"line_number":54,"context_line":"                autospec\u003dTrue,"},{"line_number":55,"context_line":"            )"},{"line_number":56,"context_line":"        ).mock"},{"line_number":57,"context_line":"        self.placement_mock.get.return_value.json.return_value \u003d {"},{"line_number":58,"context_line":"            \u0027resource_providers\u0027: [{\u0027uuid\u0027: \u0027test-uuid\u0027}]"},{"line_number":59,"context_line":"        }"},{"line_number":60,"context_line":"        am \u003d self._create_manager_with_mocks()"},{"line_number":61,"context_line":"        driver \u003d am._rt.get_driver_for_controlpath.return_value"},{"line_number":62,"context_line":"        driver.update.return_value \u003d True"},{"line_number":63,"context_line":"        mock_tempfile.return_value.name \u003d \u0027/tmp/bitstream.gbs\u0027"},{"line_number":64,"context_line":"        controlpath \u003d {\u0027cpid_type\u0027: \u0027PCI\u0027, \u0027cpid_info\u0027: {\u0027bus\u0027: \u00270c\u0027}}"},{"line_number":65,"context_line":"        image_uuid \u003d \u0027e16db3c5-2dca-4c03-b053-0953870c0001\u0027"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"4a09c9f9_198a3f76","line":63,"range":{"start_line":51,"start_character":0,"end_line":63,"end_character":62},"updated":"2026-10-22 16:48:21.000000000","message":"you shoudl not be hardcodeing the retrun value of a tempfile ever.\n\nthat woudl cause test failure if we ran to test that used the saem value\n\nwhen we need to use temperoy fiels or dirs we use \n\nhttps://github.com/testing-cabal/fixtures/blob/master/fixtures/_fixtures/tempdir.py\n\nwhich we arelady enabdl via the db fixture\n\nhttps://github.com/openstack/cyborg/blob/18dd5be607aa292198efb9978f2da22cdce6b50e/cyborg/tests/local_fixtures/db_fixture.py#L47\nthat shoudl proably be moved to \n\nhttps://github.com/openstack/cyborg/blob/18dd5be607aa292198efb9978f2da22cdce6b50e/cyborg/tests/base.py#L51\n\nbut you shoudl never mock an import of another mouled\nhttps://github.com/openstack/cyborg/blob/18dd5be607aa292198efb9978f2da22cdce6b50e/cyborg/agent/manager.py#L15\n\nlike this.\n\nwe only ever mock the orginal module.","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"a275e140ed1e10324e632c9e2037521865f25d99","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        mock_remove \u003d self.useFixture("},{"line_number":49,"context_line":"            fixtures.MockPatch(\u0027cyborg.agent.manager.os.remove\u0027, autospec\u003dTrue)"},{"line_number":50,"context_line":"        ).mock"},{"line_number":51,"context_line":"        mock_tempfile \u003d self.useFixture("},{"line_number":52,"context_line":"            fixtures.MockPatch("},{"line_number":53,"context_line":"                \u0027cyborg.agent.manager.tempfile.NamedTemporaryFile\u0027,"},{"line_number":54,"context_line":"                autospec\u003dTrue,"},{"line_number":55,"context_line":"            )"},{"line_number":56,"context_line":"        ).mock"},{"line_number":57,"context_line":"        self.placement_mock.get.return_value.json.return_value \u003d {"},{"line_number":58,"context_line":"            \u0027resource_providers\u0027: [{\u0027uuid\u0027: \u0027test-uuid\u0027}]"},{"line_number":59,"context_line":"        }"},{"line_number":60,"context_line":"        am \u003d self._create_manager_with_mocks()"},{"line_number":61,"context_line":"        driver \u003d am._rt.get_driver_for_controlpath.return_value"},{"line_number":62,"context_line":"        driver.update.return_value \u003d True"},{"line_number":63,"context_line":"        mock_tempfile.return_value.name \u003d \u0027/tmp/bitstream.gbs\u0027"},{"line_number":64,"context_line":"        controlpath \u003d {\u0027cpid_type\u0027: \u0027PCI\u0027, \u0027cpid_info\u0027: {\u0027bus\u0027: \u00270c\u0027}}"},{"line_number":65,"context_line":"        image_uuid \u003d \u0027e16db3c5-2dca-4c03-b053-0953870c0001\u0027"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"205fb7e1_38367ba6","line":63,"range":{"start_line":51,"start_character":0,"end_line":63,"end_character":62},"in_reply_to":"4a09c9f9_198a3f76","updated":"2026-10-23 13:20:36.000000000","message":"Done\n\nGood point about tempfile.\n\nNow the test uses `self.useFixture(fixtures.NestedTempfile())`.\n\nIt also drop the mocking of the import of another module.","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"8e4ebc533459bec4a636563aa0cbf20b489fb1e4","unresolved":true,"context_lines":[{"line_number":68,"context_line":"            am.fpga_program(None, controlpath, image_uuid, \u0027unused-driver\u0027)"},{"line_number":69,"context_line":"        )"},{"line_number":70,"context_line":"        am.image_api.download.assert_called_once_with("},{"line_number":71,"context_line":"            None, image_uuid, dest_path\u003d\u0027/tmp/bitstream.gbs\u0027"},{"line_number":72,"context_line":"        )"},{"line_number":73,"context_line":"        am._rt.get_driver_for_controlpath.assert_called_once_with(controlpath)"},{"line_number":74,"context_line":"        driver.update.assert_called_once_with("}],"source_content_type":"text/x-python","patch_set":8,"id":"ae5bc561_a7f15f47","line":71,"range":{"start_line":71,"start_character":40,"end_line":71,"end_character":60},"updated":"2026-10-22 16:48:21.000000000","message":"mock.ANY","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"a275e140ed1e10324e632c9e2037521865f25d99","unresolved":false,"context_lines":[{"line_number":68,"context_line":"            am.fpga_program(None, controlpath, image_uuid, \u0027unused-driver\u0027)"},{"line_number":69,"context_line":"        )"},{"line_number":70,"context_line":"        am.image_api.download.assert_called_once_with("},{"line_number":71,"context_line":"            None, image_uuid, dest_path\u003d\u0027/tmp/bitstream.gbs\u0027"},{"line_number":72,"context_line":"        )"},{"line_number":73,"context_line":"        am._rt.get_driver_for_controlpath.assert_called_once_with(controlpath)"},{"line_number":74,"context_line":"        driver.update.assert_called_once_with("}],"source_content_type":"text/x-python","patch_set":8,"id":"bcf9c1f2_e691871e","line":71,"range":{"start_line":71,"start_character":40,"end_line":71,"end_character":60},"in_reply_to":"ae5bc561_a7f15f47","updated":"2026-10-23 13:20:36.000000000","message":"Done","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"8e4ebc533459bec4a636563aa0cbf20b489fb1e4","unresolved":true,"context_lines":[{"line_number":72,"context_line":"        )"},{"line_number":73,"context_line":"        am._rt.get_driver_for_controlpath.assert_called_once_with(controlpath)"},{"line_number":74,"context_line":"        driver.update.assert_called_once_with("},{"line_number":75,"context_line":"            controlpath, \u0027/tmp/bitstream.gbs\u0027"},{"line_number":76,"context_line":"        )"},{"line_number":77,"context_line":"        mock_remove.assert_called_once_with(\u0027/tmp/bitstream.gbs\u0027)"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1b135c1f_9f598301","line":75,"range":{"start_line":75,"start_character":25,"end_line":75,"end_character":45},"updated":"2026-10-22 16:48:21.000000000","message":"mock.ANY","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"a275e140ed1e10324e632c9e2037521865f25d99","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        )"},{"line_number":73,"context_line":"        am._rt.get_driver_for_controlpath.assert_called_once_with(controlpath)"},{"line_number":74,"context_line":"        driver.update.assert_called_once_with("},{"line_number":75,"context_line":"            controlpath, \u0027/tmp/bitstream.gbs\u0027"},{"line_number":76,"context_line":"        )"},{"line_number":77,"context_line":"        mock_remove.assert_called_once_with(\u0027/tmp/bitstream.gbs\u0027)"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"c749f472_75035d98","line":75,"range":{"start_line":75,"start_character":25,"end_line":75,"end_character":45},"in_reply_to":"1b135c1f_9f598301","updated":"2026-10-23 13:20:36.000000000","message":"Done","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"8e4ebc533459bec4a636563aa0cbf20b489fb1e4","unresolved":true,"context_lines":[{"line_number":74,"context_line":"        driver.update.assert_called_once_with("},{"line_number":75,"context_line":"            controlpath, \u0027/tmp/bitstream.gbs\u0027"},{"line_number":76,"context_line":"        )"},{"line_number":77,"context_line":"        mock_remove.assert_called_once_with(\u0027/tmp/bitstream.gbs\u0027)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    @mock.patch(\u0027cyborg.agent.manager.CONF\u0027)"},{"line_number":80,"context_line":"    def test_get_resource_provider_name_primary_success(self, mock_conf):"}],"source_content_type":"text/x-python","patch_set":8,"id":"416f1a25_0e47bab3","line":77,"updated":"2026-10-22 16:48:21.000000000","message":"```suggestion\n        mock_remove.assert_called_once()\n```","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"a275e140ed1e10324e632c9e2037521865f25d99","unresolved":true,"context_lines":[{"line_number":74,"context_line":"        driver.update.assert_called_once_with("},{"line_number":75,"context_line":"            controlpath, \u0027/tmp/bitstream.gbs\u0027"},{"line_number":76,"context_line":"        )"},{"line_number":77,"context_line":"        mock_remove.assert_called_once_with(\u0027/tmp/bitstream.gbs\u0027)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    @mock.patch(\u0027cyborg.agent.manager.CONF\u0027)"},{"line_number":80,"context_line":"    def test_get_resource_provider_name_primary_success(self, mock_conf):"}],"source_content_type":"text/x-python","patch_set":8,"id":"426ceb0a_8b4e2c92","line":77,"in_reply_to":"416f1a25_0e47bab3","updated":"2026-10-23 13:20:36.000000000","message":"It is no longer needed as. As we are using temp file fixture and no longer mocking the imported module.","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"c1e869e640f57ea0f540477e04cf5134774c4b1f","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        driver.update.assert_called_once_with("},{"line_number":75,"context_line":"            controlpath, \u0027/tmp/bitstream.gbs\u0027"},{"line_number":76,"context_line":"        )"},{"line_number":77,"context_line":"        mock_remove.assert_called_once_with(\u0027/tmp/bitstream.gbs\u0027)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    @mock.patch(\u0027cyborg.agent.manager.CONF\u0027)"},{"line_number":80,"context_line":"    def test_get_resource_provider_name_primary_success(self, mock_conf):"}],"source_content_type":"text/x-python","patch_set":8,"id":"c1183981_c290c05b","line":77,"in_reply_to":"426ceb0a_8b4e2c92","updated":"2026-10-28 13:43:52.000000000","message":"Acknowledged","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"}],"cyborg/tests/unit/agent/test_resource_tracker.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9daad5b5fea912673b5ac7180cfa8897a0a98d74","unresolved":true,"context_lines":[{"line_number":85,"context_line":"    def test_each_device_controlpath_maps_to_its_driver(self):"},{"line_number":86,"context_line":"        fake_driver \u003d fake.FakeDriver()"},{"line_number":87,"context_line":"        fpga \u003d fake_driver.discover()[0]"},{"line_number":88,"context_line":"        gpu \u003d fake_driver.discover()[0]"},{"line_number":89,"context_line":"        gpu.type \u003d constants.DEVICE_GPU"},{"line_number":90,"context_line":"        gpu.controlpath_id.cpid_info \u003d ("},{"line_number":91,"context_line":"            \u0027{\"domain\":\"0000\",\"bus\":\"0d\",\"device\":\"00\",\"function\":\"0\"}\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"766d6065_05016013","line":88,"range":{"start_line":88,"start_character":14,"end_line":88,"end_character":39},"updated":"2026-10-22 16:30:24.000000000","message":"this is depending on discover  creating a new python object on each call implictitly otherwise the updates you make belovw to set the gpu type and contople htat id woudl apply to the both fpga and gpu.\n\nhttps://github.com/openstack/cyborg/blob/master/cyborg/accelerator/drivers/fake.py#L107-L119\n\nit does but it woudl be cleaner jsut create a driver_device object directly\nor make this explcit by doing gpu \u003d copy.deepcopy(fpga)","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"a275e140ed1e10324e632c9e2037521865f25d99","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    def test_each_device_controlpath_maps_to_its_driver(self):"},{"line_number":86,"context_line":"        fake_driver \u003d fake.FakeDriver()"},{"line_number":87,"context_line":"        fpga \u003d fake_driver.discover()[0]"},{"line_number":88,"context_line":"        gpu \u003d fake_driver.discover()[0]"},{"line_number":89,"context_line":"        gpu.type \u003d constants.DEVICE_GPU"},{"line_number":90,"context_line":"        gpu.controlpath_id.cpid_info \u003d ("},{"line_number":91,"context_line":"            \u0027{\"domain\":\"0000\",\"bus\":\"0d\",\"device\":\"00\",\"function\":\"0\"}\u0027"}],"source_content_type":"text/x-python","patch_set":8,"id":"ce7c3cf1_d42df881","line":88,"range":{"start_line":88,"start_character":14,"end_line":88,"end_character":39},"in_reply_to":"766d6065_05016013","updated":"2026-10-23 13:20:36.000000000","message":"Done, going with ` gpu \u003d copy.deepcopy(fpga)`","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9daad5b5fea912673b5ac7180cfa8897a0a98d74","unresolved":true,"context_lines":[{"line_number":101,"context_line":"                self.rt.conductor_api, \u0027report_data\u0027, autospec\u003dTrue"},{"line_number":102,"context_line":"            ) as report,"},{"line_number":103,"context_line":"        ):"},{"line_number":104,"context_line":"            self.rt.update_usage(None)"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        report.assert_called_once_with(None, self.host, mock.ANY)"},{"line_number":107,"context_line":"        self.assertEqual("}],"source_content_type":"text/x-python","patch_set":8,"id":"2d705051_03c8240e","line":104,"range":{"start_line":104,"start_character":33,"end_line":104,"end_character":37},"updated":"2026-10-22 16:30:24.000000000","message":"self.context https://github.com/openstack/cyborg/blob/master/cyborg/tests/base.py#L48","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"a275e140ed1e10324e632c9e2037521865f25d99","unresolved":false,"context_lines":[{"line_number":101,"context_line":"                self.rt.conductor_api, \u0027report_data\u0027, autospec\u003dTrue"},{"line_number":102,"context_line":"            ) as report,"},{"line_number":103,"context_line":"        ):"},{"line_number":104,"context_line":"            self.rt.update_usage(None)"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        report.assert_called_once_with(None, self.host, mock.ANY)"},{"line_number":107,"context_line":"        self.assertEqual("}],"source_content_type":"text/x-python","patch_set":8,"id":"94cc86ea_ffacccc4","line":104,"range":{"start_line":104,"start_character":33,"end_line":104,"end_character":37},"in_reply_to":"2d705051_03c8240e","updated":"2026-10-23 13:20:36.000000000","message":"Done","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9daad5b5fea912673b5ac7180cfa8897a0a98d74","unresolved":true,"context_lines":[{"line_number":103,"context_line":"        ):"},{"line_number":104,"context_line":"            self.rt.update_usage(None)"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        report.assert_called_once_with(None, self.host, mock.ANY)"},{"line_number":107,"context_line":"        self.assertEqual("},{"line_number":108,"context_line":"            [constants.DEVICE_GPU, constants.DEVICE_FPGA],"},{"line_number":109,"context_line":"            [device.type for device in report.call_args.args[2]],"}],"source_content_type":"text/x-python","patch_set":8,"id":"510d0747_2fe16cb7","line":106,"range":{"start_line":106,"start_character":39,"end_line":106,"end_character":43},"updated":"2026-10-22 16:30:24.000000000","message":"self.context","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"a275e140ed1e10324e632c9e2037521865f25d99","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        ):"},{"line_number":104,"context_line":"            self.rt.update_usage(None)"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        report.assert_called_once_with(None, self.host, mock.ANY)"},{"line_number":107,"context_line":"        self.assertEqual("},{"line_number":108,"context_line":"            [constants.DEVICE_GPU, constants.DEVICE_FPGA],"},{"line_number":109,"context_line":"            [device.type for device in report.call_args.args[2]],"}],"source_content_type":"text/x-python","patch_set":8,"id":"329b8ccc_12811f2a","line":106,"range":{"start_line":106,"start_character":39,"end_line":106,"end_character":43},"in_reply_to":"510d0747_2fe16cb7","updated":"2026-10-23 13:20:36.000000000","message":"Done","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9daad5b5fea912673b5ac7180cfa8897a0a98d74","unresolved":true,"context_lines":[{"line_number":120,"context_line":"    def test_non_json_controlpath_is_reported(self):"},{"line_number":121,"context_line":"        fake_driver \u003d fake.FakeDriver()"},{"line_number":122,"context_line":"        device \u003d fake_driver.discover()[0]"},{"line_number":123,"context_line":"        device.controlpath_id.cpid_info \u003d \u0027raw-address\u0027"},{"line_number":124,"context_line":"        with mock.patch.object("},{"line_number":125,"context_line":"            fake_driver, \u0027discover\u0027, return_value\u003d[device], autospec\u003dTrue"},{"line_number":126,"context_line":"        ):"}],"source_content_type":"text/x-python","patch_set":8,"id":"cbdcb47c_5256d2f2","line":123,"updated":"2026-10-22 16:30:24.000000000","message":"so this shoudl not work\n\nlooking at every driver that sets this \nthey all call  driver_cpid.cpid_info \u003d utils.pci_str_to_json(something)\n\nso this shoudl alwasy be a json string of the pci adress with some addtiona metadta.\n\nhttps://github.com/openstack/cyborg/blob/master/cyborg/accelerator/common/utils.py#L42-L53\n\nnot the pic info itslef is drvier depentn and at some point we will have non pci devices. but today we dont.","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"a275e140ed1e10324e632c9e2037521865f25d99","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    def test_non_json_controlpath_is_reported(self):"},{"line_number":121,"context_line":"        fake_driver \u003d fake.FakeDriver()"},{"line_number":122,"context_line":"        device \u003d fake_driver.discover()[0]"},{"line_number":123,"context_line":"        device.controlpath_id.cpid_info \u003d \u0027raw-address\u0027"},{"line_number":124,"context_line":"        with mock.patch.object("},{"line_number":125,"context_line":"            fake_driver, \u0027discover\u0027, return_value\u003d[device], autospec\u003dTrue"},{"line_number":126,"context_line":"        ):"}],"source_content_type":"text/x-python","patch_set":8,"id":"6585f285_1d947dc6","line":123,"in_reply_to":"cbdcb47c_5256d2f2","updated":"2026-10-23 13:20:36.000000000","message":"Done, I have dropped this test.","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9daad5b5fea912673b5ac7180cfa8897a0a98d74","unresolved":true,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def test_duplicate_controlpath_aborts_tracker_startup(self):"},{"line_number":157,"context_line":"        self.flags("},{"line_number":158,"context_line":"            enabled_drivers\u003d[\u0027fake_driver\u0027, \u0027fake_driver\u0027],"},{"line_number":159,"context_line":"            group\u003d\u0027agent\u0027,"},{"line_number":160,"context_line":"        )"},{"line_number":161,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5175c320_d5a03143","line":158,"updated":"2026-10-22 16:30:24.000000000","message":"yes this shoudl not work but that shoudl have been cuahte beofre we got here.\n\nthis is fine for now but in a seperate patch we can can add an explcit check that you do not refence the same driver twice in the the enabeld_driver config option.","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"change_message_id":"a275e140ed1e10324e632c9e2037521865f25d99","unresolved":true,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def test_duplicate_controlpath_aborts_tracker_startup(self):"},{"line_number":157,"context_line":"        self.flags("},{"line_number":158,"context_line":"            enabled_drivers\u003d[\u0027fake_driver\u0027, \u0027fake_driver\u0027],"},{"line_number":159,"context_line":"            group\u003d\u0027agent\u0027,"},{"line_number":160,"context_line":"        )"},{"line_number":161,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"d1baf592_9f7ddebc","line":158,"in_reply_to":"5175c320_d5a03143","updated":"2026-10-23 13:20:36.000000000","message":"Addressed via https://review.opendev.org/c/openstack/cyborg/+/1012014","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"20cf3334db6efa03421d6b3d8785812d6bf61d05","unresolved":false,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def test_duplicate_controlpath_aborts_tracker_startup(self):"},{"line_number":157,"context_line":"        self.flags("},{"line_number":158,"context_line":"            enabled_drivers\u003d[\u0027fake_driver\u0027, \u0027fake_driver\u0027],"},{"line_number":159,"context_line":"            group\u003d\u0027agent\u0027,"},{"line_number":160,"context_line":"        )"},{"line_number":161,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"4ee9f233_8898476f","line":158,"in_reply_to":"d1baf592_9f7ddebc","updated":"2026-10-28 10:28:54.000000000","message":"Acknowledged","commit_id":"98afd106b6b75ea85fbdfa17f5e235b78413b503"}]}
