)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":31412,"name":"Wenping Song","email":"songwenping@inspur.com","username":"songwenping"},"change_message_id":"fde4efbbb2e12b7d8d0cf0312aa040ba82309123","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":7,"id":"1823cbae_9fcdfedc","updated":"2022-01-29 08:12:30.000000000","message":"will abandon if no response in ten days.","commit_id":"7e6e8416e9c3e9d322f1d6ba377c79ed5af268d7"}],"cyborg/accelerator/drivers/asic/__init__.py":[{"author":{"_account_id":14107,"name":"zhurong","email":"aaronzhu1121@gmail.com","username":"zhurong"},"change_message_id":"34f61af812a789051b0f82d65d3e5118f6a9b2e6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2018 Intel, Inc."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"},{"line_number":5,"context_line":"# a copy of the License at"},{"line_number":6,"context_line":"#"},{"line_number":7,"context_line":"#      http://www.apache.org/licenses/LICENSE-2.0"},{"line_number":8,"context_line":"#"},{"line_number":9,"context_line":"# Unless required by applicable law or agreed to in writing, software"},{"line_number":10,"context_line":"# distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":11,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import os"},{"line_number":16,"context_line":"import glob"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from oslo_log import log as logging"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"__import__(\u0027pkg_resources\u0027).declare_namespace(__name__)"},{"line_number":22,"context_line":"__import__(\".\".join([__package__, \u0027base\u0027]))"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"def load_asic_vendor_driver():"},{"line_number":29,"context_line":"    files \u003d glob.glob(os.path.join(os.path.dirname(__file__), \"*/driver*\"))"},{"line_number":30,"context_line":"    modules \u003d set(map(lambda s: \".\".join(s.rsplit(\".\")[0].rsplit(\"/\", 2)[-2:]),"},{"line_number":31,"context_line":"                      files))"},{"line_number":32,"context_line":"    for m in modules:"},{"line_number":33,"context_line":"        try:"},{"line_number":34,"context_line":"            __import__(\".\".join([__package__, m]))"},{"line_number":35,"context_line":"            LOG.debug(\"Successfully loaded ASIC vendor driver: %s.\" % m)"},{"line_number":36,"context_line":"        except ImportError as e:"},{"line_number":37,"context_line":"            LOG.error(\"Failed to load ASIC vendor driver: %s. Details: %s\""},{"line_number":38,"context_line":"                      % (m, e))"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"load_asic_vendor_driver()"}],"source_content_type":"text/x-python","patch_set":5,"id":"7faddb67_b23ea0be","line":41,"range":{"start_line":1,"start_character":0,"end_line":41,"end_character":25},"updated":"2019-07-17 05:28:44.000000000","message":"Hi, shaohe, we don\u0027t need this anymore, just add the new driver to setup.cfg like fpga and gpu.\nhttps://github.com/openstack/cyborg/blob/master/setup.cfg#L48","commit_id":"0df393e7e202fd6663cb5355fcb3d5b98d244c80"},{"author":{"_account_id":14131,"name":"shaohef","email":"shaohe.feng@intel.com","username":"shaohefeng"},"change_message_id":"be9c6a5445588d09bfcf1f8705933cd780a91f8f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2018 Intel, Inc."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"},{"line_number":5,"context_line":"# a copy of the License at"},{"line_number":6,"context_line":"#"},{"line_number":7,"context_line":"#      http://www.apache.org/licenses/LICENSE-2.0"},{"line_number":8,"context_line":"#"},{"line_number":9,"context_line":"# Unless required by applicable law or agreed to in writing, software"},{"line_number":10,"context_line":"# distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":11,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import os"},{"line_number":16,"context_line":"import glob"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from oslo_log import log as logging"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"__import__(\u0027pkg_resources\u0027).declare_namespace(__name__)"},{"line_number":22,"context_line":"__import__(\".\".join([__package__, \u0027base\u0027]))"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"def load_asic_vendor_driver():"},{"line_number":29,"context_line":"    files \u003d glob.glob(os.path.join(os.path.dirname(__file__), \"*/driver*\"))"},{"line_number":30,"context_line":"    modules \u003d set(map(lambda s: \".\".join(s.rsplit(\".\")[0].rsplit(\"/\", 2)[-2:]),"},{"line_number":31,"context_line":"                      files))"},{"line_number":32,"context_line":"    for m in modules:"},{"line_number":33,"context_line":"        try:"},{"line_number":34,"context_line":"            __import__(\".\".join([__package__, m]))"},{"line_number":35,"context_line":"            LOG.debug(\"Successfully loaded ASIC vendor driver: %s.\" % m)"},{"line_number":36,"context_line":"        except ImportError as e:"},{"line_number":37,"context_line":"            LOG.error(\"Failed to load ASIC vendor driver: %s. Details: %s\""},{"line_number":38,"context_line":"                      % (m, e))"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"load_asic_vendor_driver()"}],"source_content_type":"text/x-python","patch_set":5,"id":"7faddb67_72efc8e8","line":41,"range":{"start_line":1,"start_character":0,"end_line":41,"end_character":25},"in_reply_to":"7faddb67_b23ea0be","updated":"2019-07-17 06:13:27.000000000","message":"yes. \nWe have planed to use entry point 2 years ago. :)\n\nThanks for reminder that we change other drivers load by entry point.","commit_id":"0df393e7e202fd6663cb5355fcb3d5b98d244c80"}]}
