A method, device, equipment and storage medium for automatically repairing operation defects

By using an incremental detection and reinforcement learning-based defect self-healing engine to automatically handle program defects, the problem of manual intervention in the investigation of existing technologies has been solved, improving testing efficiency and system stability in the financial and medical fields.

CN123178138APending Publication Date: 2026-11-27PING AN INT FINANCIAL LEASING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611216886.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-11
Publication Date
2026-11-27

Smart Images

  • Figure CN123178138A_ABST
    Figure CN123178138A_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of artificial intelligence, and relates to a running defect automatic repair method, device, equipment and storage medium, wherein a preset incremental running defect detection component and a defect self-healing repair engine based on reinforcement learning are used to perform running defect detection, analysis, repair scheme screening and automatic repair on a target running program, so that the software defect repair efficiency is improved, and the stability of the computer running program is ensured. The running defect automatic repair method is applied to the financial business field, the online medical field and the medical and health care field with complex business logic scenes and business functions, so that when an abnormality or defect occurs in a business running program, defect detection, analysis, repair scheme selection and repair can be automatically performed, and the software defect repair efficiency and the running system stability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology and is applied to the scenario of automated detection and repair of software operation defects or anomalies. It relates to a method, device, equipment and storage medium for automated repair of operation defects. Background Technology

[0002] Existing intelligent test automation systems mainly rely on rule-driven script recording and playback technology or execution frameworks based on static test case libraries. Although they have improved testing efficiency in some scenarios, they still have significant shortcomings. In particular, in financial business, online medical, and medical and health care fields where business logic and functions are relatively complex, once the running program encounters an anomaly or defect, it cannot automatically identify the cause of failure and still requires manual intervention to investigate, forming an inefficient closed loop of "test failure - manual diagnosis - script repair".

[0003] Therefore, there is an urgent need for an automated method to repair operational defects, to replace this inefficient closed-loop model, in order to achieve efficient handling of operational defects. Summary of the Invention

[0004] The purpose of this application is to propose an automated method, apparatus, device, and storage medium for repairing runtime defects, thereby solving the technical problem that the existing technology still uses an inefficient closed-loop mode of "test failure - manual diagnosis - script repair" to handle defects when runtime programs encounter abnormalities or defects.

[0005] In a first aspect, embodiments of this application provide an automated method for repairing operational defects, employing the technical solution described below: An automated defect repair method includes the following steps: Obtain the operation detection log output by the preset incremental operation defect detection component, wherein the operation detection log is generated by the incremental operation defect detection component detecting the currently running program; The runtime detection log is parsed, and the presence of runtime defects in the currently running program is identified based on preset defect discovery fields. When a runtime defect is identified in the currently running program, the defect is first located, and then root cause analysis is performed based on the defect location to obtain the defect generation node and the cause of the defect. The defect generation node and the cause of the defect are input into the reinforcement learning-based defect self-healing repair engine; Obtain the automated repair solution provided by the defect self-healing repair engine for the currently running program; The automated repair scheme is analyzed to obtain all the repair actions involved in the automated repair process, and all the repair actions are serialized and sorted according to their execution order to obtain the serialization and sorting result. Perform all the repair actions according to the serialization and sorting results; Until the latest operation detection logs fed back by the currently running program are analyzed and no operation defects are identified, the current running program completes this automatic repair.

[0006] Secondly, this application also provides an automated defect repair device, which adopts the following technical solution: An automated defect repair device includes: The runtime detection log acquisition module is used to acquire runtime detection logs output by a preset incremental runtime defect detection component, wherein the runtime detection logs are generated by the incremental runtime defect detection component detecting the currently running program; The runtime defect identification module is used to parse the runtime detection log and identify whether the currently running program has runtime defects based on preset defect discovery fields. The defect generation analysis module is used to first locate the defect in the currently running program when a runtime defect is identified, and then perform root cause analysis based on the defect location to obtain the defect generation node and the cause of the defect. The input repair engine module is used to input the defect generation node and the cause of defect generation into the reinforcement learning-based defect self-healing repair engine. The repair solution acquisition module is used to acquire the automated repair solution provided by the defect self-healing repair engine for the currently running program; The repair action organization module is used to parse the automated repair scheme, obtain all repair actions involved in the automated repair, and serialize and sort all repair actions according to their execution order to obtain the serialization and sorting result. The repair action execution module is used to execute all the repair actions according to the serialization sorting results; The repair of the authentication module is complete. If no operational defect can be identified when parsing the latest operation detection logs returned by the currently running program, the current running program has completed this automatic repair.

[0007] Thirdly, embodiments of this application also provide a computer device that adopts the technical solution described below: A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the above-described automated defect repair method.

[0008] Fourthly, embodiments of this application also provide a computer-readable storage medium, which adopts the technical solutions described below: A computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the steps of the automated defect repair method described above.

[0009] Compared with the prior art, the embodiments of this application have the following main advantages: The automated runtime defect repair method described in this application acquires runtime detection logs from a pre-defined incremental runtime defect detection component for the currently running program. When a runtime defect is identified, root cause analysis is performed to determine the defect generation node and its cause. These are then input into a defect self-healing engine. An automated repair solution is obtained and implemented. The automated repair process continues until no runtime defects are identified, at which point the automated repair is complete. By utilizing a pre-defined incremental runtime defect detection component and a reinforcement learning-based defect self-healing engine, the method performs runtime defect detection, analysis, repair solution selection, and automated repair on the target program, improving software defect repair efficiency and ensuring the stability of the computer program. Applying this automated runtime defect repair method to complex business logic scenarios and functions in fields such as finance, online healthcare, and healthcare and wellness, it can automatically detect, analyze, select, and repair defects when they occur in the business program, improving software defect repair efficiency and system stability. Attached Figure Description

[0010] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 This is an exemplary system architecture diagram to which this application can be applied; Figure 2 This is a flowchart of an embodiment of an automated defect repair method according to this application; Figure 3This document illustrates a flowchart of a specific embodiment of the learning and deployment of the runtime defect detection component in the automated runtime defect repair method described in this application. Figure 4 The flowchart illustrates a specific embodiment of the adversarial generation and augmentation of the training samples used for learning in the automated defect repair method of this application; Figure 5 This document illustrates a flowchart of a specific embodiment of the automatic defect repair method described in this application, which involves constructing an initial knowledge graph for defect resolution. Figure 6 This document illustrates a flowchart of a specific embodiment of adaptive adjustment of the initial knowledge graph for defect resolution in the automated defect repair method described in this application. Figure 7 A flowchart is shown as a specific embodiment of the initial construction of the defect self-healing repair engine in the automated defect repair method described in this application; Figure 8 yes Figure 2 A flowchart of a specific embodiment of step 205 shown; Figure 9 A flowchart is shown below illustrating another specific embodiment of obtaining an automated repair scheme in the automated defect repair method described in this application; Figure 10 This is a schematic diagram of one embodiment of an automated repair device for operational defects according to this application; Figure 11 This is a schematic diagram of the structure of one embodiment of the computer device according to this application. Detailed Implementation

[0012] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.

[0013] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0014] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0015] like Figure 1 As shown, system architecture 100 may include terminal device 101, network 102, and server 103. Terminal device 101 may be a laptop 1011, tablet 1012, or mobile phone 1013. Network 102 is used as a medium to provide a communication link between terminal device 101 and server 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables.

[0016] Users can use terminal device 101 to interact with server 103 via network 102 to receive or send messages, etc. Various communication client applications can be installed on terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social media platform software, etc.

[0017] Terminal device 101 can be various electronic devices with a display screen and support web browsing. In addition to laptops 1011, tablets 1012, or mobile phones 1013, terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer, and a desktop computer, etc.

[0018] Server 103 can be a server that provides various services, such as a backend server that provides support for the pages displayed on terminal device 101.

[0019] It should be noted that the automated repair method for operational defects provided in this application is generally executed by a server, and correspondingly, an automated repair device for operational defects is generally installed in the server.

[0020] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0021] Continue to refer to Figure 2 The diagram illustrates a flowchart of an embodiment of an automated runtime defect repair method according to this application. The automated runtime defect repair method includes the following steps: Step 201: Obtain the operation detection logs output by the preset incremental operation defect detection component.

[0022] The runtime detection log is generated by the incremental runtime defect detection component based on the detection of the currently running program.

[0023] In this embodiment, the currently running program includes a real-time running software program and a test image program corresponding to the software program before its release. Specifically, examples include: software programs running in real-time during online financial transactions, such as online loan processing programs in financial scenarios; and mirror programs used for pre-release defect testing of newly released online financial transaction programs. More broadly, these currently running programs can also be programs used by online medical platforms for related business processing, or programs used by medical and health care platforms for related business processing.

[0024] In this embodiment, the preset incremental runtime defect detection component can detect the current running program's runtime status and output the detection results in the form of a runtime log. Specifically, the term "incremental" in "incremental runtime defect detection component" indicates that the runtime defect detection component is constantly updating its detection strategy. The runtime detection log includes runtime detection logs output as runtime file carriers.

[0025] By acquiring the runtime detection logs returned by the preset incremental runtime defect detection component for the currently running program, it is possible to directly parse the runtime detection logs and quickly identify whether the currently running program has runtime defects.

[0026] Step 202: parse the running detection log and identify whether the currently running program has any running defects based on the preset defect discovery fields.

[0027] Specifically, the runtime detection log output as a runtime file carrier is parsed using character stream or byte stream parsing to obtain the textual runtime status representation fields contained in the runtime detection log.

[0028] In this embodiment, the preset defect detection field, such as a field containing "Exception" or "ERROR", determines whether the currently running program has a running defect by identifying whether the textual running status characterization field contained in the running detection log contains the "Exception" or "ERROR" field.

[0029] Specifically, if the "Exception" or "ERROR" field exists, it is determined that the currently running program has a runtime defect; if the "Exception" or "ERROR" field does not exist, it is determined that the currently running program does not have a runtime defect.

[0030] In this embodiment, the runtime detection log is parsed, and the presence of runtime defects in the currently running program is identified based on preset defect discovery fields, so as to determine whether to perform automated repair on the currently running program.

[0031] Step 203: When a runtime defect is identified in the currently running program, the defect is first located, and then root cause analysis is performed based on the defect location to obtain the defect generation node and the cause of the defect.

[0032] In this embodiment, the defect location information refers to log statements containing defect discovery fields such as "Exception" or "ERROR", as well as the execution method information involved in such log statements.

[0033] In this embodiment, the specific implementation method of first locating defects in the currently running program and then performing root cause analysis based on the defect location to obtain the defect generation node and the defect generation cause includes: obtaining the runtime status characterization statement containing the field "Exception" or "ERROR"; identifying the execution method (execution function) name in the runtime status characterization statement as the defect generation node; and determining the defect generation cause based on the execution method (execution function) name and the specific field containing "Exception" or "ERROR". For example: when the field containing "Exception" is identified as IOException, it is an input / output exception, indicating an exception caused by file read / write or data transmission failure, that is, when using the above execution method (execution function) to perform file read / write or data transmission, there is an exception that cannot be read / written or transmitted normally; furthermore: when the field containing "Exception" is identified as NullPointerException, it is a null pointer exception, indicating an exception caused by the inability to access the accessed object, that is, when using the above execution method (execution function) to access the target object, there is an exception that the target object cannot be accessed normally.

[0034] Specifically, when a runtime defect is identified in the currently running program, the defect is first located, and then root cause analysis is performed based on the defect location to obtain the defect generation node and the defect cause, so as to facilitate the subsequent automated repair of the currently running program by combining the defect generation node and the defect cause.

[0035] It should be understood that, in this embodiment, steps 202 and 203 can also be built-in processing steps in the runtime defect detection component, directly implementing the parsing of the runtime detection log, runtime defect identification, defect location and root cause analysis of the currently running program in the runtime defect detection component, ensuring the simplification of the entire software defect automated processing component and avoiding the waste of too much computer architecture and processing resources.

[0036] Step 204: Input the defect generation node and the cause of defect generation into the reinforcement learning-based defect self-healing repair engine.

[0037] In this embodiment, the defect self-healing repair engine based on reinforcement learning refers to a defect self-healing repair engine pre-learned using reinforcement learning. This defect self-healing repair engine can provide corresponding automated repair solutions for the currently running program based on the defect generation node and the cause of the defect.

[0038] Step 205: Obtain the automated repair scheme provided by the defect self-healing repair engine for the currently running program.

[0039] By inputting the defect-generating node and the cause of the defect into a reinforcement learning-based defect self-healing engine, and utilizing the relevant self-healing knowledge pre-learned by the engine, an automated repair scheme provided by the engine for the currently running program is obtained. This automated repair scheme is pre-stored in a preset cache space and can be retrieved by the defect self-healing engine at any time.

[0040] In this embodiment, the defect generation node and the defect generation cause are used as common search fields, and the defect self-healing repair engine is used to quickly screen and retrieve automated repair solutions, thereby improving the repair efficiency after the defect is discovered.

[0041] Step 206: Analyze the automated repair scheme to obtain all repair actions involved in the automated repair process, and serialize and sort all the repair actions according to their execution order to obtain the serialization and sorting result.

[0042] Step 207: Perform all repair actions according to the serialization and sorting results.

[0043] In this embodiment, steps 206 and 207 can be built-in processing steps of the defect self-healing repair engine. That is, the defect self-healing repair engine parses the automated repair scheme to obtain all repair actions involved in the automated repair, and serializes and sorts all repair actions according to their execution order to obtain a serialization and sorting result; and uses the defect self-healing repair engine to execute all repair actions according to the serialization and sorting result, thereby completing the current defect self-healing repair operation in the defect self-healing repair engine.

[0044] Step 208: When the latest operation detection log fed back by the currently running program is parsed, no operation defect can be identified, and the current running program completes this automatic repair.

[0045] Specifically, step 208 can be understood as a verification step after each automated repair operation, that is, re-acquiring the operation detection logs fed back by the operation defect detection component for the currently running program. If no operation defect can be identified when parsing the latest operation detection logs fed back by the currently running program, then the current automated repair of the current running program is completed. If an operation defect can still be identified when parsing the latest operation detection logs fed back by the currently running program, then steps 203 to 208 are executed again until no operation defect can be identified when parsing the latest operation detection logs fed back by the currently running program, then the current automated repair of the current running program is completed.

[0046] This embodiment utilizes a pre-defined incremental runtime defect detection component and a reinforcement learning-based defect self-healing engine to perform self-detection, self-analysis, defect self-repair scheme selection, and automated defect repair on a target running program. This improves software defect repair efficiency and ensures the stability of the computer program. Applying this automated runtime defect repair method to fields with complex business logic and functions, such as financial services, online healthcare, and medical and elderly care, enables automated defect self-detection, self-analysis, defect self-repair scheme selection, and automated defect repair when anomalies or defects occur in the running program. This further improves software defect repair efficiency and ensures the stability of business operations.

[0047] This embodiment provides an automated runtime defect repair method that can be applied to complex business scenarios and functionalities in fields such as finance, online healthcare, and elderly care. It acquires runtime detection logs from a pre-defined incremental runtime defect detection component. When a runtime defect is identified, root cause analysis is performed to determine the defect's origin and cause. These are then input into a self-healing engine to obtain an automated repair solution. The automated repair continues until no further runtime defects are identified. By utilizing a pre-defined incremental runtime defect detection component and a reinforcement learning-based self-healing engine, runtime defect detection, analysis, repair solution selection, and automated repair of the target program are performed, improving software defect repair efficiency and ensuring the stability of the computer program. Applying this automated runtime defect repair method to complex business scenarios and functionalities in fields such as finance, online healthcare, and elderly care enables automated defect detection, analysis, repair solution selection, and repair when anomalies or defects occur in the business program, improving software defect repair efficiency and system stability.

[0048] Continue to refer to Figure 3 Before performing step 201, Figure 3 This document illustrates a flowchart of a specific embodiment of the automated runtime defect repair method described in this application, which involves learning and deploying the runtime defect detection component, including the following steps: Step 301: Obtain the test cases that were built for each type of defect in the past; In this embodiment, the test cases that were built for various defects in the past refer to the test cases that were built for all running programs in the past. The test cases refer to test scripts, which are used to detect various defects in the target running program before it goes online, so as to design corresponding avoidance strategies to avoid defects during subsequent deployment.

[0049] Specifically, test cases built for various types of defects can be retrieved from the preset test case storage space.

[0050] Step 302: Summarize all test cases and generate training samples for learning; Specifically, the process of summarizing all test cases and generating training samples for learning includes directly using all test cases as a training sample, dividing all test cases into training and test sets according to a certain ratio, or dividing all test cases into training, validation, and test sets according to a certain ratio, or sampling all test cases and generating training samples for learning based on the sampling results. The method of generating training samples for learning is freely chosen by the trainers. Theoretically speaking, the more training samples for learning, the better the subsequent learning effect.

[0051] Step 303: Input the training samples for learning into the pre-built runtime defect detection component to learn defect detection knowledge and obtain the runtime defect detection component after learning and training. In this embodiment, the pre-built runtime defect detection component includes a runtime defect detection component structured by a neural network and combined with a preset machine learning algorithm. The neural network and machine learning algorithm used here can be freely selected by the training personnel, at least ensuring that the runtime defect detection component learns defect detection knowledge.

[0052] Step 304: Import the learned and trained runtime defect detection component as a detection plugin into the currently running program to detect the runtime status of the currently running program.

[0053] In this embodiment, the learned and trained runtime defect detection component is imported as a detection plugin into the currently running program, so that the program can be monitored during runtime. It should be understood that many open-source plugins or tools exist for software defect detection. In this embodiment, importing the learned and trained runtime defect detection component as a detection plugin into the currently running program aims to directly replace these open-source plugins or tools, providing the program with a more suitable self-developed defect detection plugin without excessive consideration for compatibility issues. It also includes directly using a self-developed defect detection plugin to facilitate rapid subsequent monitoring of the program's runtime status.

[0054] In this embodiment, through steps 301 to 304, the self-developed and trained runtime defect detection component is imported into the currently running program as a detection plugin, which facilitates the rapid detection of the current running program's running status and also makes it easier to reuse the detection plugin as a component.

[0055] Continue to refer to Figure 4 Before performing step 303, Figure 4This document illustrates a flowchart of a specific embodiment of the automated defect repair method described in this application, which involves adversarial generation and augmentation of the training samples used for learning, including the following steps: Step 401: Input the training samples used for learning as discriminative knowledge into the preset discriminative network; Step 402: Input the training samples used for learning as reference knowledge into the preset generation network, and train the generation network to generate new test cases. In this embodiment, the preset discriminator network and the preset generator network can be designed using a "dual-tower model". One tower is the discriminator network, which only acquires the latest test cases generated by the generator network and performs a "deceptive" judgment on the latest test cases. The other tower is the generator network, which adjusts the generation parameters of the generator network one by one according to the discrimination result of the discriminator network and regenerates the latest test cases. The latest test cases generated can be used as expansion samples until the discriminator network approves the generation effect of the generator network.

[0056] Step 403: Continuously acquire all the latest test cases generated by the generation network, and continuously input all the latest test cases into the discrimination network, and combine the discrimination knowledge to obtain the generation discrimination result; Specifically, after step 403, the method further includes: if the generated discrimination result does not meet the preset discrimination requirements, then adjust the generation parameters of the generation network according to the generated discrimination result of the discrimination network, and re-execute steps 402 to 403 to generate and verify the latest test cases.

[0057] Step 404: Until the generated discrimination results show that all the latest test cases meet the preset discrimination requirements, add all the latest test cases to the learning training sample to expand the learning training sample. The preset discrimination requirements include that all the latest test cases are available test cases that meet the defect detection requirements.

[0058] In this embodiment, by adopting an adversarial generative training method, new test cases are generated to expand the training samples used for learning. This improves the detection accuracy of the runtime defect detection component after subsequent learning and training to a certain extent, and identifies software runtime defects more accurately and quickly.

[0059] Continue to refer to Figure 5 Before performing step 204, Figure 5 This document illustrates a flowchart of a specific embodiment of the automated defect repair method described in this application, including the following steps: Step 501: Obtain the causes and solutions for defects that have been pre-organized for historical defects. Step 502: Based on the cause of the defect and the solution to the defect, construct a data pair for learning and training; Specifically, training data pairs are constructed with the cause of the defect as the key field and the solution to the defect as the value. It should be understood that the cause of the defect and the solution to the defect are not a simple one-to-one relationship; there may be one cause of a defect corresponding to multiple solutions, that is, the cause of the defect and the solution to the defect have a one-to-many relationship.

[0060] Step 503: Use the training data pairs as training data and learn the correlation mapping relationship between different causes of defects and different solutions to defects through graph neural network learning. In this embodiment, a graph neural network learning method is used to learn the correlation mapping relationship between different defect causes and different defect solutions, so as to facilitate the subsequent construction of an initial knowledge graph for defect solutions.

[0061] Step 504: Based on the correlation mapping relationship between different causes of defects and different defect solutions, construct an initial knowledge graph for defect resolution.

[0062] In this embodiment, the initial knowledge graph for defect resolution includes the correlation mapping relationship between two knowledge levels, namely the knowledge mapping between the cause of the defect and the solution to the defect.

[0063] In this embodiment, by utilizing the causes and solutions of defects that have been pre-organized for historical defects, graph neural network learning is performed to construct an initial knowledge graph for defect resolution. This allows for the rapid identification of selectable defect solutions when the causes of defects are determined, thereby improving defect repair efficiency.

[0064] Continue to refer to Figure 6 Before performing step 204, Figure 6 This document illustrates a flowchart of a specific embodiment of the automated defect repair method described in this application, which includes the following steps: Step 601: Obtain the business execution logic diagram of the currently running program that has been acquired in advance; In this embodiment, since different running programs involve different business execution logic, the corresponding business execution nodes that generate defects will also be different. Therefore, by obtaining the business execution logic graph of the current running program, it is possible to subsequently combine the business execution logic graph to adjust and generate an initial knowledge graph for defect resolution suitable for the current running program.

[0065] Step 602: parse the business execution logic graph to obtain the execution node information involved in each step of the business execution process; Step 603: Analyze the initial knowledge graph for defect resolution to obtain all the causes of defects contained in the initial knowledge graph for defect resolution; Step 604: Using a graph neural network, learn the correlation between the information of all execution nodes and the causes of different defects; Step 605: Based on the correlation between the full execution node information and the causes of different defects, and the correlation mapping between the causes of different defects and the solutions to different defects, the initial knowledge graph for defect resolution is adaptively adjusted to obtain an initial knowledge graph for defect resolution suitable for the currently running program.

[0066] Specifically, after introducing the correlation between the full execution node information and the different causes of defects, the initial knowledge graph for defect resolution applicable to the currently running program contains the correlation mapping relationship of three knowledge levels, namely the knowledge mapping between execution node information, defect causes, and defect solutions.

[0067] In this embodiment, by adaptively adjusting the initial knowledge graph for defect resolution, an initial knowledge graph for defect resolution suitable for the currently running program is obtained. This allows for the rapid selection of appropriate defect solutions for automated repair of the currently running program after obtaining the defect generation node and the cause of the defect, thereby improving the defect repair efficiency of the currently running program.

[0068] Continue to refer to Figure 7 Before performing step 204, Figure 7 The flowchart shown illustrates a specific embodiment of the initial construction of the defect self-healing repair engine in the automated defect repair method described in this application, including the following steps: Step 701: parse the initial knowledge graph of defect resolution of the currently running program to obtain the association mapping results between execution node information, defect causes and defect solutions; Step 702: Extract the repair execution actions contained in different defect solutions according to the execution order to obtain defect repair execution information; Step 703: The association mapping results between the execution node information, the cause of the defect and the defect solution, and the defect repair execution information are used together as defect repair knowledge. Reinforcement learning is then used to learn all the repair execution actions contained in the defect repair knowledge and the execution order between each associated repair execution action. Specifically, reinforcement learning is used to learn all the repair actions contained in the defect repair knowledge and the execution order of each related repair action. That is, it learns all the repair actions in the corresponding defect solutions for different defect causes, as well as the execution order of the repair actions, when different execution node information is used.

[0069] Step 704: Based on all the repair execution actions contained in the defect repair knowledge and the execution order of each related repair execution action, an initial defect self-healing repair engine is constructed.

[0070] In this embodiment, constructing an initial self-healing repair engine based on all repair actions included in the defect repair knowledge and the sequential execution order of each associated repair action includes: setting an execution pointer for a preceding repair action on a subsequent repair action in the initial self-healing repair engine, so that when the self-healing repair engine is actually used, after the current repair action is completed, the next repair action can be quickly executed according to the corresponding execution pointer, thereby improving the efficiency of self-healing repair.

[0071] Continue to refer to Figure 8 , Figure 8 yes Figure 2 A flowchart of a specific embodiment of step 205 shown includes: Step 801: Based on the initial knowledge graph of defect resolution of the currently running program, identify whether the cause of the defect in the currently running program is recorded in the initial knowledge graph of defect resolution; Step 802: If the cause of the defect is recorded in the initial knowledge graph for defect resolution; Step 803: Based on the correlation mapping results between execution node information, defect causes and defect solutions, as well as the defect causes and defect generation nodes of the currently running program, the corresponding defect solutions are determined as the automated repair solutions through a filtering method.

[0072] In this embodiment, essentially, the defect resolution initial knowledge graph of the currently running program is used. When the cause of the defect in the currently running program is recorded in the defect resolution initial knowledge graph of the currently running program, the defect resolution initial knowledge graph is used as the retrieval fields to filter out defect solutions as the automated repair solution.

[0073] Continue to refer to Figure 9 After performing step 801, Figure 9This paper illustrates a flowchart of another specific embodiment of the automated repair scheme acquisition process in the automated defect repair method described in this application, including the following steps: Step 901: If the cause of the defect is not recorded in the initial knowledge graph for defect resolution; Specifically, for example: the current defect generation node is associated with 10 defect generation causes, that is, when the current execution node causes an exception, it may be caused by these 10 causes, but it is precisely not one of these 10 defect generation causes recorded in the initial defect resolution knowledge graph, that is, the defect generation cause may be a new cause.

[0074] Step 902: Identify all causes of defects associated with the defect-generating node based on the initial knowledge graph for defect resolution. Step 903: Extract all repair actions corresponding to different defect causes and the execution order of each associated repair action from all defect causes associated with the defect generation node; Specifically, we first analyze the repair execution actions for the 10 causes of defects associated with the defect generation node that are recorded in the initial knowledge graph of defect resolution. We assume that when repairing these 10 causes of defects, actions 1, 2 and 3 are involved, and actions 1, 2 and 3 are executed sequentially.

[0075] Step 904: Based on the number of defect causes corresponding to different repair actions and the execution order of each related repair action, set the probability of repair being executed for each repair action when different repair steps are performed. Specifically, when repairing these 10 causes of defects, actions 1, 2, and 3, which are involved in all of them, can be set with a relatively high probability of being executed; while for other repair actions that are not involved or are only involved in some causes, a relatively low probability of being executed can be set. In principle, the more causes of defects a different repair action corresponds to, the higher the probability of being executed for that repair action.

[0076] Step 905: Calculate the optimal defect repair scheme as the automated repair scheme based on the preset defect repair screening formula and the probability of each repair action being executed at different repair steps.

[0077] Specifically, the preset defect repair screening formula is as follows: , The optimal defect repair solution is selected, where, This represents the optimal repair action selected at each step. The action execution strategy constituted This indicates the optimal repair action that can be performed at present. for The running state before execution for The running status after execution This represents the preset reward function. Indicates the discount factor. The function represents the running state-action value. express After execution and in running status hour, Compared to The probability of being changed.

[0078] In this embodiment, after the step of completing the automated repair of the currently running program, the method further includes: identifying the optimal defect repair scheme selected during the automated repair process of the currently running program when the cause of the defect is not recorded in the initial defect resolution knowledge graph through backtracking; and supplementing the association mapping relationship between the defect generation node, the cause of the defect, and the optimal defect repair scheme in the initial defect resolution knowledge graph to update the initial defect resolution knowledge graph.

[0079] Specifically, during automated defect repair, the new causes of defects and the optimal defect repair schemes identified are updated to the initial defect resolution knowledge graph. This enables continuous expansion of the initial defect resolution knowledge graph applicable to the currently running program, ensuring that the defect self-healing and repair capabilities become increasingly comprehensive, i.e., the scope of defect repair becomes wider and wider, thus improving the applicability of defect repair.

[0080] The automated runtime defect repair method provided in this embodiment is applied to the financial business, online medical, and healthcare fields, where business logic and functions are relatively complex. It acquires runtime detection logs from a pre-defined incremental runtime defect detection component. When a runtime defect is identified, root cause analysis is performed to determine the defect's origin and cause. These are then input into a self-healing engine to obtain an automated repair solution. The process continues until no runtime defects are identified, at which point the automated repair is complete. By utilizing a pre-defined incremental runtime defect detection component and a reinforcement learning-based self-healing engine, runtime defects are detected, analyzed, repair solutions are selected, and automated repair is performed on the target runtime program, improving software defect repair efficiency and ensuring the stability of the computer program. Applying this automated runtime defect repair method to the financial business, online medical, and healthcare fields, where business logic and functions are relatively complex, enables automated defect detection, analysis, repair solution selection, and repair when anomalies or defects occur in the business program, improving software defect repair efficiency and system stability.

[0081] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0082] Foundational technologies in artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0083] The automated runtime defect repair method provided in this embodiment is applied to the financial business, online medical, and healthcare fields, where business logic and functions are relatively complex. It acquires runtime detection logs from a pre-defined incremental runtime defect detection component. When a runtime defect is identified, root cause analysis is performed to determine the defect's origin and cause. These are then input into a self-healing engine to obtain an automated repair solution. The process continues until no runtime defects are identified, at which point the automated repair is complete. By utilizing a pre-defined incremental runtime defect detection component and a reinforcement learning-based self-healing engine, runtime defects are detected, analyzed, repair solutions are selected, and automated repair is performed on the target runtime program, improving software defect repair efficiency and ensuring the stability of the computer program. Applying this automated runtime defect repair method to the financial business, online medical, and healthcare fields, where business logic and functions are relatively complex, enables automated defect detection, analysis, repair solution selection, and repair when anomalies or defects occur in the business program, improving software defect repair efficiency and system stability.

[0084] Further reference Figure 10 As a response to the above Figure 2 The implementation of the method shown in this application provides an embodiment of an automated defect repair device, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.

[0085] like Figure 10 As shown, the automated defect repair device 10 described in this embodiment includes: a runtime detection log acquisition module 10a, a runtime defect existence identification module 10b, a defect generation analysis module 10c, an input repair engine module 10d, a repair scheme acquisition module 10e, a repair action organization module 10f, a repair action execution module 10g, and a repair completion authentication module 10h. Wherein: The runtime detection log acquisition module 10a is used to acquire runtime detection logs output by a preset incremental runtime defect detection component, wherein the runtime detection logs are generated by the incremental runtime defect detection component detecting the currently running program. The runtime defect identification module 10b is used to parse the runtime detection log and identify whether the currently running program has runtime defects based on the preset defect discovery field. The defect generation analysis module 10c is used to first locate the defect in the currently running program when a runtime defect is identified, and then perform root cause analysis based on the defect location to obtain the defect generation node and the cause of the defect. Input repair engine module 10d is used to input the defect generation node and the defect generation cause into the reinforcement learning-based defect self-healing repair engine; The repair scheme acquisition module 10e is used to acquire the automated repair scheme provided by the defect self-healing repair engine for the currently running program; The repair action organization module 10f is used to parse the automated repair scheme, obtain all the repair actions involved in the automated repair, and serialize and sort all the repair actions according to the order of execution to obtain the serialization and sorting result. The repair action execution module 10g is used to execute all the repair actions according to the serialization sorting results; The authentication module is repaired after 10 hours. This is used to ensure that no operational defects are identified when parsing the latest operation detection logs returned by the currently running program. The current running program is then considered to have completed this automated repair.

[0086] This application is applied to the financial business, online healthcare, and medical and elderly care fields, where business logic and functions are relatively complex. It acquires runtime detection logs from a pre-defined incremental runtime defect detection component. When a runtime defect is identified, root cause analysis is performed to determine the defect's origin and cause. These are then input into a self-healing engine to obtain an automated repair solution. The automated repair continues until no further runtime defects are identified. By utilizing a pre-defined incremental runtime defect detection component and a reinforcement learning-based self-healing engine, runtime defects are detected, analyzed, repair solutions are selected, and repairs are automated in the target program, improving software defect repair efficiency and ensuring the stability of the computer program. Applying this automated runtime defect repair method to the financial, online healthcare, and medical and elderly care fields, where business logic and functions are complex, enables automated defect detection, analysis, repair solution selection, and repair when anomalies or defects occur in the business program, improving software defect repair efficiency and system stability.

[0087] In this embodiment, the automated defect repair device 10 further includes a historical test case acquisition module, a training sample generation module, a defect detection knowledge learning module, and a detection plugin import module. Wherein: The historical test case acquisition module is used to acquire test cases that were built for various types of defects in the past. The training sample generation module is used to summarize all test cases and generate training samples for learning. The defect detection knowledge learning module is used to input the training samples for learning into the pre-built running defect detection component to learn defect detection knowledge and obtain the running defect detection component after learning and training. The detection plugin import module is used to import the learned and trained runtime defect detection component as a detection plugin into the currently running program to detect the runtime status of the currently running program.

[0088] In this embodiment, the automated defect repair device 10 further includes an input discrimination network module, a generator network learning module, a generator discrimination module, and a training sample expansion module. Wherein: The input discriminant network module is used to input the training samples used for learning as discriminant knowledge into a preset discriminant network; The network learning module is used to input the training samples used for learning as reference knowledge into a preset network and train the network to generate new test cases. The generation and discrimination module is used to continuously acquire all the latest test cases generated by the generation network, and continuously input all the latest test cases into the discrimination network, and obtain the generation and discrimination results by combining the discrimination knowledge; The training sample expansion module is used to add all the latest test cases to the learning training sample to expand the learning training sample until the generated discrimination results show that all the latest test cases meet the preset discrimination requirements. The preset discrimination requirements include that all the latest test cases are available test cases that meet the defect detection requirements.

[0089] In this embodiment, the automated defect repair device 10 further includes a historical defect information acquisition module, a data pair construction module, a graph neural network first learning module, and a defect resolution initial knowledge graph construction module. Wherein: The historical defect information acquisition module is used to acquire the causes and solutions of defects that have been pre-organized for historical defects. The data pair construction module is used to construct learning and training data pairs based on the causes of the defects and the solutions to the defects. The first learning module of the graph neural network is used to use the training data pairs as training data and learn the correlation mapping relationship between the causes of different defects and the solutions to different defects through the graph neural network learning method. The Defect Resolution Initial Knowledge Graph Construction Module is used to construct an initial knowledge graph for defect resolution based on the correlation mapping relationship between different defect causes and different defect solutions.

[0090] In this embodiment, the automated defect repair device 10 further includes a business execution logic graph acquisition module, a business execution logic graph parsing module, a defect resolution initial knowledge graph parsing module, a graph neural network second learning module, and a defect resolution initial knowledge graph adjustment module. Wherein: The business execution logic graph acquisition module is used to acquire the business execution logic graph of the currently running program that has been acquired in advance. The business execution logic graph parsing module is used to parse the business execution logic graph and obtain the execution node information involved in each step of the business execution process; The defect resolution initial knowledge graph parsing module is used to parse the defect resolution initial knowledge graph and obtain all the causes of defects contained in the defect resolution initial knowledge graph. The second learning module of the graph neural network is used to learn the correlation between the information of all execution nodes and the causes of different defects using the graph neural network. The initial knowledge graph adjustment module for defect resolution is used to adaptively adjust the initial knowledge graph for defect resolution based on the association between the full execution node information and the different causes of defects, and the association mapping between the different causes of defects and the different defect solutions, so as to obtain an initial knowledge graph for defect resolution suitable for the currently running program.

[0091] In this embodiment, the automated defect repair device 10 further includes a defect repair execution information extraction module, a defect repair knowledge learning module, and a defect self-healing engine initial construction module. Wherein: The defect resolution initial knowledge graph parsing module is also used to parse the defect resolution initial knowledge graph of the currently running program to obtain the association mapping results between execution node information, defect causes and defect solutions; The defect repair execution information extraction module is used to extract the repair execution actions contained in different defect solutions according to the execution order to obtain defect repair execution information; The defect repair knowledge learning module is used to take the execution node information, the correlation mapping results between the defect generation cause and the defect solution, and the defect repair execution information as defect repair knowledge, and to learn all the repair execution actions contained in the defect repair knowledge and the execution order between each related repair execution action using reinforcement learning. The initial construction module of the defect self-healing repair engine is used to construct the initial defect self-healing repair engine based on all repair execution actions contained in the defect repair knowledge and the execution order between each related repair execution action.

[0092] In this embodiment, the repair scheme acquisition module 10e includes a defect cause recording and identification unit, an identification result first branch unit, and an automated repair scheme filtering unit. Wherein: The defect cause recording and identification unit is used to identify whether the defect cause of the currently running program is recorded in the initial defect resolution knowledge graph based on the defect resolution initial knowledge graph of the currently running program. The first branch unit of the identification result is used if the cause of the defect is recorded in the initial knowledge graph of defect resolution; The automated repair solution screening unit is used to determine the corresponding defect solution as the automated repair solution based on the correlation mapping results between execution node information, defect causes and defect solutions, as well as the defect causes and defect nodes of the currently running program.

[0093] In this embodiment, the repair scheme acquisition module 10e further includes a second branch unit for identification results, a defect cause identification unit, a defect repair knowledge extraction unit, a repair execution probability setting unit, and an automated repair scheme calculation unit. Wherein: The second branch unit of the identification result is used if the cause of the defect is not recorded in the initial knowledge graph of defect resolution; The defect cause identification unit is used to identify all defect causes associated with the defect generation node based on the initial knowledge graph of defect resolution. The defect repair knowledge extraction unit is used to extract all repair actions corresponding to different defect causes and the execution order between each associated repair action from all defect causes associated with the defect generation node. The repair execution probability setting unit is used to set the repair execution probability corresponding to different repair steps for all repair execution actions based on the number of defect causes corresponding to different repair execution actions and the execution order between each related repair execution action; An automated repair scheme calculation unit is used to calculate the optimal defect repair scheme as the automated repair scheme based on a preset defect repair screening formula and the probability of each repair action being executed at different repair steps.

[0094] In this embodiment, the automated defect repair device 10 further includes a defect repair scheme backtracking module and a defect resolution initial knowledge graph update module. Wherein: The defect repair solution backtracking module is used to identify the optimal defect repair solution selected during the automated repair process of the currently running program when the cause of the defect was not recorded in the initial knowledge graph of defect resolution. The initial knowledge graph update module for defect resolution is used to supplement the initial knowledge graph for defect resolution with the association mapping relationship between the defect generation node, the cause of the defect generation and the optimal defect repair scheme, so as to update the initial knowledge graph for defect resolution.

[0095] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).

[0096] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0097] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed] for details. Figure 11 , Figure 11 This is a basic structural block diagram of the computer device in this embodiment.

[0098] The computer device 11 includes a memory 11a, a processor 11b, and a network interface 11c, which are interconnected via a system bus. It should be noted that... Figure 11Only a computer device 11 with component memory 11a, processor 11b, and network interface 11c is shown in the illustration. However, it should be understood that it is not required to implement all of the shown components, and more or fewer components may be implemented instead. Those skilled in the art will understand that the computer device described herein is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0099] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.

[0100] The memory 11a includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11a may be an internal storage unit of the computer device 11, such as the hard disk or memory of the computer device 11. In other embodiments, the memory 11a may also be an external storage device of the computer device 11, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. Of course, the memory 11a may include both internal storage units and external storage devices of the computer device 11. In this embodiment, the memory 11a is typically used to store the operating system and various application software installed on the computer device 11, such as computer-readable instructions for running an automated defect repair method. In addition, the memory 11a can also be used to temporarily store various types of data that have been output or will be output.

[0101] In some embodiments, the processor 11b may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor 11b is typically used to control the overall operation of the computer device 11. In this embodiment, the processor 11b is used to execute computer-readable instructions stored in the memory 11a or to process data, for example, to execute computer-readable instructions for the automated defect repair method described above.

[0102] The network interface 11c may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 11 and other electronic devices.

[0103] The computer device proposed in this embodiment belongs to the field of artificial intelligence technology and is applied to the financial business, online medical, and medical and health care fields, where business logic scenarios and functions are relatively complex. This application obtains the operation detection logs fed back by a preset incremental operation defect detection component for the currently running program; when an operation defect is identified in the currently running program, root cause analysis is performed to obtain the defect generation node and the cause of the defect; the defect generation node and the cause of the defect are input into the defect self-healing repair engine; an automated repair solution is obtained and repaired; until no operation defect can be identified, the automated repair is completed. By utilizing the preset incremental operation defect detection component and the reinforcement learning-based defect self-healing repair engine, the target running program is subjected to operation defect detection, analysis, repair solution selection, and automated repair, improving the efficiency of software defect repair and ensuring the stability of the computer running program. Applying this automated operation defect repair method to the financial business, online medical, and medical and health care fields, where business logic scenarios and functions are relatively complex, can automatically perform defect detection, analysis, repair solution selection, and repair when anomalies or defects occur in the business running program, improving the efficiency of software defect repair and the stability of the operating system.

[0104] This application also provides another embodiment, namely, a computer-readable storage medium storing computer-readable instructions that can be executed by a processor to cause the processor to perform the steps of the above-described automated defect repair method.

[0105] The computer-readable storage medium proposed in this embodiment belongs to the field of artificial intelligence technology and is applied to areas with complex business logic and functions, such as financial business, online medical care, and healthcare. This application obtains the runtime detection logs fed back by a preset incremental runtime defect detection component for the currently running program; when a runtime defect is identified, root cause analysis is performed to determine the defect generation node and cause; the defect generation node and cause are input into a defect self-healing engine; an automated repair solution is obtained and implemented; until no runtime defects can be identified, the automated repair is complete. By utilizing a preset incremental runtime defect detection component and a reinforcement learning-based defect self-healing engine, runtime defect detection, analysis, repair solution selection, and automated repair are performed on the target running program, improving software defect repair efficiency and ensuring the stability of the computer running program. Applying this automated runtime defect repair method to areas with complex business logic and functions, such as financial business, online medical care, and healthcare, enables automated defect detection, analysis, repair solution selection, and repair when anomalies or defects occur in the business running program, improving software defect repair efficiency and system stability.

[0106] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0107] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to make the disclosure of this application more thorough and comprehensive. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application. Software tools or components not belonging to this company that appear in the embodiments of this application are merely illustrative examples and do not represent actual use.

[0108] It should be noted that if any AI model software tools or components not belonging to this company appear in the embodiments of this application, they are merely illustrative examples and do not represent actual use. All user personal information involved in the embodiments of this application is authorized (with the knowledge and consent) by the relevant parties or fully authorized by all parties, and the executing entity may obtain it through various legal and compliant means. The collection, storage, use, transmission, provision, and disclosure of the information, data, and signals involved all comply with relevant laws and regulations and do not violate public order and good morals.

Claims

1. An automated method for repairing operational defects, characterized in that, Includes the following steps: Obtain the operation detection log output by the preset incremental operation defect detection component, wherein the operation detection log is generated by the incremental operation defect detection component detecting the currently running program; The runtime detection log is parsed, and the presence of runtime defects in the currently running program is identified based on preset defect discovery fields. When a runtime defect is identified in the currently running program, the defect is first located, and then root cause analysis is performed based on the defect location to obtain the defect generation node and the cause of the defect. The defect generation node and the cause of the defect are input into the reinforcement learning-based defect self-healing repair engine; Obtain the automated repair solution provided by the defect self-healing repair engine for the currently running program; The automated repair scheme is analyzed to obtain all the repair actions involved in the automated repair process, and all the repair actions are serialized and sorted according to their execution order to obtain the serialization and sorting result. Perform all the repair actions according to the serialization and sorting results; Until the latest operation detection logs fed back by the currently running program are analyzed and no operation defects are identified, the current running program completes this automatic repair.

2. The automated repair method for operational defects according to claim 1, characterized in that, Before performing the step of obtaining the runtime detection logs output by the preset incremental runtime defect detection component, the method further includes: Retrieve historical test cases built for various defect issues; Summarize all test cases and generate training samples for learning; The training samples are input into the pre-built runtime defect detection component to learn defect detection knowledge, and a runtime defect detection component with completed learning and training is obtained. The learned and trained runtime defect detection component is imported as a detection plugin into the currently running program to detect the running status of the currently running program.

3. The automated repair method for operational defects according to claim 2, characterized in that, Before performing the step of inputting the training samples into the pre-built running defect detection component to learn defect detection knowledge and obtain the trained running defect detection component, the method further includes: The training samples used for learning are input into a preset discriminative network as discriminative knowledge; The training samples used for learning are input into a preset generative network as reference knowledge for generation, and the generative network is trained to generate new test cases. Continuously acquire all the latest test cases generated by the generation network, and continuously input all the latest test cases into the discrimination network, and combine the discrimination knowledge to obtain the generation discrimination result; Until the generated discrimination results show that all the latest test cases meet the preset discrimination requirements, all the latest test cases are added to the learning training sample to expand the learning training sample. The preset discrimination requirements include that all the latest test cases are available test cases that meet the defect detection requirements.

4. The automated repair method for operational defects according to claim 1, characterized in that, Before performing the step of inputting the defect-generating node and the cause of defect generation into the reinforcement learning-based defect self-healing repair engine, the method further includes: Obtain the causes and solutions for defects identified in advance for historical defect issues; Based on the causes of the defects and the solutions to the defects, construct training data pairs; The training data pairs are used as training data, and the graph neural network learning method is used to learn the correlation mapping relationship between the causes of different defects and the solutions to different defects. Based on the correlation mapping between different causes of defects and different defect solutions, an initial knowledge graph for defect resolution is constructed.

5. The automated repair method for operational defects according to claim 4, characterized in that, Before performing the step of inputting the defect-generating node and the cause of defect generation into the reinforcement learning-based defect self-healing repair engine, the method further includes: Obtain the business execution logic diagram of the currently running program that has been acquired in advance; Analyze the business execution logic graph to obtain the execution node information involved in each step of the business execution process; Analyze the initial knowledge graph for defect resolution to obtain all the causes of defects contained in the initial knowledge graph for defect resolution. Using graph neural networks, we learn the correlation between the information of all execution nodes and the causes of different defects; Based on the correlation between the full execution node information and the causes of different defects, and the correlation mapping between the causes of different defects and the solutions to different defects, the initial knowledge graph for defect resolution is adaptively adjusted to obtain an initial knowledge graph for defect resolution suitable for the currently running program.

6. The automated repair method for operational defects according to claim 5, characterized in that, Before performing the step of inputting the defect-generating node and the cause of defect generation into the reinforcement learning-based defect self-healing repair engine, the method further includes: The initial knowledge graph of defect resolution in the currently running program is analyzed to obtain the association mapping results between execution node information, defect causes and defect solutions; The repair execution actions contained in different defect solutions are extracted in the order of execution to obtain defect repair execution information; The association mapping results between the execution node information, the cause of the defect and the defect solution, and the defect repair execution information are used together as defect repair knowledge. Reinforcement learning is then used to learn all the repair execution actions contained in the defect repair knowledge and the execution order between each associated repair execution action. Based on all the repair actions contained in the defect repair knowledge and the execution order of each related repair action, an initial defect self-healing repair engine is constructed.

7. The automated repair method for operational defects according to any one of claims 1 to 6, characterized in that, The step of obtaining the automated repair solution provided by the defect self-healing repair engine for the currently running program includes: Based on the initial knowledge graph for defect resolution of the currently running program, identify whether the cause of the defect in the currently running program is recorded in the initial knowledge graph for defect resolution; If the cause of the defect is recorded in the initial knowledge graph for defect resolution; Based on the correlation mapping results between execution node information, defect causes and defect solutions, as well as the defect causes and defect generation nodes of the currently running program, the corresponding defect solutions are determined as the automated repair solutions through a filtering method.

8. An automated repair device for operational defects, characterized in that, include: The runtime detection log acquisition module is used to acquire runtime detection logs output by a preset incremental runtime defect detection component, wherein the runtime detection logs are generated by the incremental runtime defect detection component detecting the currently running program; The runtime defect identification module is used to parse the runtime detection log and identify whether the currently running program has runtime defects based on preset defect discovery fields. The defect generation analysis module is used to first locate the defect in the currently running program when a runtime defect is identified, and then perform root cause analysis based on the defect location to obtain the defect generation node and the cause of the defect. The input repair engine module is used to input the defect generation node and the cause of defect generation into the reinforcement learning-based defect self-healing repair engine. The repair solution acquisition module is used to acquire the automated repair solution provided by the defect self-healing repair engine for the currently running program; The repair action organization module is used to parse the automated repair scheme, obtain all repair actions involved in the automated repair, and serialize and sort all repair actions according to their execution order to obtain the serialization and sorting result. The repair action execution module is used to execute all the repair actions according to the serialization sorting results; The repair of the authentication module is complete. If no operational defect can be identified when parsing the latest operation detection logs returned by the currently running program, the current running program has completed this automatic repair.

9. A computer device, characterized in that, The method includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the automated defect repair method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the automated defect repair method as described in any one of claims 1 to 7.