CN111897568A - System checking method, device, equipment and storage medium - Google Patents

System checking method, device, equipment and storage medium Download PDF

Info

Publication number
CN111897568A
CN111897568A CN202010641890.XA CN202010641890A CN111897568A CN 111897568 A CN111897568 A CN 111897568A CN 202010641890 A CN202010641890 A CN 202010641890A CN 111897568 A CN111897568 A CN 111897568A
Authority
CN
China
Prior art keywords
deployment package
application deployment
current
full
code
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
CN202010641890.XA
Other languages
Chinese (zh)
Other versions
CN111897568B (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 Zhongguancun Bank Ltd By Share Ltd
Original Assignee
Beijing Zhongguancun Bank Ltd By Share 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 Zhongguancun Bank Ltd By Share Ltd filed Critical Beijing Zhongguancun Bank Ltd By Share Ltd
Priority to CN202010641890.XA priority Critical patent/CN111897568B/en
Publication of CN111897568A publication Critical patent/CN111897568A/en
Application granted granted Critical
Publication of CN111897568B publication Critical patent/CN111897568B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for system verification. Wherein, the method comprises the following steps: compiling the code of the current system version in the production environment into a current application deployment package in response to a system verification instruction; determining a current version number of the current application deployment package; compiling codes with the same version number in a code base into a full-scale application deployment package according to the current version number; and comparing the file contents in the current application deployment package and the full-scale application deployment package, and determining a system verification result of the code base according to a comparison result. By generating the current application deployment package and the full-scale application deployment package and automatically comparing the file contents in the current application deployment package and the full-scale application deployment package, whether the codes in the code base are saved along with the update of the system version in the production environment can be determined, and the system verification efficiency is improved.

Description

System checking method, device, equipment and storage medium
Technical Field
The present invention relates to computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for system verification.
Background
With the update iteration speed of computer software becoming faster and faster, the deployment package on the production environment needs to undergo multiple update deployments when in use, and it is important to verify whether the deployment package of the production environment is consistent with the version of the current code full compilation after multiple incremental deployments or full deployments.
In the prior art, verification is performed on an application deployment package already put into production in a production environment and a deployment package compiled in full on an in-line delivery platform, which usually needs manual work, and a worker compares the two versions of deployment packages one by one to search for the difference between the two versions. However, in the verification process, a large number of errors may be generated, the verification accuracy is not high, the costs such as manpower and time are wasted, and the system verification efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a system verification method, a system verification device, system verification equipment and a storage medium, so as to realize automatic verification of a system version and improve the verification efficiency.
In a first aspect, an embodiment of the present invention provides a system verification method, where the method includes:
compiling the code of the current system version in the production environment into a current application deployment package in response to a system verification instruction;
determining a current version number of the current application deployment package;
compiling codes with the same version number in a code base into a full-scale application deployment package according to the current version number;
and comparing the file contents in the current application deployment package and the full-scale application deployment package, and determining a system verification result of the code base according to a comparison result.
In a second aspect, an embodiment of the present invention further provides a system verification apparatus, where the apparatus includes:
the current deployment package generation module is used for compiling codes of a current system version in the production environment into a current application deployment package in response to a system verification instruction;
a current version number determination module, configured to determine a current version number of the current application deployment package;
the full deployment package generation module is used for compiling codes with the same version number in the code base into a full application deployment package according to the current version number;
and the verification result determining module is used for comparing the file contents in the current application deployment package and the full application deployment package and determining the system verification result of the code base according to the comparison result.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the system verification method according to any embodiment of the present invention.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the system verification method according to any of the embodiments of the present invention.
According to the embodiment of the invention, the file contents in the current application deployment package and the full application deployment package corresponding to the version number are automatically compared by compiling the current application deployment package and the full application deployment package, so that the problem that system verification needs to be carried out manually in the prior art is solved, manual operation is reduced, manpower and time are saved, verification errors are avoided, the codes in the code base are ensured to be consistent with the codes in the production environment, and the accuracy and the efficiency of system verification are improved.
Drawings
Fig. 1 is a schematic flowchart of a system verification method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a system verification method according to a second embodiment of the present invention;
fig. 3 is a block diagram of a system calibration apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a system verification method according to an embodiment of the present invention, which is applicable to checking system codes in a code library and a production environment, and the method can be executed by a system verification apparatus. As shown in fig. 1, the method specifically includes the following steps:
step 110, in response to the system verification instruction, compiling the code of the current system version in the production environment into the current application deployment package.
The system verification instruction is used for comparing and verifying the system codes used in production in the production environment with the codes of the corresponding versions in the code base, and the system codes used in production in the production environment are the updated codes of the current system version. And the background responds to a system verification instruction sent by a user, acquires a code of the current system version in the production environment, compiles the code of the current system version in the production environment, and generates a current application deployment package. The current application deployment package includes at least one subfolder, and code content of the current system version is recorded in the current application deployment package, for example, the current application deployment package may include a test environment subfolder, a development environment subfolder, an acceptance environment subfolder, a production environment subfolder, and the like, and content such as test code, development code, acceptance code, production code, and the like is recorded in the current application deployment package.
In this embodiment, optionally, before compiling the code of the current system version in the production environment into the current application deployment package in response to the system verification instruction, the method further includes: compiling the updated current code into an application deployment package and generating the latest version number of the application deployment package; and deploying the application deployment package into a production environment, and determining the code of the current system version.
Specifically, before the code of the updated current system version is put into production for use, the code is edited in the code library by a user, and the edited and updated current code can be deployed in a production environment. The background responds to the code editing instruction, and after the user finishes editing, the current code updated by the user is compiled into an application deployment package, and the latest version number of the application deployment package is generated, wherein the version number can comprise data such as the name of the deployment package, the version updating time, the version identification and the like. For example, if the user updates the code of the core system at 23/4/2020, the core system version is identified as 001, and the latest version number of the application deployment package can be expressed as: a core system 20200423.001.
And deploying the application deployment package into a production environment, wherein the application deployment package can be an incremental deployment package or a full deployment package. And if the application deployment package is the increment deployment package, the production environment receives the increment deployment package and combines the increment deployment package with the original current application deployment package to obtain the code of the current system version. If the application deployment package is a full deployment package, deploying the full deployment package into a production environment, and taking the content in the full deployment package as the code of the current system version. After the production environment determines the code of the current system version, compiling the code of the current system version to generate the current application deployment package of the latest version.
The code edited by the user each time is deployed in the production environment, so that the problem that the code in the production environment is not the latest version is avoided, the upgrading process of the system version is effectively recorded by the latest version number of the deployment package, the subsequent system verification is facilitated, and the code maintenance efficiency is improved.
And step 120, determining the current version number of the current application deployment package.
After the current application deployment package is compiled in the production environment, the latest version number of the received application deployment package is obtained, and the latest version number of the application deployment package is used as the current version number of the current application deployment package, so that the system upgrading record in the production environment is facilitated. For example, if the application deployment package is an incremental deployment package with the latest version number of the incremental deployment package being the core system 20200423.002, the time of the version number of the current application deployment package in the production environment is consistent with the time of the version number of the incremental deployment package. If the system A is used in the production environment, the time represented by the version number of the original current application deployment package of the system A is 2020, 4, month and 20 days, and the version number of the original current application deployment package of the system A is as follows: the time in the version number of the current application deployment package of the system a is 4 months and 23 days of 2020, which can be expressed as: system a 20200423.002.
And step 130, compiling the codes with the same version number in the code base into a full-scale application deployment package according to the current version number.
After the user edits the codes in the code base, the code version numbers in the code base are updated along with the operation time of the user. For example, a user edits a code at 23 months and 4 months in 2020, uploads the code to a production environment after the editing is finished, but closes a code editing interface without saving the code in the code library, the content of the code in the code library does not change, but the code version number is updated to the latest time, that is, the version number of the code in the code library changes in real time along with the editing operation of the user, for example, the user edits a first version code of a core system at 23 months and 4 months in 2020, takes 001 as the version identifier of the first version code, and when the user exits the editing interface, the version number of the code of the core system is updated to: a core system 20200423.002. The user can operate the subfolders in the code folder, and after the user operation is finished, the version number of the parent folder is updated. For example, the version number of the original parent folder is: in the a system 20200302.001, when the user operates the core system file in the parent folder in 23/4/2020, the version number of the parent folder is updated to the a system 20200423.002.
After the version number of the current application deployment package in the production environment is determined, a code folder consistent with the version number is searched from a code library, and the searched codes are compiled into a full-volume application deployment package, namely the full-volume application deployment package and the current application deployment package are system codes of the same version.
And 140, comparing the file contents in the current application deployment package and the full application deployment package, and determining a system verification result of the code base according to the comparison result.
The code content in the current application deployment package is compared with the code content in the full-scale application deployment package, whether the codes in the code base are stored when the system in the production environment is updated or not is determined according to the comparison result, and the problem that the codes in the code base are not stored timely is avoided. For example, a new function is added after a system in a production environment is updated, and a code corresponding to the new function is not stored in a code library. If the comparison result is consistent, the code in the code base is the code of the latest version, and the system is successfully checked; if the comparison result is not consistent, the code base needs to be checked and updated.
In this embodiment, optionally, the comparing the file contents in the current application deployment package and the full application deployment package includes: for each subfolder, comparing the file content of the subfolder in the current application deployment package with the file content of the subfolder in the full application deployment package; and displaying the comparison result of each subfolder through the comparison list.
Specifically, the current application deployment package includes at least one subfolder, the full application deployment package includes at least one subfolder, the subfolders in the current application deployment package and the subfolders in the full application deployment package can be arranged in the same order, codes for realizing the same function are recorded in the subfolders arranged in the same order in the current application deployment package and the full application deployment package, and file contents in every two subfolders are sequentially compared. And displaying the comparison result in a comparison list, wherein the name of the subfile and the comparison result can be displayed in the comparison list. The comparison result may indicate the consistent and inconsistent code content of the code in each two corresponding subfolders. For example, if there is a parameter a in the subfolder one in the current application deployment package, and the parameter a is replaced by a parameter B in the subfolder one in the full-volume application deployment package, the code position and the code content of the parameter a or the parameter B in the subfolder can be marked in the comparison list. By automatically comparing the contents of the sub-folders in the current application deployment package and the full-scale application deployment package, the efficiency and the precision of system verification are improved, errors caused by manual inspection are avoided, comparison results are displayed on a comparison list, subsequent correction is facilitated, and manpower and time are saved.
In this embodiment, optionally, determining a system verification result of the code library according to the comparison result includes: and if the comparison result of any subfolder is inconsistent in the comparison result, generating prompt information of the subfolder, and prompting to modify the subfolder in the code library.
Specifically, if the subfolders with inconsistent code contents exist, prompt information is generated so as to modify the subfolders in the code library, the prompt information can indicate names of the subfolders, specific code contents, predicted modification methods and prompt time, and the prompt information can be displayed in the comparison list. For example, if there is a parameter a in the subfile one in the current application deployment package, and the position of the parameter a in the subfile one in the full application deployment package is the parameter B, a prompt message "change B to a" may be generated. By generating the prompt information, the method is beneficial for workers to quickly locate inconsistent codes and modify the codes, so that manual operation steps are reduced, and the system verification efficiency is improved.
According to the technical scheme, the file contents in the current application deployment package and the full application deployment package corresponding to the version number are automatically compared by compiling the current application deployment package and the full application deployment package, the problem that system verification needs to be carried out manually in the prior art is solved, manual operation is reduced, manpower and time are saved, verification errors are avoided, codes in a code library are consistent with codes in a production environment, and accuracy and efficiency of system verification are improved.
Example two
Fig. 2 is a schematic flow chart of a system verification method according to a second embodiment of the present invention, which is further optimized based on the second embodiment. As shown in fig. 2, the method specifically includes the following steps:
step 210, in response to the system verification instruction, compiling the code of the current system version in the production environment into the current application deployment package.
Step 220, determining the current version number of the current application deployment package.
And step 230, compiling the codes with the same version number in the code base into a full-scale application deployment package according to the current version number.
Step 240, encrypting the file content of the subfolder in the current application deployment package to obtain the subfolder identifier of the current application deployment package; and encrypting the file contents of the sub-folders in the full-volume application deployment package to obtain the sub-folder identifications of the full-volume application deployment package.
The current application deployment package and the full-scale application deployment package are encrypted by using an encryption Algorithm, which may be encrypted by using an MD5(Message Digest Algorithm 5, fifth edition) Algorithm. And respectively encrypting the contents in each subfolder in the current application deployment package and the full-scale application deployment package, wherein each subfolder can obtain a unique hash value as a subfolder identifier to represent the code contents in the subfolder. At least one subfolder exists in the current application deployment package, so that at least one subfolder identifier exists, and the subfolder identifier of the current application deployment package is represented as a first group identifier. At least one subfolder exists in the full-volume application deployment package, so that at least one subfolder identification can exist, and the subfolder identification of the full-volume application deployment package is represented as a second group identification. In this embodiment, the encryption algorithm is not particularly limited.
And step 250, comparing the subfolder identifications of the current application deployment package with the subfolder identifications of the full-volume application deployment package, and determining a system verification result of the code base according to the comparison result.
The first group of identifiers and the subfolder identifiers in the second group of identifiers are sequentially compared, for example, the subfolder identifiers in the first group of identifiers are sequentially a first identifier, a second identifier and a third identifier, the subfolder identifiers in the second group of identifiers are sequentially a fourth identifier, a fifth identifier and a sixth identifier, the first identifier is compared with the fourth identifier, the second identifier is compared with the fifth identifier, and the third identifier is compared with the sixth identifier. If the comparison result of the identifiers of the two subfolders is consistent, the code contents in the two subfolders are consistent; and if the comparison result of the identifications of the two subfolders is inconsistent, the code contents in the two subfolders are inconsistent.
And displaying the comparison result in a comparison list, wherein the comparison list can indicate the names of the subfolders with inconsistent subfiles for subsequent check and modification of the codes.
According to the embodiment of the invention, the file contents in the current application deployment package and the full application deployment package corresponding to the version number are automatically compared by compiling the current application deployment package and the full application deployment package, the file contents in the current application deployment package and the full application deployment package are encrypted, and the subfolder identifications are adopted for comparison, so that the verification difficulty is reduced, the verification precision is improved, and code information leakage is avoided. The problem of among the prior art, need artifically carry out the system check-up is solved, reduce manual operation, practice thrift manpower and time, avoid the check-up error, guarantee that the code in the code bank is unanimous with the code in the production environment, improve the accuracy and the efficiency of system inspection.
EXAMPLE III
Fig. 3 is a block diagram of a system calibration apparatus according to a third embodiment of the present invention, which is capable of executing the system calibration method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 3, the apparatus includes:
a current deployment package generation module 301, configured to compile a code of a current system version in a production environment into a current application deployment package in response to a system verification instruction;
a current version number determining module 302, configured to determine a current version number of the current application deployment package;
a full deployment package generation module 303, configured to compile codes with the same version number in the code library into a full application deployment package according to the current version number;
and the verification result determining module 304 is configured to compare file contents in the current application deployment package and the full application deployment package, and determine a system verification result of the code base according to the comparison result.
Optionally, the apparatus further comprises:
the application deployment package compiling module is used for compiling the updated current code into an application deployment package and generating the latest version number of the application deployment package;
and the application deployment package deployment module is used for deploying the application deployment package into the production environment and determining the code of the current system version.
Optionally, the verification result determining module includes:
the current deployment package encryption unit is used for encrypting the file contents of the subfolders in the current application deployment package to obtain subfolder identifications of the current application deployment package;
the system comprises a full deployment package encryption unit, a full deployment package encryption unit and a full deployment package encryption unit, wherein the full deployment package encryption unit is used for encrypting the file contents of sub-folders in a full application deployment package to obtain sub-folder identifications of the full application deployment package;
and the identification comparison unit is used for comparing the subfolder identification of the current application deployment package with the subfolder identification of the full application deployment package.
Optionally, the verification result determining module further includes:
the file content comparison unit is used for comparing the file content of each subfolder in the current application deployment package with the file content of each subfolder in the full application deployment package;
and the comparison list display unit is used for displaying the comparison result of each subfolder through the comparison list.
Optionally, the verification result determining module is specifically configured to:
and if the comparison result of any subfolder is inconsistent in the comparison result, generating prompt information of the subfolder, and prompting to modify the subfolder in the code library.
According to the embodiment of the invention, the file contents in the current application deployment package and the full application deployment package corresponding to the version number are automatically compared by compiling the current application deployment package and the full application deployment package, so that the problem that system verification needs to be carried out manually in the prior art is solved, manual operation is reduced, manpower and time are saved, verification errors are avoided, the codes in the code base are ensured to be consistent with the codes in the production environment, and the accuracy and the efficiency of system verification are improved.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 400 suitable for use in implementing embodiments of the present invention. The computer device 400 shown in fig. 4 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present invention.
As shown in fig. 4, computer device 400 is in the form of a general purpose computing device. The components of computer device 400 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 400 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 400 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. The computer device 400 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The computer device 400 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the computer device 400, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 400 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Moreover, computer device 400 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 412. As shown, network adapter 412 communicates with the other modules of computer device 400 over bus 403. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing by running the program stored in the system memory 402, for example, to implement the system verification method provided by the embodiment of the present invention, including:
compiling the code of the current system version in the production environment into a current application deployment package in response to a system verification instruction;
determining a current version number of a current application deployment package;
compiling codes with the same version number in the code base into a full-scale application deployment package according to the current version number;
and comparing the file contents in the current application deployment package and the full-scale application deployment package, and determining a system verification result of the code base according to the comparison result.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the method for verifying a system according to the fifth embodiment of the present invention is implemented, where the method includes:
compiling the code of the current system version in the production environment into a current application deployment package in response to a system verification instruction;
determining a current version number of a current application deployment package;
compiling codes with the same version number in the code base into a full-scale application deployment package according to the current version number;
and comparing the file contents in the current application deployment package and the full-scale application deployment package, and determining a system verification result of the code base according to the comparison result.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. 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 (a non-exhaustive list) of the computer readable storage medium would include the following: 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.
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, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A system verification method, comprising:
compiling the code of the current system version in the production environment into a current application deployment package in response to a system verification instruction;
determining a current version number of the current application deployment package;
compiling codes with the same version number in a code base into a full-scale application deployment package according to the current version number;
and comparing the file contents in the current application deployment package and the full-scale application deployment package, and determining a system verification result of the code base according to a comparison result.
2. The method of claim 1, further comprising, prior to compiling code for a current system version in the production environment into a current application deployment package in response to the system validation instruction:
compiling the updated current code into an application deployment package and generating the latest version number of the application deployment package;
and deploying the application deployment package into a production environment, and determining the code of the current system version.
3. The method of claim 1, wherein comparing the file content in the current application deployment package and the full-scale application deployment package comprises:
encrypting the file content of the sub-folder in the current application deployment package to obtain a sub-folder identifier of the current application deployment package;
encrypting the file contents of the sub-folders in the full-volume application deployment package to obtain sub-folder identifications of the full-volume application deployment package;
and comparing the subfolder identification of the current application deployment package with the subfolder identification of the full-scale application deployment package.
4. The method of claim 1, wherein comparing the file content in the current application deployment package and the full-scale application deployment package comprises:
for each subfolder, comparing the file content of the subfolder in the current application deployment package with the file content of the subfolder in the full application deployment package;
and displaying the comparison result of each subfolder through the comparison list.
5. The method of claim 1, wherein determining a system check result for the codebase based on the comparison comprises:
and if the comparison result of any subfolder is inconsistent in the comparison result, generating prompt information of the subfolder, and using the prompt information to prompt the subfolder in the code base to be modified.
6. A system verification apparatus, comprising:
the current deployment package generation module is used for compiling codes of a current system version in the production environment into a current application deployment package in response to a system verification instruction;
a current version number determination module, configured to determine a current version number of the current application deployment package;
the full deployment package generation module is used for compiling codes with the same version number in the code base into a full application deployment package according to the current version number;
and the verification result determining module is used for comparing the file contents in the current application deployment package and the full application deployment package and determining the system verification result of the code base according to the comparison result.
7. The apparatus of claim 6, further comprising:
the application deployment package compiling module is used for compiling the updated current code into an application deployment package and generating the latest version number of the application deployment package;
and the application deployment package deployment module is used for deploying the application deployment package into a production environment and determining the code of the current system version.
8. The apparatus of claim 6, wherein the verification result determination module comprises:
the current deployment package encryption unit is used for encrypting the file content of the sub-folder in the current application deployment package to obtain the sub-folder identifier of the current application deployment package;
the system comprises a full deployment package encryption unit, a full deployment package encryption unit and a full deployment package encryption unit, wherein the full deployment package encryption unit is used for encrypting the file contents of the sub-folders in the full application deployment package to obtain the sub-folder identifications of the full application deployment package;
and the identification comparison unit is used for comparing the subfolder identification of the current application deployment package with the subfolder identification of the full-volume application deployment package.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the system check method as claimed in any one of claims 1 to 5 when executing the program.
10. A storage medium containing computer-executable instructions for performing the system verification method of any one of claims 1-5 when executed by a computer processor.
CN202010641890.XA 2020-07-06 2020-07-06 System verification method, device, equipment and storage medium Active CN111897568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010641890.XA CN111897568B (en) 2020-07-06 2020-07-06 System verification method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010641890.XA CN111897568B (en) 2020-07-06 2020-07-06 System verification method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111897568A true CN111897568A (en) 2020-11-06
CN111897568B CN111897568B (en) 2023-12-26

Family

ID=73191647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010641890.XA Active CN111897568B (en) 2020-07-06 2020-07-06 System verification method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111897568B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491214A (en) * 2018-02-08 2018-09-04 北京中科江南信息技术股份有限公司 The management method and management system of application system upgrading deployment
CN108958753A (en) * 2018-07-13 2018-12-07 中国银行股份有限公司 A kind of code is packaged dispositions method and device
CN109614109A (en) * 2018-11-16 2019-04-12 中国银行股份有限公司 Using dispositions method, device and system
WO2019242166A1 (en) * 2018-06-22 2019-12-26 平安科技(深圳)有限公司 Application update method and system, and computer device and storage medium
CN110737458A (en) * 2019-09-18 2020-01-31 平安科技(深圳)有限公司 code updating method and related device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491214A (en) * 2018-02-08 2018-09-04 北京中科江南信息技术股份有限公司 The management method and management system of application system upgrading deployment
WO2019242166A1 (en) * 2018-06-22 2019-12-26 平安科技(深圳)有限公司 Application update method and system, and computer device and storage medium
CN108958753A (en) * 2018-07-13 2018-12-07 中国银行股份有限公司 A kind of code is packaged dispositions method and device
CN109614109A (en) * 2018-11-16 2019-04-12 中国银行股份有限公司 Using dispositions method, device and system
CN110737458A (en) * 2019-09-18 2020-01-31 平安科技(深圳)有限公司 code updating method and related device

Also Published As

Publication number Publication date
CN111897568B (en) 2023-12-26

Similar Documents

Publication Publication Date Title
US10019256B2 (en) Systems and methods for incremental software development
CN102521081B (en) Repair destroyed software
US8875105B2 (en) Efficiently developing software using test cases to check the conformity of the software to the requirements
US20160306612A1 (en) Determining errors and warnings corresponding to a source code revision
US7080357B2 (en) Software package verification
CN113515297B (en) Version updating method and device, electronic equipment and storage medium
US11099837B2 (en) Providing build avoidance without requiring local source code
US20140359077A1 (en) Method and apparatus for transmitting symbol files
CN115658452A (en) Buried point checking method, buried point checking device, readable storage medium and electronic equipment
EP3220218B1 (en) Program development support device, program development support method, and program development support program
US9442719B2 (en) Regression alerts
CN111897568B (en) System verification method, device, equipment and storage medium
US9396239B2 (en) Compiling method, storage medium and compiling apparatus
US11740895B2 (en) Generation of software program repair explanations
CN112114811A (en) Compiling method, device and equipment
CN112052007A (en) Source code debugging method, device, server and storage medium
CN112699011A (en) Method and device for counting incremental code coverage rate, electronic equipment and storage medium
US11829230B2 (en) Globally unique error codes for knowledge document indexing in software systems
US11256602B2 (en) Source code file retrieval
US20230385029A1 (en) Generating metadata to facilitate code generation
US11010151B2 (en) Software patch ordering
CN118035072A (en) Automatic acceptance method and system based on multi-version upgrading
CN113836001A (en) Code detection method, device and storage medium
CN114090419A (en) Program testing method, system, device, electronic equipment and storage medium
CN114064474A (en) Test method, test device, electronic equipment and computer readable storage medium

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