Integrated error processing method and related device

By building a database and determining weighted values ​​using AI models, we recommend the error reporting solution with the highest success rate, which solves the problem of difficult to understand and locate error reporting information in traditional software continuous integration systems, realizes rapid and automated error reporting processing, and improves integration efficiency and user experience.

CN119292815APending Publication Date: 2025-01-10WEICHAI POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411485348.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The error reporting information in traditional software continuous integration systems is highly professional and difficult to understand, and the error location is difficult to locate, resulting in the inability to provide effective error reporting and repair suggestions, making it difficult to quickly resolve integrated error reporting.

Method used

Build a database, including data tables, solutions and weighted values ​​for recording error description information and solution numbers, query the number by matching description information, and recommend the solution with the highest success rate based on the weighted values, and combine it with AI model training Determine the weighted value and realize automated and semi-automated error reporting processing.

Benefits of technology

It significantly improves the rate of error positioning and resolution, automatic processing improves integration efficiency, reduces manual intervention, shortens troubleshooting time, optimizes software development process, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292815A_ABST
    Figure CN119292815A_ABST
Patent Text Reader

Abstract

The invention discloses an integrated error processing method and a related device, and relates to the technical field of software. The database comprises a first data table used for recording description information of error reporting and an error reporting solution number, a second data table used for recording an error reporting solution corresponding to the error reporting solution number, and a third data table used for recording an error reporting record of the error reporting solution and a weighted value, and the weighted value is determined according to the error reporting record; obtaining description information of the target error report, and querying a target error report solution number of the target error report in the first data table by matching the description information; if the target error reporting solution number is queried, querying a target error reporting solution corresponding to the target error reporting solution number in a second data table, and querying a target weighted value of the target error reporting solution in a third data table; and selecting a scheme with the maximum target weighted value from the target error reporting solutions for recommendation. According to the invention, integration errors can be efficiently solved, and the integration automation degree is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software technology, and in particular to an integrated error processing method and related devices. Background Art

[0002] In traditional software continuous integration systems, error messages are highly professional, difficult to understand, and difficult to locate, which makes it impossible for the system to provide error repair suggestions.

[0003] Therefore, how to quickly resolve integrated errors has become an urgent problem to be solved at this stage. Summary of the invention

[0004] In view of the above problems, the present application provides an integrated error processing method and related devices to achieve the purpose of quickly resolving integrated errors. The specific solution is as follows:

[0005] A first aspect of the present application provides an integrated error reporting processing method, the integrated error reporting processing method comprising:

[0006] Constructing a database, wherein the database includes a first data table for recording error description information and an error resolution number, a second data table for recording an error resolution method corresponding to the error resolution number, and a third data table for recording an error record and a weighted value of the error resolution method, wherein the weighted value is determined according to the error record;

[0007] Obtain description information of the target error, and query the target error resolution number of the target error in the first data table by matching the description information;

[0008] If the target error resolution number is found, the target error resolution method corresponding to the target error resolution number is found in the second data table, and the target weight value of the target error resolution method is found in the third data table;

[0009] A solution with the largest target weight value is selected from the target error reporting solutions for recommendation.

[0010] In a possible implementation, the process of determining the weighted value according to the error report record includes:

[0011] Retrieving a weighted detection model, wherein the weighted detection model is obtained by training a basic model in advance using calibration error records as training samples and calibration weight values ​​corresponding to the training samples as training targets;

[0012] The error report record is input into the weighted detection model to obtain the weighted value output by the weighted detection model, and the weighted value is used to characterize the success rate of the error report solution for the error report.

[0013] In a possible implementation, the database further includes a fourth data table for recording the switch state of the error reporting solution, wherein the switch state is open when the weighted value is greater than or equal to the corresponding weighted threshold, and the switch state is closed when the weighted value is less than the corresponding weighted threshold; the integrated error reporting processing method further includes:

[0014] Querying the target switch state of the recommended error reporting solution in the fourth data table;

[0015] If the target switch state is on, taking the recommended error solution as the actual error solution;

[0016] If the target switch state is off, outputting a first pop-up window message based on the target error and the recommended error solution, and receiving a first operation instruction input by the user for the recommended error solution based on the first pop-up window message;

[0017] If the first operation instruction is an editing instruction, the recommended error reporting solution is edited based on the editing instruction, the edited error reporting solution is used as the actual error reporting solution, and the second data table is updated;

[0018] If the first operation instruction is a confirmation instruction, taking the recommended error reporting solution as the actual error reporting solution;

[0019] The target error is processed using the actual error solution.

[0020] In a possible implementation, the using the actual error solution to process the target error includes:

[0021] Locate the source file where the target error is reported in a stack trace manner, and use the latest version of the source file as the error report file;

[0022] Performing text processing on the error report file based on the actual error report solution;

[0023] The source file is updated according to the text processing result of the error reporting file.

[0024] In a possible implementation, before performing text processing on the error file based on the actual error solution, processing the target error using the actual error solution further includes:

[0025] The format of the error report file is standardized.

[0026] In a possible implementation, the integrated error processing method further includes:

[0027] If the target error resolution number is not found, outputting a second pop-up window message based on the query result of the target error resolution number, and receiving a second operation instruction of the user on the database based on the second pop-up window message;

[0028] The first data table, the second data table, and the third data table are updated based on the second operation instruction.

[0029] A second aspect of the present application provides an integrated error reporting processing device, the integrated error reporting processing device comprising:

[0030] A database construction module, used to construct a database, wherein the database includes a first data table for recording error description information and error solution numbers, a second data table for recording error solutions corresponding to the error solution numbers, and a third data table for recording error records and weighted values ​​of the error solutions, wherein the weighted values ​​are determined based on the error records;

[0031] An error processing module is used to obtain the description information of the target error, and query the target error resolution number of the target error in the first data table by matching the description information; if the target error resolution number is queried, query the target error solution corresponding to the target error resolution number in the second data table, and query the target weighted value of the target error solution in the third data table; select the solution with the largest target weighted value from the target error solutions for recommendation.

[0032] A third aspect of the present application provides a computer program product, comprising computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the integrated error processing method of the above-mentioned first aspect or any implementation method of the first aspect.

[0033] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0034] The memory is used to store computer programs;

[0035] The processor is used to execute the computer program so that the electronic device can implement the integrated error processing method of the above-mentioned first aspect or any implementation manner of the first aspect.

[0036] The fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the integrated error processing method of the above-mentioned first aspect or any implementation method of the first aspect.

[0037] By means of the above technical scheme, the present application provides an integrated error processing method and related devices, which construct a database, wherein the database includes a first data table for recording the description information of the error and the error solution number, a second data table for recording the error solution number corresponding to the error solution number, and a third data table for recording the error record and the weighted value of the error solution, wherein the weighted value is determined according to the error record; obtain the description information of the target error, and query the target error solution number of the target error in the first data table by matching the description information; if the target error solution number is queried, query the target error solution corresponding to the target error solution number in the second data table, and query the target weighted value of the target error solution in the third data table; select the solution with the largest target weighted value from the target error solution for recommendation. With the help of the construction of the database, the present application can automatically recommend the error solution with the largest weighted value for the integrated error. The larger the weighted value, the higher the success rate of solving the error, which can efficiently solve the integrated error and improve the degree of integrated automation. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0039] Figure 1 A flowchart of an integrated error reporting processing method is provided for an embodiment of the present application;

[0040] Figure 2 A partial flow chart of an integrated error processing method provided in an embodiment of the present application;

[0041] Figure 3 Another schematic diagram of a flow chart of an integrated error processing method provided in an embodiment of the present application;

[0042] Figure 4 An example pop-up window diagram for displaying first pop-up window information provided in an embodiment of the present application;

[0043] Figure 5 A schematic diagram of another part of the flow chart of an integrated error processing method provided in an embodiment of the present application;

[0044] Figure 6A schematic diagram of the structure of an integrated error processing device provided in an embodiment of the present application;

[0045] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0047] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0048] The terms "first", "second" etc. in the specification of the application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable in appropriate circumstances, and this is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0049] See also Figure 1 , Figure 1 A flowchart of an integrated error processing method is provided for an embodiment of the present application. Figure 1 As shown, an integrated error processing method provided in an embodiment of the present application may include steps S10 to S40, and these steps are described in detail below.

[0050] S10, construct a database, which includes a first data table for recording error description information and error solution numbers, a second data table for recording error solutions corresponding to error solution numbers, and a third data table for recording error records and weighted values ​​of error solutions, wherein the weighted values ​​are determined based on the error records.

[0051] In an embodiment of the present application, a user can build a database based on experience, namely an experience database, which is used to store information related to experience, and may include personal or organizational practical experience, success stories, failure lessons, best practices, etc., which are stored in a structured form for easy retrieval and analysis.

[0052] Specifically, in the embodiment of the present application, the constructed database includes at least three data tables, namely the first data table, the second data table and the third data table, wherein the first data table records the description information of different reports (such as error number, specific content of the error, person in charge of the error, etc.) and the error resolution number, the second data table records the error solution corresponding to each error resolution number, and the third data table records the error record corresponding to each error solution (such as the category of the error, the total number of errors in the category, the number of times the error solution is used, etc.) and the weighted value, the weighted value can characterize the success rate of the error solution for the error, the weighted value is positively correlated with the success rate, that is, the larger the weighted value, the greater the success rate, and the weighted value is determined according to the corresponding error record. It should be noted that the corresponding relationship between the error resolution number, the error record and the weighted value is recorded in the third data table.

[0053] In a possible implementation, the AI ​​(Artificial Intelligence) model has fewer parameters, is highly targeted, and responds quickly. It is not only suitable for internal use within the company, but also has the potential to be expanded to a wider range of application scenarios in the future. Therefore, the AI ​​(Artificial Intelligence) model can be trained to determine the weighted value of the error solution based on the error record. Figure 2 , Figure 2 A partial flow chart of an integrated error processing method provided in an embodiment of the present application. Figure 2 As shown, an integrated error processing method provided by an embodiment of the present application, wherein the process of determining a weighted value according to an error record may include steps S101 to S102, and these steps are described in detail below:

[0054] S101, retrieve a weighted detection model. The weighted detection model is obtained by training a basic model in advance using calibration error records as training samples and calibration weight values ​​corresponding to the training samples as training targets.

[0055] Specifically, in an embodiment of the present application, the user can calibrate the error records and weighted values ​​used for training in advance, that is, obtain calibrated error records and calibrated weighted values, use the calibrated error records as training samples, and use the calibrated weighted values ​​as training targets, and perform multiple iterative training on the basic model in the AI ​​field until the prediction results of the basic model approach the training targets, terminate the training, and use the basic model that has terminated the training as the weighted detection model.

[0056] S102, inputting the error report record into the weighted detection model to obtain the weighted value output by the weighted detection model, wherein the weighted value is used to characterize the success rate of the error report solution to the error report.

[0057] Specifically, in an embodiment of the present application, after the weighted detection model is obtained through training, the error record can be input into the weighted detection model to obtain the weighted value output by the weighted detection model.

[0058] Of course, in actual applications, as integrated errors are continuously processed, the error processing results can be continuously fed back to the weighted detection model based on user feedback information and error solutions to continuously improve the training of the weighted detection model.

[0059] S20, obtaining description information of the target error, and searching the first data table for a target error resolution number of the target error by matching the description information.

[0060] Specifically, in an embodiment of the present application, the target error is an integrated error to be processed. After the target error is determined, the description information of the target error is obtained, such as the error number of the target error, the specific content of the error, the person responsible for the error, etc. Keywords are extracted from the description information of the target error, and the description information in the first data table is matched in a regular matching manner to query whether there is a matching error in the first data table. If so, an error matched in the first data table is used as the target error, and its error resolution number is obtained, that is, the target error resolution number. In actual applications, an error can have one or more error solutions, so the target error resolution number can be one or more error resolution numbers.

[0061] It should be noted that regular matching is a string processing technology that uses regular expressions to match, search, replace or extract specific patterns in text. The process of regular matching in the embodiment of the present application will not be repeated.

[0062] S30: If the target error resolution number is found, the target error solution corresponding to the target error resolution number is found in the second data table, and the target weighted value of the target error solution is found in the third data table.

[0063] Specifically, in the embodiment of the present application, if the target error solution number is found in the first data table, it means that the target error exists in the first data table, and then the target error solution number is used as a query condition to query the corresponding error solution in the second data table, that is, the target error solution. Each error solution number in the target error solution number has a corresponding error solution, so the target error solution can be one or more error solutions.

[0064] Further, the target error solution number is used as a query condition to query the weighted value of the target error solution in the third data table, that is, the target weighted value, and the target weighted value can be one or more weighted values.

[0065] S40, selecting a solution with the largest target weight value from the target error reporting solutions for recommendation.

[0066] In an embodiment of the present application, when the target error resolution number is an error resolution number, the target error solution is an error solution, and the target weighted value is a weighted value, the target error solution can be directly recommended.

[0067] When the target error resolution number is multiple error resolution numbers, the target error solution is multiple error solutions, and the target weighted value is multiple weighted values, the maximum weighted value among the target weighted values ​​is determined by comparison, and the error solution corresponding to the maximum weighted value is selected for recommendation output. Based on this, the user can process the target error according to the recommended error solution.

[0068] In one possible implementation, in order to handle integrated errors in a manner that combines automation and semi-automation, an embodiment of the present application provides an integrated error processing method, in which the database also includes a fourth data table for recording the switch status of error solutions. When the weighted value is greater than or equal to the corresponding weighted threshold, the switch status is open, and when the weighted value is less than the corresponding weighted threshold, the switch status is closed. This allows the processing methods of different errors to be flexibly adjusted according to actual needs.

[0069] That is, the database also includes a fourth data table, in which the switch status of each error solution is recorded. For an error solution whose weighted value is greater than or equal to the weighted threshold, the switch status is open, and for an error solution whose weighted value is less than the weighted threshold, the switch status is closed, wherein the weighted threshold is preset. It should be noted that the fourth data table records the corresponding relationship between the error solution number and the weighted value.

[0070] See also Figure 3 , Figure 3 Another flow chart of an integrated error processing method provided in an embodiment of the present application. Figure 3 As shown, an integrated error processing method provided in an embodiment of the present application also includes steps S50 to S100, and these steps are described in detail below.

[0071] S50: Query the fourth data table for a target switch state of the recommended error reporting solution.

[0072] Specifically, in the embodiment of the present application, the error solution number of the recommended error solution is used as a search condition to query the corresponding switch state, that is, the target switch state, in the fourth data table.

[0073] S60: If the target switch state is on, the recommended error reporting solution is used as the actual error reporting solution.

[0074] Specifically, in the embodiment of the present application, if the target switch state is on, it means that the success rate of the recommended error reporting solution is relatively high, and the target error can be processed automatically. At this time, the recommended error reporting solution is used as the actual error reporting solution.

[0075] S70: If the target switch state is off, output a first pop-up window message based on the target error and the recommended error solution, and receive a first operation instruction input by the user for the recommended error solution based on the first pop-up window message.

[0076] Specifically, in an embodiment of the present application, if the target switch state is off, it means that the success rate of the recommended error reporting solution is low, and semi-automatic processing of the target error is required. At this time, the corresponding pop-up information, i.e., the first pop-up information, can be output based on the target error and the recommended error reporting solution.

[0077] See also Figure 4 , Figure 4 This is a pop-up window example diagram for displaying first pop-up window information provided in an embodiment of the present application. Figure 4 As shown, the pop-up window contains a display area A for displaying the specific content of the error, a display area B for displaying the recommended error solution, and operation options "automatically modify if the solution is correct", "manually modify and save", "add a new modification solution" and "close the window". Figure 4 In the pop-up window shown, any operation option can be operated to input a corresponding operation instruction, namely, a first operation instruction.

[0078] In actual applications, the pop-up software can be installed in a designated location on the user's electronic device. After the error report is integrated, a pop-up window can be sent to the user through the error location, allowing the user to select a solution.

[0079] S80: If the first operation instruction is an editing instruction, edit the recommended error reporting solution based on the editing instruction, use the edited error reporting solution as the actual error reporting solution, and update the second data table.

[0080] Specifically, in the embodiment of the present application, continue with Figure 4 For example, when the user operates the operation option "Manually modify and save" or "Add new modification plan", it is determined that the first operation instruction is an editing instruction. Based on the editing instruction, the error solution shown in the display area B can be manually modified or deleted and re-added to complete the editing, and the edited error solution is used as the actual error solution.

[0081] Of course, after editing, the error solution in the second data table in the database needs to be updated synchronously.

[0082] S90: If the first operation instruction is a confirmation instruction, the recommended error reporting solution is used as the actual error reporting solution.

[0083] Specifically, in the embodiment of the present application, continue with Figure 4 For example, when the user operates the operation option "automatically modify the solution if it is correct", the first operation instruction is determined to be a confirmation instruction, and the recommended error solution is used as the actual error solution.

[0084] S100, using the actual error solution to process the target error.

[0085] Specifically, in an embodiment of the present application, after obtaining an actual error solution, the code of the source file where the target error is located can be processed based on the actual error solution to solve the target error.

[0086] In one possible implementation, the code is automatically processed to automatically implement error resolution. Figure 5 , Figure 5 Another partial flow chart of an integrated error handling method provided in an embodiment of the present application. Figure 5 As shown, an integrated error processing method is provided in an embodiment of the present application, wherein step S100 "processes the target error using the actual error solution" includes steps S1001 to S1003, and these steps are described in detail below.

[0087] S1001, locating the source file where the target error is located in a stack trace manner, and using the latest version of the source file as the error file.

[0088] In the embodiment of the present application, the software continuous integration system has different project versions under different projects, and each project has a large number of data files for implementing the project, and each data file has different versions on different dates. In this regard, when the target error is processed using the actual error reporting solution, a data file where the target error is located is first located in a stack tracking manner, that is, the source file, and then the latest version of the file in the source file is used as the error file to be processed. In practical applications, the specific line number of the target error in the error file can be located.

[0089] It should be noted that stack trace, in the field of computer science, is a description of active stack frame information at a certain point in time during the running of a program, also known as stack backtrace. It is a commonly used technology in debugging and troubleshooting, which can help developers locate problems in the code.

[0090] S1002: Perform text processing on the error report file based on the actual error report solution.

[0091] Specifically, in the embodiment of the present application, the code in the error report file is text-processed by reading the actual error report solution.

[0092] S1003: Update the version of the source file according to the text processing result of the error reporting file.

[0093] Specifically, in the embodiment of the present application, the text processing result of the error file is used as the latest version of the source file to complete the version update. In real-time applications, the process tracking of version updates and project versions can be achieved by calling the interface provided by the code management tool to implement operations such as update, upload, and checkpoint.

[0094] In addition, to ensure the success rate of error modification, by configuring the code format specification, the data file initially accessed by the software continuous integration system can be formatted in a standardized manner, so as to optimize the code format therein and make the code format standardized to a format that meets the user's requirements. Accordingly, before text processing of the error file based on the actual error solution each time, the error file can also be formatted in a standardized manner.

[0095] In one possible implementation, if the target error resolution number is not found, a second pop-up window message is output based on the query result of the target error resolution number, and a second operation instruction of the user on the database based on the second pop-up window message is received; the first data table, the second data table, and the third data table are updated based on the second operation instruction.

[0096] Specifically, in an embodiment of the present application, if the target error solution number is not found in the first data table, it means that the target error does not exist in the first data table, and the corresponding pop-up window information is output with the query result, that is, the second pop-up window information, and the second pop-up window information is used to prompt that the target error does not exist. At this time, the user can input an operation instruction to the database based on the second pop-up window information, that is, the second operation instruction, and add the description information and error solution number of the target error in the first data table based on the second operation instruction, add the error solution corresponding to the error solution number of the target error in the second data table, and add the error record and weighted value of the error solution corresponding to the target error in the third data table. In the initial state, the error record is empty and the weighted value is the specified value. In this way, the database content is not only improved.

[0097] Through the above description, the integrated error processing method provided by the embodiment of the present application can significantly improve the rate of error location and problem solving by building a comprehensive experience database, improve integration efficiency and reduce work redundancy by automatically modifying errors, thereby accelerating the development process, optimizing and simplifying the software integration process, and realizing the simultaneous processing of multiple projects to improve integration efficiency. The present application has the following advantages:

[0098] 1) Efficient integration and precise positioning. This application can efficiently integrate various error information and accurately locate the error, allowing users to quickly identify the problem, thereby shortening the troubleshooting time.

[0099] 2) Combination of automation and semi-automation. For common error types in the early stage, this application has realized automatic modification, reducing manual intervention; and for complex error reports, after simple confirmation by the user, one-click modification can also be realized, greatly improving the efficiency of problem solving.

[0100] 3) Continuous learning and optimization of the experience database. With the continuous accumulation of experience database data, solutions can be generated more quickly, and the coverage of automatic error modification can be gradually expanded. This not only reduces the user's workload, but also promotes the user's in-depth learning and understanding of error information.

[0101] 4) Dual improvement of integration efficiency and user experience. This application significantly improves the integration efficiency of software development and shortens the product launch cycle. At the same time, it improves user experience by reducing the trouble users face when reporting errors.

[0102] 5) Dynamic adaptation and continuous optimization. This application has dynamic adaptation capabilities and can continuously optimize algorithms and models based on the error conditions in actual application scenarios to ensure long-term efficient error handling capabilities.

[0103] 6) Preventive maintenance and capability expansion. Through in-depth analysis of integrated errors, this application can also provide strong support for preventive maintenance and reduce the possibility of future errors. At the same time, its technical architecture and design concept leave ample room for future functional expansion and performance improvement.

[0104] An integrated error processing method provided by an embodiment of the present application is introduced above, and a device for executing the above integrated error processing method will be introduced below.

[0105] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of an integrated error processing device provided in an embodiment of the present application. Figure 6 As shown, an integrated error processing device provided in an embodiment of the present application includes:

[0106] A database construction module 10 is used to construct a database, wherein the database includes a first data table for recording error description information and error solution numbers, a second data table for recording error solutions corresponding to the error solution numbers, and a third data table for recording error records and weighted values ​​of error solutions, wherein the weighted values ​​are determined based on the error records;

[0107] The error processing module 20 is used to obtain the description information of the target error, and query the target error solution number of the target error in the first data table by matching the description information; if the target error solution number is queried, query the target error solution corresponding to the target error solution number in the second data table, and query the target weighted value of the target error solution in the third data table; select the solution with the largest target weighted value from the target error solutions for recommendation.

[0108] In a possible implementation, the process of the database construction module 10 determining the weighted value according to the error report record includes:

[0109] Recall the weighted detection model. The weighted detection model is obtained by training the basic model in advance with calibrated error records as training samples and calibrated weighted values ​​corresponding to the training samples as training targets. Input the error records into the weighted detection model to obtain the weighted value output by the weighted detection model. The weighted value is used to characterize the success rate of the error solution for the error.

[0110] In a possible implementation, the database further includes a fourth data table for recording the switch state of the error reporting solution, where the switch state is open when the weighted value is greater than or equal to the corresponding weighted threshold, and the switch state is closed when the weighted value is less than the corresponding weighted threshold; the error reporting processing module 20 is further used to:

[0111] The target switch state of the recommended error solution is queried in the fourth data table; if the target switch state is on, the recommended error solution is used as the actual error solution; if the target switch state is off, a first pop-up window message is output based on the target error and the recommended error solution, and a first operation instruction input by the user for the recommended error solution based on the first pop-up window message is received; if the first operation instruction is an editing instruction, the recommended error solution is edited based on the editing instruction, the edited error solution is used as the actual error solution, and the second data table is updated; if the first operation instruction is a confirmation instruction, the recommended error solution is used as the actual error solution; the target error is processed using the actual error solution.

[0112] In a possible implementation, the error processing module 20 for processing the target error using the actual error solution is specifically used to:

[0113] Use stack tracing to locate the source file where the target error is located, and use the latest version of the source file as the error file; perform text processing on the error file based on the actual error solution; and update the source file version based on the text processing result of the error file.

[0114] In a possible implementation, the error processing module 20 is further configured to:

[0115] Standardize the format of error reporting files.

[0116] In a possible implementation, the error processing module 20 is further configured to:

[0117] If the target error resolution number is not found, a second pop-up window message is output based on the query result of the target error resolution number, and a second operation instruction of the user on the database based on the second pop-up window message is received; the first data table, the second data table, and the third data table are updated based on the second operation instruction.

[0118] It should be noted that the detailed functions of each module in the embodiment of the present application can be found in the corresponding public part of the above-mentioned integrated error processing method embodiment, and will not be repeated here.

[0119] The present application also provides an electronic device in an embodiment. Figure 7 , Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0120] like Figure 7 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 to a random access memory (RAM) 703. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0121] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a memory card, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0122] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the integrated error processing methods provided in the embodiments of the present application.

[0123] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any integrated error processing method provided in the embodiment of the present application.

[0124] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0125] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0126] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0127] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. An integrated error processing method, characterized in that: The integrated error reporting processing method comprises: Constructing a database, wherein the database includes a first data table for recording error description information and an error resolution number, a second data table for recording an error resolution method corresponding to the error resolution number, and a third data table for recording an error record and a weighted value of the error resolution method, wherein the weighted value is determined according to the error record; Obtain description information of the target error, and query the target error resolution number of the target error in the first data table by matching the description information; If the target error resolution number is found, the target error resolution method corresponding to the target error resolution number is found in the second data table, and the target weight value of the target error resolution method is found in the third data table; A solution with the largest target weight value is selected from the target error reporting solutions for recommendation.

2. The integrated error processing method according to claim 1, characterized in that: The process of determining the weighted value according to the error report record includes: Retrieving a weighted detection model, wherein the weighted detection model is obtained by training a basic model in advance using calibration error records as training samples and calibration weight values ​​corresponding to the training samples as training targets; The error report record is input into the weighted detection model to obtain the weighted value output by the weighted detection model, and the weighted value is used to characterize the success rate of the error report solution for the error report.

3. The integrated error processing method according to claim 1, characterized in that: The database also includes a fourth data table for recording the switch state of the error reporting solution, wherein the switch state is open when the weighted value is greater than or equal to the corresponding weighted threshold, and the switch state is closed when the weighted value is less than the corresponding weighted threshold; the integrated error reporting processing method also includes: Querying the target switch state of the recommended error reporting solution in the fourth data table; If the target switch state is on, taking the recommended error solution as the actual error solution; If the target switch state is off, outputting a first pop-up window message based on the target error and the recommended error solution, and receiving a first operation instruction input by the user for the recommended error solution based on the first pop-up window message; If the first operation instruction is an editing instruction, the recommended error reporting solution is edited based on the editing instruction, the edited error reporting solution is used as the actual error reporting solution, and the second data table is updated; If the first operation instruction is a confirmation instruction, taking the recommended error reporting solution as the actual error reporting solution; The target error is processed using the actual error solution.

4. The integrated error processing method according to claim 3, characterized in that: The using the actual error solution to process the target error includes: Locate the source file where the target error is reported in a stack trace manner, and use the latest version of the source file as the error report file; Performing text processing on the error report file based on the actual error report solution; The source file is updated according to the text processing result of the error report file.

5. The integrated error processing method according to claim 4, characterized in that: Before performing text processing on the error report file based on the actual error report solution, processing the target error report using the actual error report solution further includes: The format of the error report file is standardized.

6. The integrated error processing method according to claim 1, characterized in that: The integrated error reporting processing method further includes: If the target error resolution number is not found, outputting a second pop-up window message based on the query result of the target error resolution number, and receiving a second operation instruction of the user on the database based on the second pop-up window message; The first data table, the second data table, and the third data table are updated based on the second operation instruction.

7. An integrated error processing device, characterized in that: The integrated error reporting processing device comprises: A database construction module, used to construct a database, wherein the database includes a first data table for recording error description information and error solution numbers, a second data table for recording error solutions corresponding to the error solution numbers, and a third data table for recording error records and weighted values ​​of the error solutions, wherein the weighted values ​​are determined based on the error records; An error processing module is used to obtain the description information of the target error, and query the target error resolution number of the target error in the first data table by matching the description information; if the target error resolution number is queried, query the target error solution corresponding to the target error resolution number in the second data table, and query the target weighted value of the target error solution in the third data table; select the solution with the largest target weighted value from the target error solutions for recommendation.

8. A computer program product, characterized in that It comprises computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the integrated error processing method as claimed in any one of claims 1 to 6.

9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the integrated error processing method as described in any one of claims 1 to 6.

10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the integrated error processing method as described in any one of claims 1 to 6.