CN112783903A - Method and device for generating update log - Google Patents

Method and device for generating update log Download PDF

Info

Publication number
CN112783903A
CN112783903A CN201911081475.7A CN201911081475A CN112783903A CN 112783903 A CN112783903 A CN 112783903A CN 201911081475 A CN201911081475 A CN 201911081475A CN 112783903 A CN112783903 A CN 112783903A
Authority
CN
China
Prior art keywords
trigger information
packaging
package
program
packet
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.)
Granted
Application number
CN201911081475.7A
Other languages
Chinese (zh)
Other versions
CN112783903B (en
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.)
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Wodong Tianjun Information Technology 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 Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Wodong Tianjun Information Technology Co Ltd
Priority to CN201911081475.7A priority Critical patent/CN112783903B/en
Publication of CN112783903A publication Critical patent/CN112783903A/en
Application granted granted Critical
Publication of CN112783903B publication Critical patent/CN112783903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for generating an update log, and relates to the technical field of computers. One embodiment of the method comprises: acquiring trigger information, respectively packaging the trigger information and a program corresponding to the trigger information to obtain a trigger information packaging packet and a packaging program packet, and packaging the trigger information packaging packet and the packaging program packet into at least one sub-product packet; combining the at least one sub-product package to generate a new product package; and generating an updating log according to the new product package and the original product package. The embodiment overcomes the technical defects that the warehouse update log is generated by excessively depending on the local code and the update log scheme can not be reused in the prior art, and further has the advantages that the generated update log and the local code generation warehouse are decoupled and can be reused in multi-project products to generate the update log.

Description

Method and device for generating update log
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating an update log.
Background
The update Log (Change Log) is a list that is reverse in time. The list records all versions for significant changes. The purpose of the update log is to allow users and/or developers to better know the differences between the latest version and the original version.
In the prior art, change information between two versions is determined manually when an update log is generated, or a plug-in of the update log is set, and the difference is obtained through a git warehouse to generate the update log.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
1. in the prior art, the update log can be generated only for a single item. If a product consists of multiple items, an update log needs to be generated manually.
2. In the prior art, only a git warehouse is relied on to generate an update log, when the version of a product is updated and released, a remote management warehouse is required to be used for updating, however, data of a local code generation warehouse is lost, and further, a scheme for updating the log cannot be reused.
Disclosure of Invention
In view of this, the embodiment of the present invention provides an update log generation method, which can solve the technical defects that the existing technology excessively depends on local codes to generate warehouse update logs and the update log scheme cannot be reused, thereby achieving the beneficial effects that the generation of the update logs and the generation of the local codes into the warehouse are decoupled and the update logs can be reused in multi-project products to generate the update logs.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of generating an update log, including:
acquiring trigger information, respectively packaging the trigger information and a program corresponding to the trigger information to obtain a trigger information packaging packet and a packaging program packet, and packaging the trigger information packaging packet and the packaging program packet into at least one sub-product packet;
combining the at least one sub-product package to generate a new product package;
and generating an updating log according to the new product package and the original product package.
Optionally, respectively encapsulating the trigger information and the program corresponding to the trigger information to obtain a trigger information encapsulation packet and an encapsulation program packet, and encapsulating the trigger information encapsulation packet and the encapsulation program packet into at least one sub-product packet, including:
determining a program corresponding to each piece of trigger information according to the trigger information, packaging the trigger information into at least one trigger information packaging packet, and packaging the program corresponding to the trigger information into at least one packaging program packet;
and packaging one trigger information packaging packet and one packaging program packet into one sub-product packet so as to obtain a plurality of sub-product packets.
Optionally, generating an update log according to the new product package and the original product package, including:
judging whether the new product package is the same as the original product package;
if the two product packages are different, acquiring a trigger information packaging package in the new product package;
comparing the trigger information in the trigger information packaging packet with the corresponding trigger information in the original product packet to obtain a compared difference result;
and generating an updating log according to the difference result.
Optionally, the trigger information and the corresponding program are encapsulated at the same time.
Optionally, before encapsulating the trigger information and the program corresponding to the trigger information, the method includes: and performing unit test on the program to determine that the logic of the program is correct.
Optionally, the trigger information includes: a description of a program corresponding to the trigger information;
the instructions include at least one of: reconstruction description, new function description, error repair description, interface change description, and other descriptions.
Optionally, generating the trigger information packaging package, the packaging program package and the new product package in a local warehouse;
after generating the new product package, the method comprises the following steps: and issuing the new product package to a remote management warehouse.
According to still another aspect of an embodiment of the present invention, there is provided an apparatus for generating an update log, including:
the child product package generation module is used for acquiring trigger information, respectively packaging the trigger information and a program corresponding to the trigger information to obtain a trigger information packaging package and a packaging program package, and packaging the trigger information packaging package and the packaging program package into at least one child product package;
the product package generating module is used for combining the at least one sub-product package to generate a new product package;
and the update log generation module is used for generating an update log according to the new product package and the original product package.
According to another aspect of the embodiments of the present invention, there is provided an electronic device for generating an update log, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method of generating an update log provided by the present invention.
According to still another aspect of embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, the program, when executed by a processor, implementing the method for generating an update log provided by the present invention.
One embodiment of the above invention has the following advantages or benefits:
the invention takes the trigger information into the generation of a new product package, and utilizes the technical means of the trigger information in the new product package to generate the update log, thereby solving the technical defects that the prior art excessively depends on the local generation warehouse update log and the update log scheme can not be reused, further achieving the purpose of decoupling the generation of the update log and the local generation warehouse, and the method of the invention can be reused for a plurality of products to generate the update log.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of a main flow of a method of generating an update log according to an embodiment of the invention;
FIG. 2 is a flow diagram of a method of generating an update log according to an embodiment of the invention;
FIG. 3 is a flow chart of generating an update log based on the new product package and the original product package;
FIG. 4 is a detailed block diagram of a released version and a to-be-released version;
FIG. 5 is a schematic diagram of the main modules of an apparatus for generating an update log according to an embodiment of the present invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 7 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a method for generating an update log according to an embodiment of the present invention, as shown in fig. 1, including:
step S101, acquiring trigger information, respectively packaging the trigger information and a program corresponding to the trigger information to obtain a trigger information packaging packet and a packaging program packet, and packaging the trigger information packaging packet and the packaging program packet into at least one sub-product packet;
step S102, combining the at least one sub-product package to generate a new product package;
and step S103, generating an update log according to the new product package and the original product package.
The invention takes the trigger information into the generation of a new product package, and utilizes the trigger information in the new product package to generate the update log, thereby solving the technical defects that the prior art excessively depends on local codes to generate the warehouse update log and the update log scheme can not be reused, further achieving the purpose of decoupling the generation of the update log and the generation of the local codes into the warehouse, and the method of the invention can be reused for a plurality of products to generate the update log.
And after the trigger information (commit) is acquired, acquiring a program corresponding to the trigger information from a local code generation warehouse for packaging.
Optionally, before encapsulating the trigger information and the program corresponding to the trigger information, the method includes: and performing unit test on the program to determine that the logic of the program is correct. The Unit test (called single test for short, english: Unit Testing) is also called module test, and is a test work for checking correctness of a program module, and can achieve the beneficial effects of reducing the occurrence frequency of online accidents and ensuring the correctness of module code logic.
Since the programs obtained during encapsulation may be associated with a plurality of different trigger messages, i.e. the programs waiting for encapsulation may originate from different branches, they may be grouped together by the encapsulation operation.
Optionally, therefore, respectively encapsulating the trigger information and the program corresponding to the trigger information to obtain a trigger information encapsulation packet and an encapsulation program packet, and encapsulating the trigger information encapsulation packet and the encapsulation program packet into at least one sub-product packet, including:
determining a program corresponding to each piece of trigger information according to the trigger information, packaging the trigger information into at least one trigger information packaging packet, and packaging the program corresponding to the trigger information into at least one packaging program packet;
and packaging one trigger information packaging packet and one packaging program packet into one sub-product packet so as to obtain a plurality of sub-product packets.
FIG. 2 is a flow diagram of a method of generating an update log according to an embodiment of the invention. As shown in fig. 2, first, a trigger information encapsulation packet and an encapsulation program packet are generated based on trigger information and a corresponding program.
And then packaging the trigger information packaging packet and the packaging program packet into one or more sub-product packets (packet-a, packet-b and packet-c). Wherein, the sub-product package can be but not limited to: dividing according to different modules of the written codes and dividing according to departments of the written codes; the trigger information packaging packet and the packaging program packet can be packaged in only one sub-product packet.
And then combining the package-a, the package-b and the package-c to generate the product package. The version number of the product package is V1.2.1.
And finally, comparing the original product package with the version number of V1.1.11 with the product package with the version number of V1.2.1 to determine an update log.
Optionally, generating the trigger information packaging package, the packaging program package and the new product package in a local warehouse;
after generating the new product package, the method comprises the following steps: and issuing the new product package to a remote management warehouse.
The writing of the program occurs at the local code generation repository. Wherein, the git warehouse is one of the local code generation warehouses and can be used for the service of code management. Packaging of programs is done by ci (continue integration) automated persistent integration. Optionally, the package is released to a remote management repository for generating a new product version in the remote management repository, thereby facilitating a user to directly download the latest product version from the remote management repository when in use. Wherein the remote management repository may include, but is not limited to, one of: java's Maven repository, Node's NPM repository, Python's pip repository.
The trigger information carries a description about a program corresponding to the trigger information, and the description mainly comprises at least one of the following components:
and (4) reconstructing a specification (refactor reconstruction) for improving the internal structure of the software system on the premise of not changing the external behavior of the software system. The reconfiguration shows that the interface is not changed and the program behavior is not changed.
And adding a new function (feature) description for adding a new function module.
And error repair (BUG fix) description used for repairing the BUG and correcting the original error behavior.
Interface change (interface change) description; and other descriptions.
The trigger information can be used for conveniently and clearly knowing the reasons for updating the product version in a normalized mode, better tracking the reasons for the vulnerability, and enabling a code developer to know the reasons for updating more clearly in pull request. The Pull Request is a notification mechanism, which is essentially a cooperative way of software, and incorporates code relating to different functions into a flow of the backbone. During the process, reason discussion, auditing and code modification can also be carried out.
By standardizing the trigger information, the automatically generated update log can be more accurate and simplified. For example, type information is carried in the trigger information: [ TYPE ] reconstructs the xxx modules.
Optionally, the trigger information and the encapsulation information are encapsulated together during encapsulation, and are synchronized to a remote management repository, which is beneficial to generating an update log. In determining the update log, the update log may be determined using the trigger information.
In the invention, a plurality of packages can be combined (assembled) to generate a new product package, wherein each product package is matched with a corresponding version number, so that the universality of the process of generating the update log can be enhanced, the occurrence frequency of online accidents can be effectively reduced, and when a bug occurs, the corresponding bug can be positioned more quickly.
Optionally, generating an update log according to the new product package and the original product package, including:
judging whether the new product package is the same as the original product package;
if the two product packages are different, acquiring a trigger information packaging package in the new product package;
comparing the trigger information in the trigger information packaging packet with the corresponding trigger information in the original product packet to obtain a compared difference result;
and generating an updating log according to the difference result.
Optionally, the trigger information and the corresponding program are encapsulated at the same time.
Because each product package corresponds to a version number, whether the two product packages are the same or not can be determined according to the version number of the judged product package.
The following describes "generating an update log according to the new product package and the original product package" in detail with an embodiment. As shown in fig. 3
S301, acquiring product names and version numbers of the to-be-released version and the released version.
S302, comparing the version numbers by using the script and judging whether the version numbers are the same;
if the version numbers are the same, S304 is executed, no further comparison (diff) is necessary, no subsequent step is performed, and a relevant prompt may be made to the user.
If the version numbers are different, S303 is executed, and the release version is downloaded to the folder of the product package of the corresponding version. Specifically, the npm repository downloads the new version locally by commanding:
wgethttp://npm.jd.com/product-dbp/-/product-dbp-3.1.1158-snapshot.tgz
wherein product-dbp is the product name, and the number following it is the version number.
S305, searching a trigger information file in each package of the product in a recursive mode, and recording a corresponding path.
Specifically, the file of the marking information can be recursively searched through a find command carried by the system × nix.
S306, summarizing the trigger (commit) information in the package of the same product, and recording the name of each trigger information.
S307, comparing the released versions with the trigger information obtained by respectively summarizing the released versions.
S308, screening the information which exists in the release version and does not exist in the released version, and summarizing the information into update Log (Change Log) information.
And finally, generating a Change Log file for the summarized Change Log information through an html template in the script, storing the Change Log file in the current folder, and presenting the Change Log file to the user.
Specifically, FIG. 4 shows specific modules of a published version and a to-be-published version. According to fig. 4, the generated update log is:
the research and development module 1: [ feature ] xxxx; [ bugfix ] xxxx
And 2, a research and development module: [ feature ] xxx; [ interface ] xxx
And a research and development module 3: [ feature ] xxx
Optionally, generating an update log comprises: a detailed update log is generated for problem troubleshooting, and/or a concise update log is generated for presentation to a user. Wherein the format of the update log is html format.
FIG. 5 is a schematic diagram of the main modules of an apparatus for generating an update log according to an embodiment of the present invention; as shown in fig. 5, there is provided an apparatus 500 for generating an update log, including:
the module 501 and the sub-product package generation module are configured to acquire trigger information, respectively package the trigger information and a program corresponding to the trigger information to obtain a trigger information package and a package program package, and package the trigger information package and the package program package into at least one sub-product package;
a module 502 and a product package generating module, configured to combine the at least one sub-product package to generate a new product package;
the module 503 and the update log generation module are configured to generate an update log according to the new product package and the original product package.
FIG. 6 illustrates an exemplary system architecture 600 of a method or apparatus for generating an update log to which embodiments of the invention may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 serves to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 605. Network 604 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 601, 602, 603 to interact with the server 605 via the network 604 to receive or send messages or the like. The terminal devices 601, 602, 603 may have installed thereon various communication client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 605 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 601, 602, 603. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the method for generating an update log according to the embodiment of the present invention is generally executed by the server 605, and accordingly, the apparatus for generating an update log is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 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 bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a sending module, an obtaining module, a determining module, and a first processing module. The names of these modules do not form a limitation on the modules themselves in some cases, and for example, the sending module may also be described as a "module sending a picture acquisition request to a connected server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
acquiring trigger information, respectively packaging the trigger information and a program corresponding to the trigger information to obtain a trigger information packaging packet and a packaging program packet, and packaging the trigger information packaging packet and the packaging program packet into at least one sub-product packet;
combining the at least one sub-product package to generate a new product package;
and generating an updating log according to the new product package and the original product package.
According to the technical scheme of the embodiment of the invention, the following beneficial effects can be achieved:
the invention takes the trigger information into the generation of the new product version, and utilizes the technical means of the trigger information in the new version to generate the update log, thereby solving the technical defects that the prior art excessively depends on the local code to generate the warehouse update log and the update log scheme can not be reused, further achieving the purpose of decoupling the generation of the update log and the generation of the local code to generate the warehouse, and the method of the invention can be reused for a plurality of products to generate the update log.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of generating an update log, comprising:
acquiring trigger information, respectively packaging the trigger information and a program corresponding to the trigger information to obtain a trigger information packaging packet and a packaging program packet, and packaging the trigger information packaging packet and the packaging program packet into at least one sub-product packet;
combining the at least one sub-product package to generate a new product package;
and generating an updating log according to the new product package and the original product package.
2. The method according to claim 1, wherein the step of encapsulating the trigger information and the program corresponding to the trigger information respectively to obtain a trigger information encapsulation package and an encapsulation program package, and encapsulating the trigger information encapsulation package and the encapsulation program package into at least one sub-product package comprises:
determining a program corresponding to each piece of trigger information according to the trigger information, packaging the trigger information into at least one trigger information packaging packet, and packaging the program corresponding to the trigger information into at least one packaging program packet;
and packaging one trigger information packaging packet and one packaging program packet into one sub-product packet so as to obtain a plurality of sub-product packets.
3. The method of claim 2, wherein generating an update log from the new product package and the original product package comprises:
judging whether the new product package is the same as the original product package;
if the two product packages are different, acquiring a trigger information packaging package in the new product package;
comparing the trigger information in the trigger information packaging packet with the corresponding trigger information in the original product packet to obtain a compared difference result;
and generating an updating log according to the difference result.
4. The method of claim 3, wherein the trigger information and the corresponding program are encapsulated simultaneously.
5. The method of claim 1, wherein before encapsulating the trigger information and the program corresponding to the trigger information, respectively, the method comprises: and performing unit test on the program to determine that the logic of the program is correct.
6. The method of claim 1, wherein the trigger information comprises: a description of a program corresponding to the trigger information;
the instructions include at least one of: reconstruction description, new function description, error repair description, interface change description, and other descriptions.
7. The method of claim 6, wherein the trigger information encapsulation package, encapsulation procedure package, and new product package are generated in a local repository;
after generating the new product package, the method comprises the following steps: and issuing the new product package to a remote management warehouse.
8. An apparatus that generates an update log, comprising:
the child product package generation module is used for acquiring trigger information, respectively packaging the trigger information and a program corresponding to the trigger information to obtain a trigger information packaging package and a packaging program package, and packaging the trigger information packaging package and the packaging program package into at least one child product package;
the product package generating module is used for combining the at least one sub-product package to generate a new product package;
and the update log generation module is used for generating an update log according to the new product package and the original product package.
9. An electronic device that generates an update log, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN201911081475.7A 2019-11-07 2019-11-07 Method and device for generating update log Active CN112783903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911081475.7A CN112783903B (en) 2019-11-07 2019-11-07 Method and device for generating update log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911081475.7A CN112783903B (en) 2019-11-07 2019-11-07 Method and device for generating update log

Publications (2)

Publication Number Publication Date
CN112783903A true CN112783903A (en) 2021-05-11
CN112783903B CN112783903B (en) 2024-04-05

Family

ID=75748844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911081475.7A Active CN112783903B (en) 2019-11-07 2019-11-07 Method and device for generating update log

Country Status (1)

Country Link
CN (1) CN112783903B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117389615A (en) * 2023-12-12 2024-01-12 山东科技大学 Program reconstruction method of industrial control board

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020178177A1 (en) * 2001-05-28 2002-11-28 Park Nam Shik Parallel logging method for transaction processing system
US20060036660A1 (en) * 2004-08-13 2006-02-16 Lynn Joseph B System and method for variable block logging with log-ahead buffers
CN1777874A (en) * 2003-04-21 2006-05-24 艾珀利斯网络公司 System and method for network quality of service protection on security breach detection
JP2010244117A (en) * 2009-04-01 2010-10-28 Nec Corp Replication system, master server, replica server, replication method, and program
CN102110167A (en) * 2011-03-01 2011-06-29 上海奈凯电子科技有限公司 Method for implementing log information management in numerical control system
CN103870357A (en) * 2012-12-17 2014-06-18 中国移动通信集团河南有限公司 Method and system for carrying out data replication
CN108512694A (en) * 2018-03-05 2018-09-07 北京信安世纪科技股份有限公司 A kind of method and device of server log analysis
CN108804295A (en) * 2017-04-28 2018-11-13 北京京东尚科信息技术有限公司 log information recording method and device
CN109460687A (en) * 2018-09-26 2019-03-12 广东中世发智能科技股份有限公司 A kind of reading storage and Method of printing and device based on RFID chip
CN109871388A (en) * 2019-02-19 2019-06-11 北京字节跳动网络技术有限公司 Data cache method, device, whole electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020178177A1 (en) * 2001-05-28 2002-11-28 Park Nam Shik Parallel logging method for transaction processing system
CN1777874A (en) * 2003-04-21 2006-05-24 艾珀利斯网络公司 System and method for network quality of service protection on security breach detection
US20060036660A1 (en) * 2004-08-13 2006-02-16 Lynn Joseph B System and method for variable block logging with log-ahead buffers
JP2010244117A (en) * 2009-04-01 2010-10-28 Nec Corp Replication system, master server, replica server, replication method, and program
CN102110167A (en) * 2011-03-01 2011-06-29 上海奈凯电子科技有限公司 Method for implementing log information management in numerical control system
CN103870357A (en) * 2012-12-17 2014-06-18 中国移动通信集团河南有限公司 Method and system for carrying out data replication
CN108804295A (en) * 2017-04-28 2018-11-13 北京京东尚科信息技术有限公司 log information recording method and device
CN108512694A (en) * 2018-03-05 2018-09-07 北京信安世纪科技股份有限公司 A kind of method and device of server log analysis
CN109460687A (en) * 2018-09-26 2019-03-12 广东中世发智能科技股份有限公司 A kind of reading storage and Method of printing and device based on RFID chip
CN109871388A (en) * 2019-02-19 2019-06-11 北京字节跳动网络技术有限公司 Data cache method, device, whole electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
潘国浩;: "一种新的内存数据库快速日志恢复技术", 计算机与信息技术, no. 05 *
韩明峰;郑永志;唐永建;李小滨;: "IEC 61850日志服务的实现策略", 电力系统自动化, no. 18 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117389615A (en) * 2023-12-12 2024-01-12 山东科技大学 Program reconstruction method of industrial control board
CN117389615B (en) * 2023-12-12 2024-03-01 山东科技大学 Program reconstruction method of industrial control board

Also Published As

Publication number Publication date
CN112783903B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN111400061A (en) Data processing method and system
CN110858172A (en) Automatic test code generation method and device
CN112463729B (en) Data file warehousing method and device, electronic equipment and medium
CN111427701A (en) Workflow engine system and business processing method
CN110895472A (en) Method and device for identifying service change
CN110928571A (en) Business program development method and device
CN113360377B (en) Test method and device
CN109002389B (en) Method and device for automatically testing page
CN112559024A (en) Method and device for generating transaction code change list
CN110795331A (en) Software testing method and device
CN112445860B (en) Method and device for processing distributed transaction
CN112783903B (en) Method and device for generating update log
CN110443034B (en) Risk program file identification method and device, computing equipment and medium
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN110825622A (en) Software testing method, device, equipment and computer readable medium
CN110806967A (en) Unit testing method and device
CN113011858A (en) Audit project configuration and execution method and device
CN112988583A (en) Method and device for testing syntax compatibility of database
CN113448602A (en) Version updating method and device
CN112241332A (en) Interface compensation method and device
CN113762910A (en) Document monitoring method and device
CN112835609A (en) Method and device for modifying dependent package download address
CN112579428A (en) Interface testing method and device, electronic equipment and storage medium
CN113688152B (en) System function self-checking method and device
CN110597802A (en) Message processing method and device

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
GR01 Patent grant
GR01 Patent grant