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

Method and device for generating update log Download PDF

Info

Publication number
CN112783903B
CN112783903B CN201911081475.7A CN201911081475A CN112783903B CN 112783903 B CN112783903 B CN 112783903B CN 201911081475 A CN201911081475 A CN 201911081475A CN 112783903 B CN112783903 B CN 112783903B
Authority
CN
China
Prior art keywords
package
trigger information
program
packaging
product package
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.)
Active
Application number
CN201911081475.7A
Other languages
Chinese (zh)
Other versions
CN112783903A (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

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 the following steps: acquiring trigger information, respectively packaging the trigger information and a program corresponding to the trigger information to obtain a trigger information package and a package program package, and packaging the trigger information package and the package program package into at least one sub-product package; combining the at least one sub-product package to generate a new product package; and generating an update log according to the new product package and the original product package. The embodiment solves the technical defects that the prior art excessively relies on the local code generation warehouse to update the journals and the update journal scheme can not be reused, and further achieves the beneficial effects that the update journals are generated and decoupled from the local code generation warehouse and can be reused for multiple-item products to generate the update journals.

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 apparatus for generating an update log.
Background
The update Log (Change Log) is a list that is written in time. The list records significant changes for all versions. The purpose of the update log is to allow the user and/or developer to better know the distinction between the latest version and the original version.
In the prior art, the update log is generated by manually determining the change information between two versions or setting a plug-in of the update log, and the difference is acquired through a git warehouse to generate the update log.
In the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art:
1. in the prior art, the update log can only be generated for a single item. If a product consists of multiple items, an update log needs to be manually generated.
2. In the prior art, only a git warehouse can be relied on to generate an update log, when the version of a product is updated and released, the remote management warehouse is needed to update, however, the data of the local code generation warehouse is lost, so that the scheme of the update log cannot be reused.
Disclosure of Invention
In view of the above, the embodiment of the invention provides a method for generating an update log, which can solve the technical defects that the update log of a local code generation warehouse is excessively dependent and the update log scheme cannot be reused in the prior art, and further achieves the beneficial effects that the update log is generated and decoupled from the local code generation warehouse, and can be reused in multiple-item products to generate the update log.
To achieve the above object, according to one 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 package and a package program package, and packaging the trigger information package and the package program package into at least one sub-product package;
combining the at least one sub-product package to generate a new product package;
and generating an update log according to the new product package and the original product package.
Optionally, the triggering information and the program corresponding to the triggering information are respectively encapsulated to obtain a triggering information encapsulation package and an encapsulation program package, and the triggering information encapsulation package and the encapsulation program package are encapsulated into at least one sub-product package, which includes:
determining a program corresponding to each piece of 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 encapsulating one triggering information encapsulation package and one encapsulation program package into one sub-product package, thereby obtaining a plurality of sub-product packages.
Optionally, generating an update log according to the new product package and the original product package includes:
judging whether the new product package is identical to the original product package;
if the trigger information package is different, acquiring a trigger information package in the new product package;
comparing the trigger information in the trigger information package with the corresponding trigger information in the original product package to obtain a difference result after comparison;
and generating an update log according to the difference result.
Optionally, the triggering information and the corresponding program are packaged simultaneously.
Optionally, before packaging 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, newly added function description, error repair description, interface change description, and other description.
Optionally, generating the trigger information package, the package program package and the new product package in a local warehouse;
after generating the new product package, it includes: and releasing 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 sub-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 package and a package program package, and packaging the trigger information package and the package program package into at least one sub-product package;
the product package generation 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 an embodiment of the present invention, there is provided an electronic device for generating an update log, including:
one or more processors;
storage means 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 for generating an update log provided by the present invention.
According to still another aspect of an embodiment of the present invention, there is provided a computer readable medium having stored thereon a computer program which when executed by a processor implements the method of generating an update log provided by the present invention.
One embodiment of the above invention has the following advantages or benefits:
the method participates in the generation of the new product package by the trigger information, and utilizes the technical means of generating the update log by the trigger information in the new product package, thereby solving the technical defects that the prior art excessively depends on the local generation of the update log of the warehouse and the update log scheme can not be reused, further realizing the decoupling of the update log generation and the local generation of the warehouse, and the method can be reused for generating the update log of the multi-project product.
Further effects of the above-described non-conventional alternatives are 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 the main flow of a method of generating an update log according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of generating an update log according to an embodiment of the present 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 particular module of a released version and a version to be released;
FIG. 5 is a schematic diagram of the major 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 applied;
fig. 7 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered 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 package and a package program package, and packaging the trigger information package and the package program package into at least one sub-product package;
step S102, combining the at least one sub-product package to generate a new product package;
step S103, generating an update log according to the new product package and the original product package.
The method participates in the generation of the new product package by the trigger information, and utilizes the technical means of generating the update log by the trigger information in the new product package, thereby solving the technical defects that the update log of the local code generation warehouse is excessively depended on and the update log scheme cannot be reused in the prior art, further realizing the decoupling of the update log generation warehouse and the local code generation warehouse, and being capable of being multiplexed in the generation of the update log of the multi-project product.
When the triggering information (commit) is acquired, the program corresponding to the triggering information can be acquired from the local code generation warehouse for encapsulation.
Optionally, before packaging 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 (simply called single test, english: unit test) is also called module test, and is a test work for checking the correctness of the program module, so that the beneficial effects of reducing the occurrence times of online accidents and ensuring the correctness of the code logic of the module can be achieved.
Since the program acquired during encapsulation may be associated with a plurality of different trigger information, i.e. the program waiting for encapsulation may originate from different branches, it is possible to aggregate together the encapsulation operations.
Optionally, the triggering information and the program corresponding to the triggering information are respectively encapsulated to obtain a triggering information encapsulation package and an encapsulation program package, and the triggering information encapsulation package and the encapsulation program package are encapsulated into at least one sub-product package, which includes:
determining a program corresponding to each piece of 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 encapsulating one triggering information encapsulation package and one encapsulation program package into one sub-product package, thereby obtaining a plurality of sub-product packages.
Fig. 2 is a flowchart of a method of generating an update log according to an embodiment of the present invention. As shown in fig. 2, first, a trigger information package and a package program package are generated according to trigger information and a corresponding program.
The trigger information package and the packaging program package are then packaged into one or more child product packages (package-a, package-b, package-c). Wherein the child product package may be, but is not limited to: dividing according to different modules for writing codes and dividing according to departments for writing codes; the trigger information package and the package program package may also be packaged in only one sub-product package.
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.
Finally, the update log is determined by comparing the original product package with the version number V1.1.11 with the product package with the version number V1.2.1.
Optionally, generating the trigger information package, the package program package and the new product package in a local warehouse;
after generating the new product package, it includes: and releasing the new product package to a remote management warehouse.
The writing of the program occurs in the local code generation repository. The git warehouse is a local code generation warehouse and can be used for code management service. Packaging of the program is accomplished by CI (Continue Integrate) automated continuous integration. Optionally, the package is issued to a remote management warehouse for generating a new product version in the remote management warehouse, so that a user can conveniently and directly download the latest product version from the remote management warehouse when using the package. 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 mainly comprises at least one of the following:
reconstruction specification (reconstruction) for improving its internal structure without changing the external behavior of the software system. The reconfiguration specification does not change the interface, does not change the program behavior.
A new feature (feature) specification for adding new functional modules.
Error repair (BUG fix) indicates that the BUG is to be repaired and the original error behavior is corrected.
Interface change (interface change) description; as well as other descriptions.
The trigger information can be used for conveniently and clearly knowing the reason of updating the product version in a standardized form, better tracking the reason of the occurrence of the vulnerability and enabling a code developer to clearly know the updated reason when a pull request is sent. The Pull Request is a notification mechanism, which is essentially a way of software collaboration, incorporating code involving different functions into a backbone. In this process, the reason discussion, auditing, and modifying code may also be performed.
By normalizing the trigger information, the automatically generated update log can be more accurate and simplified. For example, the trigger information carries type information: TYPE reconstruct xxx modules.
Optionally, the trigger information and the encapsulation information are encapsulated together when encapsulation is performed, and are synchronized to a remote management warehouse, so that generation of an update log is facilitated. 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 the new product package, wherein each product package is matched with the corresponding version number, so that the universality of the process of enhancing the generation of the update log can be realized, the occurrence times of online accidents can be effectively reduced, and when the loopholes occur, the corresponding loopholes can be positioned more quickly.
Optionally, generating an update log according to the new product package and the original product package includes:
judging whether the new product package is identical to the original product package;
if the trigger information package is different, acquiring a trigger information package in the new product package;
comparing the trigger information in the trigger information package with the corresponding trigger information in the original product package to obtain a difference result after comparison;
and generating an update log according to the difference result.
Optionally, the triggering information and the corresponding program are packaged simultaneously.
Since each product package corresponds to a version number, whether the two product packages are identical can be determined according to the version number of the judged product package.
The following describes in detail "generating an update log from the new product package and the original product package" in a specific embodiment. As shown in fig. 3
S301, obtaining the product names and the version numbers of the released version and the released version.
S302, comparing the version numbers by utilizing the script, and judging whether the version numbers are the same;
if the version numbers are the same, S304 is performed, and no further contrast (diff) is necessary, and no subsequent steps are performed, so that relevant prompts can be performed for 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, npm repository downloads new versions to local by:
wgethttp://npm.jd.com/product-dbp/-/product-dbp-3.1.1158-snapshot.tgz
wherein product-dbp is the product name, and the following numbers are the version numbers.
S305, searching the triggering information file in each package of the product in a recursion mode, and recording the corresponding path.
Specifically, the file of the tag information may be recursively searched through a find command of the nix system.
S306, summarizing triggering (commit) information in packages of the same product, and recording the name of each triggering information.
S307, comparing the released version and the trigger information obtained by integrating the released version respectively.
S308, screening information which exists in the released 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 Change Log information of the assembly through an html template in the script, storing the Change Log file in a current folder, and presenting the Change Log file to a user.
Specifically, FIG. 4 is a specific module of a released version and a version to be released. According to fig. 4, the generated update log is:
development module 1: [ feature ] xxxx; [ bugfix ] xxxx
Development module 2: [ feature ] xxx; [ interface ] xxx
Research and development module 3: [ feature ] xxx
Optionally, generating the update log includes: generate detailed update logs for problem investigation and/or generate concise update logs for presentation to the user. Wherein the format of the update log is html format.
FIG. 5 is a schematic diagram of the major 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, a sub-product package generating module, configured to obtain trigger information, package the trigger information and a program corresponding to the trigger information, respectively, 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;
the module 502 is configured to combine the at least one sub-product package to generate a new product package;
and the module 503 is 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 in which an update log method or apparatus may be employed.
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 is used as a medium to provide communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 605 via the network 604 using the terminal devices 601, 602, 603 to receive or send messages, etc. Various communication client applications such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 601, 602, 603.
The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 605 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using terminal devices 601, 602, 603. The background management server may analyze and process the received data such as the product information query request, and feedback the processing result (e.g., the target push information, the product information—only an example) to the terminal device.
It should be noted that, the method for generating the update log according to the embodiment of the present invention is generally executed by the server 605, and accordingly, the device for generating the 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, there is illustrated a schematic diagram of a computer system 700 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 7 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment 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 according to 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 required for the operation of the system 700 are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other through 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 section 706 including a keyboard, a mouse, and the like; an output portion 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or 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. The 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 therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to 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 shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 701.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 context of this document, 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, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 flowcharts 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 involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, 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 in some cases limit the module itself, and for example, the transmitting module may also be described as "a module that transmits 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 present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include:
acquiring trigger information, respectively packaging the trigger information and a program corresponding to the trigger information to obtain a trigger information package and a package program package, and packaging the trigger information package and the package program package into at least one sub-product package;
combining the at least one sub-product package to generate a new product package;
and generating an update log according to the new product package and the original product package.
According to the technical scheme provided by the embodiment of the invention, the following beneficial effects can be achieved:
the method participates in the generation of the new product version by the trigger information, and utilizes the technical means of generating the update log by the trigger information in the new version, thereby solving the technical defects that the prior art excessively depends on the update log of the local code generation warehouse and the update log scheme can not be reused, further realizing the decoupling of the update log generation warehouse and the local code generation warehouse, and the method can be reused for generating the update log of the multi-project product.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (8)

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 package and a package program package, and packaging the trigger information package and the package program package into at least one sub-product package;
combining the at least one sub-product package to generate a new product package;
generating an update log according to the new product package and the original product package;
packaging the triggering information and the program corresponding to the triggering information respectively to obtain a triggering information package and a packaging program package, and packaging the triggering information package and the packaging program package into at least one sub-product package, wherein the method comprises the following steps:
determining a program corresponding to each piece of 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;
packaging one triggering information package and one packaging program package into one sub-product package, thereby obtaining a plurality of sub-product packages;
generating an update log according to the new product package and the original product package, including:
judging whether the new product package is identical to the original product package;
if the trigger information package is different, acquiring a trigger information package in the new product package;
comparing the trigger information in the trigger information package with the corresponding trigger information in the original product package to obtain a difference result after comparison;
and generating an update log according to the difference result.
2. The method of claim 1, wherein the trigger information and the corresponding program are packaged simultaneously.
3. The method according to claim 1, wherein before packaging 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.
4. 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, newly added function description, error repair description, interface change description, and other description.
5. The method of claim 4, wherein the trigger information package, package program package, and new product package are generated in a local repository;
after generating the new product package, it includes: and releasing the new product package to a remote management warehouse.
6. An apparatus for generating an update log, comprising:
the sub-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 package and a package program package, and packaging the trigger information package and the package program package into at least one sub-product package;
the product package generation module is used for combining the at least one sub-product package to generate a new product package;
the update log generation module is used for generating an update log according to the new product package and the original product package;
the child product package generation module is specifically configured to: determining a program corresponding to each piece of 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;
packaging one triggering information package and one packaging program package into one sub-product package, thereby obtaining a plurality of sub-product packages;
the update log generation module is specifically configured to: judging whether the new product package is identical to the original product package;
if the trigger information package is different, acquiring a trigger information package in the new product package;
comparing the trigger information in the trigger information package with the corresponding trigger information in the original product package to obtain a difference result after comparison;
and generating an update log according to the difference result.
7. An electronic device that generates an update log, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-5.
8. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-5.
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 CN112783903A (en) 2021-05-11
CN112783903B true 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)

Families Citing this family (1)

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

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100625595B1 (en) * 2001-05-28 2006-09-20 한국전자통신연구원 Parallel Logging Method of Transaction Processing System
US8090691B2 (en) * 2004-08-13 2012-01-03 Computer Associates Think, Inc. System and method for variable block logging with log-ahead buffers

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
IEC 61850日志服务的实现策略;韩明峰;郑永志;唐永建;李小滨;;电力系统自动化(第18期);全文 *
一种新的内存数据库快速日志恢复技术;潘国浩;;计算机与信息技术(第05期);全文 *

Also Published As

Publication number Publication date
CN112783903A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN111400061A (en) Data processing method and system
CN112463729B (en) Data file warehousing method and device, electronic equipment and medium
CN111427701A (en) Workflow engine system and business processing method
CN110928571A (en) Business program development method and device
CN112783903B (en) Method and device for generating update log
CN110795331A (en) Software testing method and device
CN112559024A (en) Method and device for generating transaction code change list
CN113360377A (en) Test method and device
CN112445860B (en) Method and device for processing distributed transaction
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN116737662A (en) Method, device, electronic equipment and storage medium for processing business data
CN110825622A (en) Software testing method, device, equipment and computer readable medium
CN110110032B (en) Method and device for updating index file
CN116069725A (en) File migration method, device, apparatus, medium and program product
CN110806967A (en) Unit testing method and device
CN113918525A (en) Data exchange scheduling method, system, electronic device, medium, and program product
CN112835609A (en) Method and device for modifying dependent package download address
CN112241332A (en) Interface compensation method and device
CN113688152B (en) System function self-checking method and device
CN113268417B (en) Task execution method and device
CN116452208B (en) Method, device, equipment and medium for determining change transaction code
CN112783665B (en) Interface compensation method and device
CN109376023B (en) Method and equipment for generating calling information and issuing return code group
CN108984189B (en) Module parsing method and device
CN115422067A (en) Interface testing 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