CN115016815A - Public file processing method, device, equipment and storage medium - Google Patents

Public file processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115016815A
CN115016815A CN202210581540.8A CN202210581540A CN115016815A CN 115016815 A CN115016815 A CN 115016815A CN 202210581540 A CN202210581540 A CN 202210581540A CN 115016815 A CN115016815 A CN 115016815A
Authority
CN
China
Prior art keywords
file
data processing
public file
public
updated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210581540.8A
Other languages
Chinese (zh)
Inventor
梁成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202210581540.8A priority Critical patent/CN115016815A/en
Publication of CN115016815A publication Critical patent/CN115016815A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention relates to the field of artificial intelligence, and discloses a public file processing method, a public file processing device, public file processing equipment and a public file processing storage medium, which are used for improving the processing efficiency of public files. The public file processing method comprises the following steps: calling a file data processing model library to determine a target file data processing model; inputting the updated public file into a target file data processing model for processing, and detecting whether the updated public file operates normally; if the operation is normal, inputting the updated public file into other file data processing models in the file data processing model library for global updating; and if the operation is abnormal, acquiring the standard public file, replacing the updated public file to obtain a replaced public file, inputting the replaced public file into a target file data model for operation state detection to obtain a detection result. In addition, the invention also relates to a block chain technology, and the detection result can be stored in the block chain node.

Description

Public file processing method, device, equipment and storage medium
Technical Field
The invention relates to the field of artificial intelligence, in particular to a public file processing method, a public file processing device, public file processing equipment and a storage medium.
Background
In the front-end development process, due to the variability of business rules, many systems employ a rule engine to isolate business rules from system code, so that the system code does not need to be rewritten when the business rules are used. The front-end application security problem is more and more complicated, the security threat is rapidly increasing, especially the mixed threat risk greatly puzzles users, and the serious damage is caused to the information network and the core service
At present, common file modification automatic detection tools are not available in front-end development, manual detection is still used in most cases, but the manual detection efficiency is low, so that the detection efficiency of common files is very low.
Disclosure of Invention
The invention provides a public file processing method, a public file processing device, public file processing equipment and a public file processing storage medium, which are used for improving the processing efficiency of public files.
The first aspect of the present invention provides a public file processing method, including: acquiring modification operation corresponding to an initial public file in a preset git warehouse, and updating the initial public file according to the modification operation to obtain an updated public file; calling a preset file data processing model library to determine a target file data processing model corresponding to the updated public file; inputting the updated public file into the target file data processing model for processing, and detecting whether the updated public file normally operates in the target file data processing model; if the updated public file normally runs in the target file data processing model, respectively inputting the updated public file into a plurality of file data processing models except the target file data processing model in the file data processing model base so as to globally update the updated public file; and if the updated public file does not normally run in the target file data processing model, acquiring a preset standard public file from the git warehouse, replacing the updated public file by the standard public file to obtain a replaced public file, and inputting the replaced public file into the target file data model for running state detection to obtain a detection result.
Optionally, in a first implementation manner of the first aspect of the present invention, the public file processing method further includes: comparing the updated public file with a preset initial public file to obtain difference information between the updated public file and the initial public file; generating annotation information corresponding to the updated common file based on the difference information.
Optionally, in a second implementation manner of the first aspect of the present invention, the comparing the updated public file with a preset initial public file to obtain difference information between the updated public file and the initial public file includes: acquiring file data corresponding to the updated public file and standard data corresponding to the initial public file; comparing the file data with the standard data to obtain target data corresponding to the file data and the standard data; and generating difference information between the updated public file and the updated public file according to the target data.
Optionally, in a third implementation manner of the first aspect of the present invention, the invoking a preset file data processing model library to determine a target file data processing model corresponding to the updated public file includes: acquiring service activity corresponding to a plurality of candidate file data processing models; sequencing the service activity corresponding to the candidate file data processing models to obtain a target sequence; and taking the candidate file data processing model corresponding to the minimum service activity in the target sequence as a target file data processing model.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the inputting the updated public file into the target file data processing model for processing, and detecting whether the updated public file normally operates in the target file data processing model includes: detecting whether the target file data processing model sends verification passing information or not; if so, determining that the updated public file normally runs on the target file data processing model; if not, determining that the updated public file is not normally operated on the target file data processing model.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after determining that the updated common file does not normally run on the target file data processing model if the updated common file does not run normally, the common file processing method further includes: acquiring associated equipment corresponding to the updated public file; generating verification failure information corresponding to the updated public file according to preset test data; forwarding the verification failure information to the associated device.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the if the updated common file normally operates in the target file data processing model, respectively inputting the updated common file into a plurality of file data processing models other than the target file data processing model in the file data processing model library to globally update the updated common file, the common file processing method further includes: receiving a version rollback instruction, and detecting whether a public file of a target version corresponding to the version rollback instruction is the updated public file; if not, acquiring the public file corresponding to the target version from the git warehouse; and inputting the public file corresponding to the target version into the target file data processing model for global updating.
A second aspect of the present invention provides a common document processing apparatus comprising: the acquisition module is used for acquiring modification operation corresponding to an initial public file in a preset git warehouse and updating the initial public file according to the modification operation to obtain an updated public file; the processing module is used for calling a preset file data processing model library to determine a target file data processing model corresponding to the updated public file; the detection module is used for inputting the updated public file into the target file data processing model for processing and detecting whether the updated public file normally operates in the target file data processing model; the updating module is used for respectively inputting the updated public file into a plurality of file data processing models except the target file data processing model in the file data processing model library to globally update the updated public file if the updated public file normally runs in the target file data processing model; and the replacing module is used for acquiring a preset standard public file from the git warehouse and replacing the updated public file by the standard public file to obtain a replaced public file if the updated public file does not operate normally in the target file data processing model, and inputting the replaced public file into the target file data model for operation state detection to obtain a detection result.
Optionally, in a first implementation manner of the second aspect of the present invention, the public file processing apparatus further includes: the comparison module is used for comparing the updated public file with a preset initial public file to obtain difference information between the updated public file and the initial public file; a generating module for generating annotation information corresponding to the updated common file based on the difference information.
Optionally, in a second implementation manner of the second aspect of the present invention, the comparing module is specifically configured to: acquiring file data corresponding to the updated public file and standard data corresponding to the initial public file; comparing the file data with the standard data to obtain target data corresponding to the file data and the standard data; and generating difference information between the updated public file and the updated public file according to the target data.
Optionally, in a third implementation manner of the second aspect of the present invention, the processing module is specifically configured to: acquiring service activity corresponding to a plurality of candidate file data processing models; sequencing the service activity corresponding to the candidate file data processing models to obtain a target sequence; and taking the candidate file data processing model corresponding to the minimum service activity in the target sequence as a target file data processing model.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the detection module is specifically configured to: detecting whether the target file data processing model sends verification passing information or not; if so, determining that the updated public file normally runs on the target file data processing model; if not, determining that the updated public file is not normally operated on the target file data processing model.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the common document processing model further includes: the verification module is used for acquiring the associated equipment corresponding to the updated public file; generating verification failure information corresponding to the updated public file according to preset test data; forwarding the verification failure information to the associated device.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the public file processing method further includes: the configuration module is used for receiving a version rollback instruction and detecting whether the public file of the target version corresponding to the version rollback instruction is the updated public file or not; if not, acquiring the public file corresponding to the target version from the git warehouse; and inputting the public file corresponding to the target version into the target file data processing model for global updating.
A third aspect of the present invention provides a common document processing apparatus comprising: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the common document processing apparatus to perform the common document processing method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-described common file processing method.
In the technical scheme provided by the invention, a preset file data processing model library is called to determine a target file data processing model corresponding to an updated public file; inputting the updated public file into the target file data processing model for processing, and detecting whether the updated public file normally operates in the target file data processing model; and if the updated public file normally runs in the target file data processing model, inputting the updated public file into a plurality of file data processing models in the file data processing model library and globally updating the updated public file, and if the updated public file abnormally runs in the target file data processing model, acquiring a preset standard public file from the git warehouse and replacing the updated public file by the standard public file. According to the invention, the public file is scanned and detected by the code detection tool, so that the modification cost of manually detecting the public file is effectively reduced, and the efficiency of detecting the public file is improved.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a public document processing method in the embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a public document processing method in the embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of a public document processing device in an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a public document processing device in the embodiment of the present invention;
FIG. 5 is a diagram of an embodiment of a public document processing device in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a public file processing method, a public file processing device, public file processing equipment and a public file processing storage medium, which are used for improving the processing efficiency of public files. The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, a first embodiment of a common file processing method in the embodiment of the present invention includes:
101. acquiring modification operation corresponding to the initial public file in the preset git warehouse, and updating the file of the initial public file according to the modification operation to obtain an updated public file;
it should be noted that the initial public file may be a public file used for performing front-end service management on the file data processing model, and the file type of the initial public file may be drl file, dslr file, xls file, or the like. For example, a device whitelist may be set for a scenario related to system operation of the document data processing model, and a business management rule that the document data processing model performs data interaction only with devices belonging to the device whitelist may be defined.
It is to be understood that the executing subject of the present invention may be a common file processing apparatus, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject. The embodiment of the invention can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result. The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), and a big data and artificial intelligence platform.
102. Calling a preset file data processing model library to determine a target file data processing model corresponding to the updated public file;
specifically, when an updated public file is generated in the git repository, the server needs to input the updated public file into the file data processing model for file processing, and the server may determine at least one file data processing model from the multiple file data processing models as a target file data processing model, and then input the updated public file into the target file data processing model, so as to test whether the updated public file operates normally in a system environment of the target file data processing model. When the target file data processing model receives the updated public file sent by the server, the original version of the public file (i.e. the previous version of the public file) on the target file data processing model is replaced by the updated public file.
103. Inputting the updated public file into the target file data processing model for processing, and detecting whether the updated public file normally operates in the target file data processing model;
specifically, test cases corresponding to the public files are deployed in advance on the multiple candidate file data processing models of the server, and the test cases are used for testing and verifying the updated public files. When the target file data processing model receives the updated public file sent by the server, the server updates the updated public file into the public file of the current version in the target file data processing model, the server can call the application program interface related to the updated public file through executing the test case, obtains interface data generated when the application program interface is called based on the updated public file as an execution result, and then further compares the target result corresponding to the updated public file set in the test case with the execution result.
104. If the updated public file normally runs in the target file data processing model, the updated public file is respectively input into a plurality of file data processing models except the target file data processing model in the file data processing model library to globally update the updated public file;
specifically, when the server monitors that the updated public file runs normally on the target file data processing model, the updated public file is input into other file data processing models except the target file data processing model, so that the updated public file can be deployed when the other file data processing models receive the updated public file, and global update and release of the updated public file are achieved.
105. And if the updated public file does not normally run in the target file data processing model, acquiring a preset standard public file from the git warehouse, replacing the updated public file by the standard public file to obtain a replaced public file, and inputting the replaced public file into the target file data model for running state detection to obtain a detection result.
Specifically, when the server monitors that the updated public file runs abnormally on the target file data processing model, the server acquires the standard public file from the git warehouse and inputs the standard public file into the target file data processing model, after the target file data processing model receives the standard public file, the public file is updated and deployed, the updated public file in the target file data processing model is replaced by the standard public file, the server acquires the preset standard public file from the git warehouse and replaces the updated public file with the standard public file to obtain the replaced public file, and the server inputs the replaced public file into the target file data model to perform running state detection to obtain a detection result. And the server sends modification operation to the updated public file based on git according to the problem of the updated public file in the actual system environment. And at the moment, when the server returns to execute the modification operation of the current version of the public file stored in the git warehouse, updating the current version of the public file into an updated public file according to the modification operation, saving the current version of the public file into a standard public file to obtain a new version of the public file, and performing deployment verification on the most updated public file until the most updated public file is monitored to normally operate on the target file data processing model, and inputting the most updated public file into other file data processing models except the target file data processing model.
Further, the server stores the detection result in a blockchain database, which is not limited herein.
In the embodiment of the invention, a preset file data processing model library is called to determine a target file data processing model corresponding to an updated public file; inputting the updated public file into the target file data processing model for processing, and detecting whether the updated public file normally operates in the target file data processing model; and if the updated public file normally operates in the target file data processing model, inputting the updated public file into a plurality of file data processing models in a file data processing model library and globally updating the updated public file, and if the updated public file does not normally operate in the target file data processing model, acquiring a preset standard public file from the git warehouse and replacing the updated public file by the standard public file. According to the invention, the public file is scanned and detected by the code detection tool, so that the modification cost of manually detecting the public file is effectively reduced, and the efficiency of detecting the public file is improved.
Referring to fig. 2, a second embodiment of the method for processing a public document according to the embodiment of the present invention includes:
201. acquiring modification operation corresponding to the initial public file in the preset git warehouse, and updating the file of the initial public file according to the modification operation to obtain an updated public file;
it should be noted that the initial public file may be a public file used for performing front-end service management on the file data processing model, and the file type of the initial public file may be drl file, dslr file, xls file, or the like. For example, a device whitelist may be set for a scenario related to system operation of the document data processing model, and a business management rule that the document data processing model performs data interaction only with devices belonging to the device whitelist may be defined.
202. Comparing the updated public file with a preset initial public file to obtain difference information between the updated public file and the initial public file;
it should be noted that the initial public file stored in the git repository may be written in advance by a developer, and the server newly creates a public file and stores the public file to the local after writing the rule. The server adds the public file into version control through a git add command, and the server submits the public file to a git warehouse through a git push command. The server manages the initial public file based on git version control without depending on a server system database, reduces occupation of server system database resources, and makes up for the defect that the server can only store the public file of the current version but can not store the public files of multiple versions. When the public file of the current version is the public file of the initial version, the server can directly input the public file of the current version into each file data processing model. The server still stores the public file of the version in the git warehouse aiming at the public file of the current version which is input into each file data processing model in advance, and sends out modification operation on the public file of the current version based on git according to specific requirements so as to modify the public file of the current version stored in the git warehouse, wherein the modification operation can be performed aiming at least one initial public file in the current version. And after the server modifies the public file of the current version based on the modification operation, updating the modified public file of the current version into an updated public file (namely, a new public file of the current version), and storing the updated public file in the git warehouse.
203. Generating annotation information corresponding to the updated common file based on the difference information;
specifically, the server acquires file data corresponding to the updated public file and standard data corresponding to the initial public file; the server compares the file data with the standard data to obtain target data corresponding to the file data and the standard data; the server generates difference information between the updated public file and the updated public file according to the target data. Specifically, when the updated public file is compared with the initial public file, the server mainly compares the content information of the updated public file and the initial public file, and obtains the content information which is inconsistent with the updated public file as the difference information through comparison. The server can compare the updated public file with the initial public file through a text recognition model by a text recognition technology, so as to recognize and obtain different places; alternatively, the server may also extract the respective corresponding structured data of the updated public file and the initial public file, and obtain the different places by comparing the structured data of the updated public file and the initial public file. The server extracts the content information corresponding to the updated public file to generate file data, and monitors whether standard data corresponding to the initial public file is stored in advance. If not, the server extracts content information corresponding to the initial public file to generate standard data; and if so, the server directly acquires the standard data corresponding to the initial public file. And the server generates difference information between the updated public file and the initial public file according to inconsistent target data between the file data and the standard data. When target data with multiple inconsistent positions exist between the file data and the standard data, corresponding data groups are generated for the different positions, all the data groups are acquired as finally obtained difference information, and after the server generates annotation information corresponding to the updated public file, the annotation information is filled in the updated public file in a relevant information display column in the git warehouse. Developers can check the annotation information of the public files of all versions, know the change point of the public files (including the public files modified each time and the specific modification place in the public files) of each version modification, and facilitate the positioning of business problems and the version rollback of the public files. Therefore, the annotation information of the difference of the updated public file compared with the original public file is automatically generated, and the processing efficiency of the public file is improved.
204. Calling a preset file data processing model library to determine a target file data processing model corresponding to the updated public file;
specifically, the server obtains service activity corresponding to a plurality of candidate file data processing models; the server sequences the service activity corresponding to the candidate file data processing models to obtain a target sequence; and the server takes the candidate file data processing model corresponding to the minimum service activity in the target sequence as the target file data processing model. Specifically, the server defines at least one preset system in the multiple file data processing models in advance, and the server directly acquires the file data processing models belonging to the preset system as target file data processing models. The server monitors and acquires the business activity amount corresponding to the file data processing models respectively, and then selects the file data processing model with the minimum business activity amount from the file data processing models as a target file data processing model based on the business activity amount corresponding to each file data processing model, so that when the updated public file has problems, the influence on users of system service can be reduced as much as possible. When monitoring the service activity corresponding to each file data processing model, the server may determine the average daily service activity in a certain period of time in the past according to the historical service activity corresponding to each file data processing model, and use the determined average daily service activity as the service activity corresponding to the file data processing model.
205. Inputting the updated public file into the target file data processing model for processing, and detecting whether the updated public file normally operates in the target file data processing model;
specifically, the server detects whether the target file data processing model sends verification passing information; if the server is in the normal state, the updated public file is determined to normally run on the target file data processing model; and if not, the server determines that the updated public file does not normally run on the target file data processing model. Specifically, when the server target file data processing model tests and verifies the updated public file through the test case, and when the updated public file does not pass the verification on the target file data processing model, the target file data processing model judges that the updated public file is abnormal in operation, the test case is deployed on the target file data processing model, the target file data processing model tests and verifies the updated public file through the test case, and after the updated public file passes the test, verification passing information is sent.
Specifically, the server acquires associated equipment corresponding to the updated public file; the server generates verification failure information corresponding to the updated public file according to preset test data; the server forwards the authentication failure information to the associated device. Specifically, the server forwards the notification information sent by the target file data processing model to the associated device, so that a developer can conveniently perform troubleshooting on the updated public file based on the test data corresponding to the updated public file. In this way, the developer can issue modification operations on the updated public file based on the git repository for problems that the updated public file presents in the real system environment. Therefore, developers can conveniently and timely eliminate obstacles of the updated public files, and the efficiency of processing the updated public files is improved.
206. If the updated public file normally runs in the target file data processing model, the updated public file is respectively input into a plurality of file data processing models except the target file data processing model in the file data processing model library to globally update the updated public file;
it should be noted that, when a developer selects a branch identifier of a certain historical version based on the branch identifier sequence, the server determines that a version rollback instruction is received, takes the public file of the version targeted by the version rollback instruction as the public file of the target version, and then further monitors whether the public file of the target version is an updated public file. And when the server monitors that the public file of the target version is the updated public file, the server does not process the public file. And when the server monitors that the common file of the target version is not the updated common file, the server acquires the common file of the target version from the git warehouse and inputs the common file of the target version into each file data processing model.
207. And if the updated public file does not normally operate in the target file data processing model, acquiring a preset standard public file from the git warehouse, replacing the updated public file with the standard public file to obtain a replaced public file, and inputting the replaced public file into the target file data model to perform operation state detection to obtain a detection result.
Specifically, when the server returns to execute the modification operation of the current version of the public file stored in the git warehouse, the current version of the public file is updated to the updated public file according to the modification operation, the current version of the public file is saved as the standard public file, the new version of the public file is obtained, the most updated public file is deployed and verified, and when the most updated public file is monitored to operate normally on the target file data processing model, the most updated public file is input into other file data processing models except the target file data processing model.
Further, the server stores the detection result in a block chain database, which is not limited herein.
In the embodiment of the invention, a preset file data processing model library is called to determine a target file data processing model corresponding to an updated public file; inputting the updated public file into the target file data processing model for processing, and detecting whether the updated public file normally operates in the target file data processing model; and if the updated public file normally runs in the target file data processing model, inputting the updated public file into a plurality of file data processing models in the file data processing model library and globally updating the updated public file, and if the updated public file abnormally runs in the target file data processing model, acquiring a preset standard public file from the git warehouse and replacing the updated public file by the standard public file. According to the invention, the public file is scanned and detected by the code detection tool, so that the modification cost of manually detecting the public file is effectively reduced, and the efficiency of detecting the public file is improved.
With reference to fig. 3, the following describes a common file processing apparatus in an embodiment of the present invention, and a first embodiment of the common file processing apparatus in the embodiment of the present invention includes:
an obtaining module 301, configured to obtain a modification operation corresponding to an initial public file in a preset git warehouse, and perform file update on the initial public file according to the modification operation, so as to obtain an updated public file;
a processing module 302, configured to invoke a preset file data processing model library to determine a target file data processing model corresponding to the updated public file;
a detection module 303, configured to input the updated public file into the target file data processing model for processing, and detect whether the updated public file operates normally in the target file data processing model;
an updating module 304, configured to, if the updated common file operates normally in the target file data processing model, input the updated common file into the multiple file data processing models other than the target file data processing model in the file data processing model library respectively to perform global updating on the updated common file;
a replacing module 305, configured to, if the updated public file is not operated normally in the target file data processing model, obtain a preset standard public file from the git warehouse, replace the updated public file with the standard public file, obtain a replaced public file, and input the replaced public file into the target file data model for operation state detection, so as to obtain a detection result.
Further, the server stores the detection result in a blockchain database, which is not limited herein.
In the embodiment of the invention, a preset file data processing model library is called to determine a target file data processing model corresponding to an updated public file; inputting the updated public file into the target file data processing model for processing, and detecting whether the updated public file normally operates in the target file data processing model; and if the updated public file normally runs in the target file data processing model, inputting the updated public file into a plurality of file data processing models in the file data processing model library and globally updating the updated public file, and if the updated public file abnormally runs in the target file data processing model, acquiring a preset standard public file from the git warehouse and replacing the updated public file by the standard public file. According to the invention, the public file is scanned and detected by the code detection tool, so that the modification cost of manually detecting the public file is effectively reduced, and the efficiency of detecting the public file is improved.
Referring to fig. 4, a second embodiment of a public document processing apparatus according to the present invention includes:
an obtaining module 301, configured to obtain a modification operation corresponding to an initial public file in a preset git warehouse, and perform file update on the initial public file according to the modification operation, so as to obtain an updated public file;
a processing module 302, configured to invoke a preset file data processing model library to determine a target file data processing model corresponding to the updated public file;
a detection module 303, configured to input the updated public file into the target file data processing model for processing, and detect whether the updated public file operates normally in the target file data processing model;
an updating module 304, configured to, if the updated common file operates normally in the target file data processing model, input the updated common file into the multiple file data processing models other than the target file data processing model in the file data processing model library respectively to perform global updating on the updated common file;
a replacing module 305, configured to, if the updated public file is not operated normally in the target file data processing model, obtain a preset standard public file from the git warehouse, replace the updated public file with the standard public file, obtain a replaced public file, and input the replaced public file into the target file data model for operation state detection, so as to obtain a detection result.
Optionally, the public document processing apparatus further includes:
a comparison module 306, configured to compare the updated public file with a preset initial public file to obtain difference information between the updated public file and the initial public file;
a generating module 307, configured to generate annotation information corresponding to the updated common file based on the difference information.
Optionally, the alignment module 306 is specifically configured to:
acquiring file data corresponding to the updated public file and standard data corresponding to the initial public file; comparing the file data with the standard data to obtain target data corresponding to the file data and the standard data; and generating difference information between the updated public file and the updated public file according to the target data.
Optionally, the processing module 302 is specifically configured to:
acquiring service activity corresponding to a plurality of candidate file data processing models; sequencing the service activity corresponding to the candidate file data processing models to obtain a target sequence; and taking the candidate file data processing model corresponding to the minimum service activity in the target sequence as a target file data processing model.
Optionally, the detecting module 303 is specifically configured to:
detecting whether the target file data processing model sends verification passing information or not; if so, determining that the updated public file normally runs on the target file data processing model; if not, determining that the updated public file is not normally operated on the target file data processing model.
Optionally, the common document processing model further includes:
a verification module 308, configured to obtain associated devices corresponding to the updated public file; generating verification failure information corresponding to the updated public file according to preset test data; forwarding the verification failure information to the associated device.
Optionally, the public file processing method further includes:
a configuration module 309, configured to receive a version rollback instruction, and detect whether a public file of a target version corresponding to the version rollback instruction is the updated public file; if not, acquiring a public file corresponding to the target version from the git warehouse; and inputting the public file corresponding to the target version into the target file data processing model for global updating.
Further, the server stores the detection result in a blockchain database, which is not limited herein.
In the embodiment of the invention, a preset file data processing model library is called to determine a target file data processing model corresponding to an updated public file; inputting the updated public file into the target file data processing model for processing, and detecting whether the updated public file normally operates in the target file data processing model; and if the updated public file normally runs in the target file data processing model, inputting the updated public file into a plurality of file data processing models in the file data processing model library and globally updating the updated public file, and if the updated public file abnormally runs in the target file data processing model, acquiring a preset standard public file from the git warehouse and replacing the updated public file by the standard public file. According to the invention, the public file is scanned and detected by the code detection tool, so that the modification cost of manually detecting the public file is effectively reduced, and the efficiency of detecting the public file is improved.
Fig. 3 and 4 describe the common file processing apparatus in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the common file processing apparatus in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 5 is a schematic structural diagram of a common file processing device according to an embodiment of the present invention, where the common file processing device 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a sequence of instructions operating on the common document processing device 500. Still further, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the common document processing device 500.
The public file processing device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the common document processing device configuration shown in FIG. 5 does not constitute a limitation of common document processing devices, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The invention also provides a public document processing device, which comprises a memory and a processor, wherein the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the public document processing method in the above embodiments.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the common file processing method.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A public file processing method is characterized by comprising the following steps:
acquiring modification operation corresponding to an initial public file in a preset git warehouse, and updating the initial public file according to the modification operation to obtain an updated public file;
calling a preset file data processing model library to determine a target file data processing model corresponding to the updated public file;
inputting the updated public file into the target file data processing model for processing, and detecting whether the updated public file normally operates in the target file data processing model;
if the updated public file normally operates in the target file data processing model, respectively inputting the updated public file into a plurality of other file data processing models in the file data processing model base except the target file data processing model to globally update the updated public file;
and if the updated public file does not normally run in the target file data processing model, acquiring a preset standard public file from the git warehouse, replacing the updated public file by the standard public file to obtain a replaced public file, and inputting the replaced public file into the target file data model for running state detection to obtain a detection result.
2. The common document processing method according to claim 1, further comprising:
comparing the updated public file with a preset initial public file to obtain difference information between the updated public file and the initial public file;
generating annotation information corresponding to the updated common file based on the difference information.
3. The method for processing the public file according to claim 2, wherein the comparing the updated public file with a preset initial public file to obtain the difference information between the updated public file and the initial public file comprises:
acquiring file data corresponding to the updated public file and standard data corresponding to the initial public file;
comparing the file data with the standard data to obtain target data corresponding to the file data and the standard data;
and generating difference information between the updated public file and the updated public file according to the target data.
4. The method for processing the public file according to claim 1, wherein the calling a preset file data processing model library to determine a target file data processing model corresponding to the updated public file comprises:
acquiring service activity corresponding to a plurality of candidate file data processing models;
sequencing the service activity corresponding to the candidate file data processing models to obtain a target sequence;
and taking the candidate file data processing model corresponding to the minimum service activity in the target sequence as a target file data processing model.
5. The method for processing the public document according to claim 1, wherein the inputting the updated public document into the target document data processing model for processing, and detecting whether the updated public document operates normally in the target document data processing model comprises:
detecting whether the target file data processing model sends verification passing information or not;
if so, determining that the updated public file normally runs on the target file data processing model;
if not, determining that the updated public file is not normally operated on the target file data processing model.
6. The common document processing method according to claim 5, wherein after said if not, determining that said updated common document is not functioning properly on said target document data processing model, said common document processing method further comprises:
acquiring associated equipment corresponding to the updated public file;
generating verification failure information corresponding to the updated public file according to preset test data;
forwarding the verification failure information to the associated device.
7. The method for processing the public file according to any one of claims 1 to 6, wherein after the updated public file is respectively input into the plurality of file data processing models other than the target file data processing model in the file data processing model library to globally update the updated public file if the updated public file normally operates in the target file data processing model, the method for processing the public file further comprises:
receiving a version rollback instruction, and detecting whether a public file of a target version corresponding to the version rollback instruction is the updated public file;
if not, acquiring a public file corresponding to the target version from the git warehouse;
and inputting the public file corresponding to the target version into the target file data processing model for global updating.
8. A common document processing apparatus, characterized by comprising:
the acquisition module is used for acquiring modification operation corresponding to an initial public file in a preset git warehouse and updating the initial public file according to the modification operation to obtain an updated public file;
the processing module is used for calling a preset file data processing model library to determine a target file data processing model corresponding to the updated public file;
the detection module is used for inputting the updated public file into the target file data processing model for processing and detecting whether the updated public file normally operates in the target file data processing model;
the updating module is used for respectively inputting the updated public file into a plurality of other file data processing models in the file data processing model base except the target file data processing model to globally update the updated public file if the updated public file normally operates in the target file data processing model;
and the replacing module is used for acquiring a preset standard public file from the git warehouse and replacing the updated public file by the standard public file to obtain a replaced public file if the updated public file does not normally operate in the target file data processing model, and inputting the replaced public file into the target file data model to carry out operation state detection to obtain a detection result.
9. A common document processing apparatus, characterized by comprising: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invoking the instructions in the memory to cause the common document processing device to perform the common document processing method of any of claims 1-7.
10. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement a common file processing method according to any one of claims 1-7.
CN202210581540.8A 2022-05-26 2022-05-26 Public file processing method, device, equipment and storage medium Pending CN115016815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210581540.8A CN115016815A (en) 2022-05-26 2022-05-26 Public file processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210581540.8A CN115016815A (en) 2022-05-26 2022-05-26 Public file processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115016815A true CN115016815A (en) 2022-09-06

Family

ID=83071026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210581540.8A Pending CN115016815A (en) 2022-05-26 2022-05-26 Public file processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115016815A (en)

Similar Documents

Publication Publication Date Title
CN108776643B (en) Target code merging control method and system based on version control process
CN113448862B (en) Software version testing method and device and computer equipment
CN113986880A (en) Database adaptation method, device, equipment and storage medium of business system
CA2349654A1 (en) Server configuration versioning tool
CN113642004A (en) Container mirror image security scanning and repairing method, device and equipment
CN111787045A (en) Migration method and device from private cloud to public cloud
CN114237754A (en) Data loading method and device, electronic equipment and storage medium
CN111782353A (en) Method and device for migrating from public cloud to private cloud
CN111831300A (en) APP updating method and device, electronic equipment and computer readable storage medium
US9396239B2 (en) Compiling method, storage medium and compiling apparatus
CN115016815A (en) Public file processing method, device, equipment and storage medium
CN115167896A (en) Method and device for updating software version, storage medium and electronic equipment
RU128741U1 (en) SYSTEM FOR FORMING SOLVING PROBLEMS OF FUNCTIONING COMPUTER SYSTEMS
CN113127036B (en) Software development system, method, apparatus and medium for continuous integration of code
CN113885896A (en) Application software package installation method and device, computer equipment and storage medium
CN115048082A (en) Micro front-end system construction method and device, server and readable storage medium
CN113568834A (en) SDK code compatibility detection method, device, computer equipment and medium
CN105184168A (en) Method for tracking source code vulnerability correlation influence of Android system
CN111061642A (en) Full-automatic competition data processing system and method based on user data
CN110704483A (en) User routing process positioning method, device, storage medium and device
CN114595159B (en) Test data generation method, device, equipment and storage medium
CN113672269B (en) Data processing method, system, electronic device and program product
CN115049084B (en) Fault equipment tracing method, device, equipment and storage medium based on block chain
CN118035072A (en) Automatic acceptance method and system based on multi-version upgrading
CN109002287B (en) Management method and device for software in cloud data system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination