CN112035155A - Version update management method and device, computer equipment and readable storage medium - Google Patents

Version update management method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN112035155A
CN112035155A CN202010906226.3A CN202010906226A CN112035155A CN 112035155 A CN112035155 A CN 112035155A CN 202010906226 A CN202010906226 A CN 202010906226A CN 112035155 A CN112035155 A CN 112035155A
Authority
CN
China
Prior art keywords
application program
terminal
gray
version application
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010906226.3A
Other languages
Chinese (zh)
Inventor
章亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Pingan Payment Technology Service Co Ltd
Original Assignee
Pingan Payment Technology Service 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 Pingan Payment Technology Service Co Ltd filed Critical Pingan Payment Technology Service Co Ltd
Priority to CN202010906226.3A priority Critical patent/CN112035155A/en
Publication of CN112035155A publication Critical patent/CN112035155A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • 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)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the field of computers, and discloses a version update management method, a version update management device, computer equipment and a readable storage medium, wherein the version update management method comprises the following steps: calculating the difference between the new version application program and the old version application program to obtain a difference packet; identifying a target terminal, sending the differential packet to the target terminal and burying points in the target terminal; controlling the gray terminal to upgrade the old version application program according to the differential package and obtain the upgrading condition of each gray terminal, and calculating the upgrading condition to obtain gray evaluation information; judging whether the gray evaluation information exceeds a preset gray failure threshold value or not; if yes, controlling the gray terminal to install the old version application program; and if not, upgrading the target terminal to a new version application program. The invention reduces the data volume of the upgrade data packet, avoids the error of the application program of a large-scale target terminal caused by the upgrade data packet with defects in the gray scale release, ensures the upgrade performance of the real-time acquisition differential packet, and ensures the reliable use of the differential packet.

Description

Version update management method and device, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a version update management method and apparatus, a computer device, and a readable storage medium.
Background
The iteration of the online function version of the mature APP on the market can be issued to the online user for use after internal measurement and gray scale, so that the safety and correctness of the user can be protected to the maximum extent, but the inventor realizes that the following defects exist at present:
1. the data transmission quantity between the server and the terminal is very high due to the overlarge data volume of the current application program upgrading data packet, and meanwhile, the computing power and the memory required by the terminal upgrading are very large.
2. The current gray scale distribution only sets a certain proportion as a gray scale target and carries out gray scale distribution upgrading on the gray scale target, but even if the certain proportion is adopted, the number of the gray scale targets is still very large, so that an upgrading data packet with defects in the gray scale distribution causes errors of application programs of a large range of gray scale targets.
3. At present, only by sending the upgrade data package to the terminal, the terminal user can upgrade through this data package, however, the developer can't know whether the upgrade data package can be reliably upgraded by being used, how can its effect of upgrading, consequently, can't guarantee the upgrade data package can be reliably used to the application program of realization terminal is upgraded to the new version by old version.
Disclosure of Invention
The invention aims to provide a version update management method, a version update management device, computer equipment and a readable storage medium, which are used for solving the problems that the data volume of an upgrade data packet is too large, the number of gray objects is large, the upgrade data packet with defects can cause errors of the gray objects in a large range, and whether the upgrade data packet can be reliably used and upgraded cannot be known in the prior art.
In order to achieve the above object, the present invention provides a version update management method, including:
calculating the difference between the obtained new version application program and the old version application program to obtain a difference packet;
identifying a terminal provided with the old version application program and setting the terminal as a target terminal, sequentially sending the differential packet to the target terminal and burying points in the target terminal until the number of the target terminals receiving the differential packet reaches a preset gray threshold;
setting the target terminal receiving the differential packet as a gray terminal, controlling the gray terminal to upgrade the old version application program according to the differential packet, obtaining the upgrade condition of each gray terminal through the buried point, and calculating the upgrade condition of each target terminal according to a preset gray evaluation rule to obtain gray evaluation information;
judging whether the gray scale evaluation information exceeds a preset gray scale failure threshold value or not; if yes, deleting the application program and the differential packet in the gray terminal, sending an old version application program to the gray terminal, and controlling the gray terminal to install the old version application program; if not, the differential packet is sent to the target terminal which does not receive the differential packet, and the old version application program in the target terminal is upgraded into the new version application program.
In the above scheme, before calculating the difference between the new version application program and the old version application program to obtain the difference package, the method includes:
and receiving a new version application program obtained by upgrading the old version application program by the system background according to user feedback, and sending the system version, the machine model, the screen logic resolution and the machine memory of the terminal fed back by the user.
In the above scheme, the step of calculating the difference between the obtained new version application program and the old version application program to obtain the difference package includes:
sorting character strings in the old version application program to form an old version dictionary sequence and sorting character strings in the new version application program to form a new version dictionary sequence by a sorting technology;
sequentially searching character string pairs with highest similarity between the new version lexicographic order and the old version lexicographic order by a dichotomy;
extracting a part of the character string of the new version application program different from the character string of the old version application program in the character string pair, and setting the part as differential data;
and compressing the differential data to generate a differential packet.
In the above scheme, after calculating the difference between the new version application program and the old version application program to obtain the difference package, the method includes:
and upgrading the old version application program of the terminal in the preset white list through the differential packet, obtaining the upgrading condition of each terminal in the white list through the embedded point preset in the terminal, and calculating the upgrading condition of each terminal according to the preset internal evaluation rule to obtain the internal evaluation information.
In the above scheme, after the updating condition of each terminal is calculated according to the preset internal evaluation rule to obtain the internal evaluation information, the method further includes:
judging whether the internal test evaluation information exceeds a preset internal test failure threshold value or not; if so, judging that the differential packet is unqualified, deleting the application programs and the differential packet in the terminal in the white list, sending an old version application program to the terminal, and controlling the terminal to install the old version application program; if not, judging that the differential packet is qualified.
In the foregoing solution, after determining that the differential packet is qualified, the method further includes:
and constructing a configuration rule with the system version, the machine model, the screen logic resolution, the machine memory and the version number of the new version application program, identifying a terminal conforming to the configuration rule, and sending the differential packet to the terminal.
In the foregoing solution, the upgrading condition includes: the application program is upgraded successfully, the application program is upgraded and crashed, the new version application program interface is called successfully, and the new version application program interface is called unsuccessfully;
the gradation evaluation rule includes: acquiring the number of the gray terminals and recording the number as the total number of the upgrade;
extracting the number of the terminals with the upgrading conditions as the successful upgrading of the application program, and recording the number as the successful upgrading number;
extracting the number of the terminals with the upgrading conditions as the upgrading failures of the application programs, and recording the number as the upgrading failure number;
extracting the number of terminals with the upgrading condition being the number of successful calling of the new version application program interface, and recording as the number of successful interfaces;
extracting the number of terminals with upgrading conditions of which the calling of the new version application program interface fails, and recording the number as an interface failure number;
dividing the upgrade failure number by the total upgrade number to obtain an upgrade failure rate;
dividing the interface failure number by the total upgrading number to obtain an interface failure rate;
summarizing the upgrading failure rate and the interface failure rate to obtain gray scale evaluation information;
after the upgrade condition of each target terminal is calculated according to the preset gray scale evaluation rule to obtain the gray scale evaluation information, the method further comprises the following steps:
and uploading the gray evaluation information to a block chain.
In order to achieve the above object, the present invention further provides a version update management apparatus, including:
the differential packet creating module is used for calculating the difference between the obtained new version application program and the old version application program to obtain a differential packet;
the gray level preparation module is used for identifying the terminal provided with the old version application program and setting the terminal as a target terminal, sequentially sending the differential packet to the target terminal and burying points in the target terminal until the number of the target terminals receiving the differential packet reaches a preset gray level threshold value;
the gray scale upgrading module is used for setting the target terminal receiving the differential packet as a gray scale terminal, controlling the gray scale terminal to upgrade the old version application program according to the differential packet, obtaining the upgrading condition of each gray scale terminal through the buried point, and calculating the upgrading condition of each target terminal according to a preset gray scale evaluation rule to obtain gray scale evaluation information;
the gray scale evaluation module is used for judging whether the gray scale evaluation information exceeds a preset gray scale failure threshold value; if yes, deleting the application program and the differential packet in the gray terminal, sending an old version application program to the gray terminal, and controlling the gray terminal to install the old version application program; if not, the differential packet is sent to the target terminal which does not receive the differential packet, and the old version application program in the target terminal is upgraded into the new version application program.
To achieve the above object, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor of the computer device implements the steps of the version update management method when executing the computer program.
To achieve the above object, the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the version update management method.
According to the version update management method, the version update management device, the computer equipment and the readable storage medium, the difference packet is obtained through calculation, so that the data transmission quantity between the server and the terminal is greatly reduced, the calculation power and the memory required by terminal upgrading are reduced, and the problem of overlarge data quantity of the upgraded data packet is solved; by identifying the target terminal and sending the differential packet to the target terminal and burying points in the differential packet until the number of the target terminals receiving the differential packet reaches a gray level threshold, the problem of how to avoid errors of application programs of the large-scale target terminal caused by upgrading data packets with defects in gray level release is solved; the upgrading condition of the terminal for upgrading the old version application program through the differential package is obtained in real time, and the gray scale evaluation information is obtained according to the upgrading condition, so that the performance of the differential package in upgrading in the terminal is ensured to be obtained in real time, a developer can know technical problems or technical defects in the differential package in time, and the problem of how to ensure that the differential package can be reliably used so as to realize the upgrading of the application program of the terminal from the old version to the new version is solved; by means of the gray scale evaluation information, the problem that how to avoid the failure of the application program of the large-range terminal caused by the gray scale release through the defective upgrade data packet is solved.
Drawings
FIG. 1 is a flowchart of a version update management method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of an environment application of a version update management method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a detailed version update management method according to a second embodiment of the version update management method of the present invention;
FIG. 4 is a flowchart of a difference package calculated from differences between a new version application program and an old version application program according to a second embodiment of the version update management method of the present invention;
FIG. 5 is a block diagram of a third embodiment of a version update management apparatus according to the present invention;
fig. 6 is a schematic diagram of a hardware structure of a computer device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following examples are now provided:
the first embodiment is as follows:
referring to fig. 1, a version update management method of the present embodiment includes:
s102: and calculating the difference between the obtained new version application program and the old version application program to obtain a difference packet.
S106: and identifying the terminal provided with the old version application program, setting the terminal as a target terminal, sequentially sending the differential packet to the target terminal, and burying points in the target terminal until the number of the target terminals receiving the differential packet reaches a preset gray threshold value.
S107: and setting the target terminal receiving the differential packet as a gray terminal, controlling the gray terminal to upgrade the old version application program according to the differential packet, obtaining the upgrade condition of each gray terminal through the buried point, and calculating the upgrade condition of each target terminal according to a preset gray evaluation rule to obtain gray evaluation information.
S108: judging whether the gray scale evaluation information exceeds a preset gray scale failure threshold value or not;
and if so, deleting the application program and the differential packet in the gray terminal, sending an old version application program to the gray terminal, and controlling the gray terminal to install the old version application program.
If not, the differential packet is sent to the target terminal which does not receive the differential packet, and the old version application program in the target terminal is upgraded into the new version application program.
In an exemplary embodiment, the difference between the obtained new version application program and the old version application program is calculated through the Bsdiff algorithm, and a differential packet only containing information of the difference is obtained, so that the data transmission quantity between the server and the terminal is greatly reduced, the computing power and the memory required by terminal upgrading are reduced, and the problems that the data quantity of the upgraded data packet is too large, the data transmission quantity between the server and the terminal is reduced, and the computing power and the memory required by terminal upgrading are reduced are solved.
By setting a gradation threshold value in advance, for example: 1000 in number; identifying the terminal installed with the old version application program and setting the terminal as a target terminal, sequentially sending the differential packet to the target terminal and burying points in the target terminal until the number of the target terminals receiving the differential packet reaches a gray threshold, such as: 1000, so far, the problem of how to avoid the application program error of a large range of target terminals caused by the upgrading data packet with defects in the gray scale distribution is solved.
The method comprises the steps that a differential packet is sent to a terminal in a gray terminal, the upgrading condition of the terminal for upgrading an old version application program through the differential packet is obtained in real time through a buried point, and the upgrading condition of each terminal is calculated according to a preset gray evaluation rule to obtain gray evaluation information; the gray level terminals with the number of gray level threshold values guarantee the testing range of the gray levels and reduce the influence range of the gray levels to the minimum, meanwhile, the embedded points are arranged in the gray level terminals in advance, the upgrading conditions of the terminals are fed back, the fact that the differential package is upgraded in the terminals is guaranteed to be obtained in real time, a developer can know technical problems or technical defects in the differential package in time, and the problem of how to guarantee that the differential package can be reliably used is solved, so that the application program of the terminals is upgraded from an old version to a new version.
Deleting an application program and a differential packet in the gray terminal and sending an old version application program to the gray terminal to control the gray terminal to install the old version application program by comparing an upgrade failure rate and an interface failure rate in gray evaluation information with an upgrade failure threshold and an interface failure threshold in the gray failure threshold, if the upgrade failure rate and the interface failure rate and/or the upgrade failure threshold and the interface failure threshold are/is exceeded; if the upgrade failure rate and the interface failure rate do not exceed the upgrade failure threshold and the interface failure threshold, the differential packet is sent to the target terminal which does not receive the differential packet, and the old version application program in the target terminal is upgraded into the new version application program, so that the problem that the application program of a large-range terminal fails due to the fact that gray scale release is carried out through the upgrade data packet with the defects is solved.
It should be noted that, in fig. 1, the S108 is shown by the following labels:
s81: and judging whether the gray evaluation information exceeds a preset gray failure threshold value.
S82: and if so, deleting the application program and the differential packet in the gray terminal, sending an old version application program to the gray terminal, and controlling the gray terminal to install the old version application program.
S83: if not, the differential packet is sent to the target terminal which does not receive the differential packet, and the old version application program in the target terminal is upgraded into the new version application program.
Example two:
the embodiment is a specific application scenario of the first embodiment, and the method provided by the present invention can be more clearly and specifically explained through the embodiment.
The method provided in this embodiment is specifically described below by taking as an example, in a server running a version update management method, acquiring a differential packet, identifying a target terminal, sending the differential packet to the target terminal, controlling a grayscale terminal receiving the differential packet to upgrade an old version application program therein, acquiring an upgrade condition of the grayscale terminal, grayscale evaluation information, and determining whether the grayscale evaluation information exceeds a preset grayscale failure threshold. It should be noted that the present embodiment is only exemplary, and does not limit the protection scope of the embodiments of the present invention.
Fig. 2 schematically shows an environment application diagram of a version update management method according to a second embodiment of the present application.
In an exemplary embodiment, the server 2 in which the version update management method is located is connected to the terminal 4 via a network 3, the server 2 may provide services via one or more networks 3, and the network 3 may include various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and/or the like. The network 3 may include physical links, such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, and/or the like. The network 3 may include wireless links, such as cellular links, satellite links, Wi-Fi links, and/or the like; the terminal 4 may be a computer device such as a smart phone, a tablet computer, a notebook computer, and a desktop computer.
Fig. 3 is a flowchart of a specific method of a version update management method according to an embodiment of the present invention, where the method specifically includes steps S201 to S208.
S201: and receiving a new version application program obtained by upgrading the old version application program by the system background according to user feedback, and sending the system version, the machine model, the screen logic resolution and the machine memory of the terminal fed back by the user.
S202: and calculating the difference between the obtained new version application program and the old version application program to obtain a difference packet.
In order to reduce the data volume of the upgrade data packet, further reduce the data transmission volume between the server and the terminal and reduce the calculation power and the memory required by the terminal upgrade, the difference between the new version application program and the old version application program is calculated through the Bsdiff algorithm, and the difference packet only containing the information of the difference is obtained, so the data transmission volume between the server and the terminal is greatly reduced, and the calculation power and the memory required by the terminal upgrade are reduced.
In a preferred embodiment, referring to fig. 4, the step of calculating the difference between the obtained new version application program and the old version application program to obtain the difference package includes:
s202-1: the character strings in the old version application program are sequenced through a sequencing technology to form an old version dictionary sequence, and the character strings in the new version application program are sequenced to form a new version dictionary sequence.
Illustratively, the sorting technique uses a postfix sorting temporal complexity nlogn and a spatial complexity o (n), although a hash technique may be used for sorting.
S202-2: and sequentially searching the character string pairs with the highest similarity between the new version lexicographic order and the old version lexicographic order by a dichotomy.
It should be noted that binary search, also called binary search, is a search algorithm for searching for a specific element in an ordered array, and includes:
(1) first, the search is started from the middle element of the array, if the element is exactly the target element, the search process ends, otherwise the next step is performed.
(2) If the target element is larger than/smaller than the middle element, searching in the half area of the array larger than/smaller than the middle element, and repeating the operation of the step (1).
(3) If the array of a step is empty, it means that the target element cannot be found.
S202-3: extracting a part of the character string of the new version application program different from the character string of the old version application program in the character string pair, and setting the part as differential data;
in this step, the part of the character string of the new version application program different from the character string of the old version application program includes:
the difference character between the character string of the new version application program and the character string of the old version application program is marked as diffstring; for example: the character string of the new version application program is "abcd", the character string of the old version application program is "accd", and then the obtained difference character is "b"; and
the extra characters of the character string of the new version application program is more than that of the character string of the old version application program, and are marked as: extra string.
For example: the string of the new version application is "abcd", the string of the old version application is "abc", and then the extra character obtained is "d";
s202-4: and compressing the differential data to generate a differential packet.
S203: and upgrading the old version application program of the terminal in the preset white list through the differential packet, obtaining the upgrading condition of each terminal in the white list through the embedded point preset in the terminal, and calculating the upgrading condition of each terminal according to the preset internal evaluation rule to obtain the internal evaluation information.
In order to ensure that the differential package can be reliably used to upgrade the application program of the terminal from the old version to the new version, the differential package is sent to the terminal in a preset white list, the upgrading condition of the terminal for upgrading the application program of the old version through the differential package is obtained in real time through a buried point, and the upgrading condition of each terminal is calculated according to a preset internal evaluation rule to obtain internal evaluation information; the testing range of the internal test is ensured through the white list, the influence range of the internal test is reduced to the minimum, meanwhile, the embedded points are arranged at the terminals in the white list in advance, the upgrading conditions of the terminals are fed back, the upgrading performance of the differential package in the terminals is ensured to be obtained in real time, and therefore developers can know technical problems or technical defects in the differential package in time.
In this embodiment, the upgrading condition includes: the application program is upgraded successfully, the application program is upgraded and crashed, the new version application program interface is called successfully, and the new version application program interface is called unsuccessfully;
the internal evaluation rule comprises the following steps:
extracting the number of terminals in the white list and recording the number as the total number of upgrading;
extracting the number of the terminals with the upgrading condition of 'successful application program upgrading', and recording the number as a successful upgrading number;
extracting the number of terminals with the upgrading condition of 'upgrading failure of the application program', and recording the number as the upgrading failure number;
extracting the number of terminals with the upgrading condition of 'successful calling of the new version application program interface', and recording as the number of successful interfaces;
extracting the number of terminals with the upgrading condition of 'calling failure of the new version application program interface', and recording the number as an interface failure number;
dividing the upgrade failure number by the total upgrade number to obtain an upgrade failure rate;
dividing the interface failure number by the total upgrading number to obtain an interface failure rate;
and summarizing the upgrading failure rate and the interface failure rate to obtain internal evaluation information.
S204: judging whether the internal test evaluation information exceeds a preset internal test failure threshold value or not; if so, judging that the differential packet is unqualified, deleting the application programs and the differential packet in the terminal in the white list, sending an old version application program to the terminal, and controlling the terminal to install the old version application program; if not, judging that the differential packet is qualified.
In order to ensure the qualification rate of the differential package and avoid the failure of the application program of the large-range terminal caused by the gray scale upgrading of the unqualified differential package, the step comprises the steps of comparing the upgrade failure rate and the interface failure rate in the internal test evaluation information with the upgrade failure threshold value and the interface failure threshold value in the internal test failure threshold value, and if the upgrade failure rate and the interface failure rate and/or the upgrade failure threshold value and the interface failure threshold value are/is exceeded, judging that the differential package is unqualified; and if the upgrade failure rate and the interface failure rate do not exceed the upgrade failure threshold and the interface failure threshold, judging that the differential packet is qualified.
It should be noted that, in fig. 3, the S204 is shown by the following labels:
s41: and judging whether the internal test evaluation information exceeds a preset internal test failure threshold value.
S42: if so, judging that the differential packet is unqualified, deleting the application programs and the differential packet in the terminal in the white list, sending an old version application program to the terminal, and controlling the terminal to install the old version application program.
S43: if not, judging that the differential packet is qualified.
S205: and constructing a configuration rule with the system version, the machine model, the screen logic resolution, the machine memory and the version number of the new version application program, identifying a terminal conforming to the configuration rule, and sending the differential packet to the terminal.
The application program is upgraded based on user feedback so as to ensure that the application program can reliably run under different system versions, machine models, screen logic resolutions and machine memories; in the step, the configuration rule is constructed and the terminal which is in accordance with the configuration rule is identified, so that the terminals of different system versions, machine models, screen logic resolutions and machine memories can obtain the application programs which are in accordance with the conditions of the terminals, and the application range of the application programs is ensured.
Illustratively, the configuration rules are: and (3) system version: android Q, machine model: mobile phone P, screen logic resolution: 1080p, machine memory: 64G; then, the differential packet is only sent to the terminal which accords with the configuration rule in the step, and the differential packet does not need to be sent to the terminals with other configuration rules, so that the accurate upgrading of the application program is ensured.
S206: and identifying the terminal provided with the old version application program, setting the terminal as a target terminal, sequentially sending the differential packet to the target terminal, and burying points in the target terminal until the number of the target terminals receiving the differential packet reaches a preset gray threshold value.
In order to avoid the application program error of the target terminal in a large range caused by the defective upgrade data packet in the gray scale release, the step is performed by presetting a gray scale threshold, for example: 1000 in number; identifying the terminal installed with the old version application program and setting the terminal as a target terminal, sequentially sending the differential packet to the target terminal and burying points in the target terminal until the number of the target terminals receiving the differential packet reaches a gray threshold, such as: 1000, so far.
S207: and setting the target terminal receiving the differential packet as a gray terminal, controlling the gray terminal to upgrade the old version application program according to the differential packet, obtaining the upgrade condition of each gray terminal through the buried point, and calculating the upgrade condition of each target terminal according to a preset gray evaluation rule to obtain gray evaluation information.
In order to ensure that the differential package can be reliably used to upgrade the application program of the terminal from the old version to the new version, the differential package is sent to the terminal in the gray terminal, the upgrading condition of the old version application program upgraded by the terminal through the differential package is obtained in real time through a buried point, and the upgrading condition of each terminal is calculated according to a preset gray evaluation rule to obtain gray evaluation information; the gray level terminals with the number of gray level threshold values guarantee the testing range of the gray level and reduce the influence range of the gray level to the minimum, meanwhile, the buried points are arranged in the gray level terminals in advance, the upgrading condition of each terminal is fed back, the upgrading performance of the differential package in the terminal is guaranteed to be obtained in real time, and therefore developers can know technical problems or technical defects in the differential package in time.
In this embodiment, the upgrading condition includes: the application program is upgraded successfully, the application program is upgraded and crashed, the new version application program interface is called successfully, and the new version application program interface is called unsuccessfully;
the gradation evaluation rule includes:
acquiring the number of the gray terminals and recording the number as the total number of the upgrade;
extracting the number of the terminals with the upgrading condition of 'successful application program upgrading', and recording the number as a successful upgrading number;
extracting the number of terminals with the upgrading condition of 'upgrading failure of the application program', and recording the number as the upgrading failure number;
extracting the number of terminals with the upgrading condition of 'successful calling of the new version application program interface', and recording as the number of successful interfaces;
extracting the number of terminals with the upgrading condition of 'calling failure of the new version application program interface', and recording the number as an interface failure number;
dividing the upgrade failure number by the total upgrade number to obtain an upgrade failure rate;
dividing the interface failure number by the total upgrading number to obtain an interface failure rate;
and summarizing the upgrading failure rate and the interface failure rate to obtain gray scale evaluation information.
Preferably, after calculating the upgrade condition of each target terminal according to a preset gray evaluation rule to obtain gray evaluation information, the method further includes:
and uploading the gray evaluation information to a block chain.
The corresponding summary information is obtained based on the grayscale evaluation information, and specifically, the summary information is obtained by hashing the grayscale evaluation information, for example, by using the sha256s algorithm. Uploading summary information to the blockchain can ensure the safety and the fair transparency of the user. The user equipment can download the summary information from the blockchain so as to verify whether the gray scale evaluation information is tampered. The blockchain referred to in this example is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
S208: judging whether the gray scale evaluation information exceeds a preset gray scale failure threshold value or not;
and if so, deleting the application program and the differential packet in the gray terminal, sending an old version application program to the gray terminal, and controlling the gray terminal to install the old version application program.
If not, the differential packet is sent to the target terminal which does not receive the differential packet, and the old version application program in the target terminal is upgraded into the new version application program.
In order to avoid the problem that the application programs of a large-range terminal are invalid due to the fact that the gray scale is issued through an upgrading data packet with defects, the step is that the upgrading failure rate and the interface failure rate in the gray scale evaluation information and the upgrading failure threshold and the interface failure threshold in the gray scale failure threshold are used, if the upgrading failure rate and the interface failure rate and/or the upgrading failure threshold and the interface failure threshold are/is exceeded, the application programs and the differential packets in the gray scale terminal are deleted, an old version application program is sent to the gray scale terminal, and the gray scale terminal is controlled to install the old version application program; and if the upgrade failure rate and the interface failure rate do not exceed the upgrade failure threshold and the interface failure threshold, sending a differential packet to a target terminal which does not receive the differential packet, and upgrading an old version application program in the target terminal into a new version application program.
It should be noted that, in fig. 3, the S208 is shown by the following labels:
s81: and judging whether the gray evaluation information exceeds a preset gray failure threshold value.
S82: and if so, deleting the application program and the differential packet in the gray terminal, sending an old version application program to the gray terminal, and controlling the gray terminal to install the old version application program.
S83: if not, the differential packet is sent to the target terminal which does not receive the differential packet, and the old version application program in the target terminal is upgraded into the new version application program.
Example three:
referring to fig. 5, a version update management apparatus 1 of the present embodiment includes:
the differential packet creation module 12 is configured to calculate a difference between the obtained new version application program and the obtained old version application program to obtain a differential packet;
the gray level preparation module 16 is configured to identify a terminal installed with the old version application program and set the terminal as a target terminal, sequentially send the differential packet to the target terminal, and bury points in the target terminal until the number of target terminals receiving the differential packet reaches a preset gray level threshold;
the gray scale upgrading module 17 is configured to set the target terminal receiving the differential packet as a gray scale terminal, control the gray scale terminal to upgrade an old version application program therein according to the differential packet, obtain an upgrading condition of each gray scale terminal through the buried point, and calculate the upgrading condition of each target terminal according to a preset gray scale evaluation rule to obtain gray scale evaluation information;
the gray evaluation module 18 is used for judging whether the gray evaluation information exceeds a preset gray failure threshold value; if yes, deleting the application program and the differential packet in the gray terminal, sending an old version application program to the gray terminal, and controlling the gray terminal to install the old version application program; if not, the differential packet is sent to the target terminal which does not receive the differential packet, and the old version application program in the target terminal is upgraded into the new version application program.
Optionally, the version update management apparatus 1 further includes:
and the new version acquisition module 11 is configured to receive a new version application program obtained by upgrading an old version application program according to user feedback by a system background, and a system version, a machine model, a screen logic resolution, and a machine memory of a terminal that sends the user feedback.
Optionally, the version update management apparatus 1 further includes:
and the internal test upgrading module 13 is configured to upgrade an old version application program of a terminal in a preset white list through the differential packet, obtain an upgrading condition of each terminal in the white list through a preset embedded point in the terminal, and calculate the upgrading condition of each terminal according to a preset internal test and evaluation rule to obtain internal test and evaluation information.
Optionally, the version update management apparatus 1 further includes:
the internal evaluation module 14 is configured to determine whether the internal evaluation information exceeds a preset internal evaluation failure threshold; if so, judging that the differential packet is unqualified, deleting the application programs and the differential packet in the terminal in the white list, sending an old version application program to the terminal, and controlling the terminal to install the old version application program; if not, judging that the differential packet is qualified.
Optionally, the version update management apparatus 1 further includes:
and the rule identification module 15 is configured to construct a configuration rule having the system version, the machine model, the screen logic resolution, the machine memory, and the version number of the new version application program, identify a terminal that meets the configuration rule, and send the differential packet to the terminal.
The technical scheme is applied to the technical field of operation and maintenance of the computer pedestal, and the difference packet is obtained by calculating the difference between the obtained new version application program and the old version application program; respectively installing terminals of the old version application program and setting the terminals as target terminals, sequentially sending the differential packet to the target terminals and burying points in the target terminals until the number of the target terminals receiving the differential packet reaches a preset gray threshold; setting the target terminal receiving the differential packet as a gray terminal, controlling the gray terminal to upgrade the old version application program according to the differential packet, obtaining the upgrade condition of each gray terminal through the buried point, and calculating the upgrade condition of each target terminal according to a preset gray evaluation rule to obtain gray evaluation information; judging whether the gray scale evaluation information exceeds a preset gray scale failure threshold value or not; if yes, deleting the application program and the differential packet in the gray terminal, sending an old version application program to the gray terminal, and controlling the gray terminal to install the old version application program; if not, the differential package is sent to the target terminal which does not receive the differential package, the old version application program in the target terminal is upgraded to the new version application program, and the technical effect of optimizing the release process of the gray release is achieved.
Example four:
in order to achieve the above object, the present invention further provides a computer device 5, where components of the version update management apparatus 1 according to the third embodiment may be distributed in different computer devices, and the computer device 5 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including an independent server or a server cluster formed by multiple application servers) that executes a program. The computer device of the embodiment at least includes but is not limited to: a memory 51, a processor 52, which may be communicatively coupled to each other via a system bus, as shown in FIG. 6. It should be noted that fig. 6 only shows a computer device with components, but it should be understood that not all of the shown components are required to be implemented, and more or fewer components may be implemented instead.
In this embodiment, the memory 51 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the memory 51 may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the memory 51 may be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device. Of course, the memory 51 may also include both internal and external storage devices of the computer device. In this embodiment, the memory 51 is generally used for storing an operating system and various application software installed in the computer device, such as a program code of the version update management apparatus in the third embodiment. Further, the memory 51 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 52 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 52 is typically used to control the overall operation of the computer device. In this embodiment, the processor 52 is configured to run the program codes stored in the memory 51 or process data, for example, run a version update management apparatus, so as to implement the version update management methods of the first and second embodiments.
Example five:
to achieve the above objects, the present invention also provides a computer readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by a processor 52, implements corresponding functions. The computer-readable storage medium of the present embodiment is used for storing a version-update management apparatus, and when executed by the processor 52, implements the version-update management method of the first embodiment and the second embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A version update management method, comprising:
calculating the difference between the obtained new version application program and the old version application program to obtain a difference packet;
identifying a terminal provided with the old version application program and setting the terminal as a target terminal, sequentially sending the differential packet to the target terminal and burying points in the target terminal until the number of the target terminals receiving the differential packet reaches a preset gray threshold;
setting the target terminal receiving the differential packet as a gray terminal, controlling the gray terminal to upgrade the old version application program according to the differential packet, obtaining the upgrade condition of each gray terminal through the buried point, and calculating the upgrade condition of each target terminal according to a preset gray evaluation rule to obtain gray evaluation information;
judging whether the gray scale evaluation information exceeds a preset gray scale failure threshold value or not; if yes, deleting the application program and the differential packet in the gray terminal, sending an old version application program to the gray terminal, and controlling the gray terminal to install the old version application program; if not, the differential packet is sent to the target terminal which does not receive the differential packet, and the old version application program in the target terminal is upgraded into the new version application program.
2. The version update management method according to claim 1, wherein calculating the difference between the obtained new version application program and the old version application program to obtain the difference package is preceded by:
and receiving a new version application program obtained by upgrading the old version application program by the system background according to user feedback, and sending the system version, the machine model, the screen logic resolution and the machine memory of the terminal fed back by the user.
3. The version update management method according to claim 1, wherein the step of calculating the difference between the obtained new version application program and the old version application program to obtain a differential package comprises:
sorting character strings in the old version application program to form an old version dictionary sequence and sorting character strings in the new version application program to form a new version dictionary sequence by a sorting technology;
sequentially searching character string pairs with highest similarity between the new version lexicographic order and the old version lexicographic order by a dichotomy;
extracting a part of the character string of the new version application program different from the character string of the old version application program in the character string pair, and setting the part as differential data;
and compressing the differential data to generate a differential packet.
4. The version update management method according to claim 1, wherein after calculating the difference between the obtained new version application program and the old version application program to obtain the difference package, the method comprises:
and upgrading the old version application program of the terminal in the preset white list through the differential packet, obtaining the upgrading condition of each terminal in the white list through the embedded point preset in the terminal, and calculating the upgrading condition of each terminal according to the preset internal evaluation rule to obtain the internal evaluation information.
5. The version update management method according to claim 4, after calculating the upgrade condition of each terminal according to a preset internal evaluation rule to obtain internal evaluation information, further comprising:
judging whether the internal test evaluation information exceeds a preset internal test failure threshold value or not; if so, judging that the differential packet is unqualified, deleting the application programs and the differential packet in the terminal in the white list, sending an old version application program to the terminal, and controlling the terminal to install the old version application program; if not, judging that the differential packet is qualified.
6. The version update management method according to claim 5, further comprising, after determining that the differential packet is eligible:
and constructing a configuration rule with the system version, the machine model, the screen logic resolution, the machine memory and the version number of the new version application program, identifying a terminal conforming to the configuration rule, and sending the differential packet to the terminal.
7. The version update management method according to claim 1, wherein the upgrade situation includes: the application program is upgraded successfully, the application program is upgraded and crashed, the new version application program interface is called successfully, and the new version application program interface is called unsuccessfully;
the gradation evaluation rule includes: acquiring the number of the gray terminals and recording the number as the total number of the upgrade;
extracting the number of the terminals with the upgrading conditions as the successful upgrading of the application program, and recording the number as the successful upgrading number;
extracting the number of the terminals with the upgrading conditions as the upgrading failures of the application programs, and recording the number as the upgrading failure number;
extracting the number of terminals with the upgrading condition being the number of successful calling of the new version application program interface, and recording as the number of successful interfaces;
extracting the number of terminals with upgrading conditions of which the calling of the new version application program interface fails, and recording the number as an interface failure number;
dividing the upgrade failure number by the total upgrade number to obtain an upgrade failure rate;
dividing the interface failure number by the total upgrading number to obtain an interface failure rate;
summarizing the upgrading failure rate and the interface failure rate to obtain gray scale evaluation information;
after the upgrade condition of each target terminal is calculated according to the preset gray scale evaluation rule to obtain the gray scale evaluation information, the method further comprises the following steps:
and uploading the gray evaluation information to a block chain.
8. A version-update management apparatus, comprising:
the differential packet creating module is used for calculating the difference between the obtained new version application program and the old version application program to obtain a differential packet;
the gray level preparation module is used for identifying the terminal provided with the old version application program and setting the terminal as a target terminal, sequentially sending the differential packet to the target terminal and burying points in the target terminal until the number of the target terminals receiving the differential packet reaches a preset gray level threshold value;
the gray scale upgrading module is used for setting the target terminal receiving the differential packet as a gray scale terminal, controlling the gray scale terminal to upgrade the old version application program according to the differential packet, obtaining the upgrading condition of each gray scale terminal through the buried point, and calculating the upgrading condition of each target terminal according to a preset gray scale evaluation rule to obtain gray scale evaluation information;
the gray scale evaluation module is used for judging whether the gray scale evaluation information exceeds a preset gray scale failure threshold value; if yes, deleting the application program and the differential packet in the gray terminal, sending an old version application program to the gray terminal, and controlling the gray terminal to install the old version application program; if not, the differential packet is sent to the target terminal which does not receive the differential packet, and the old version application program in the target terminal is upgraded into the new version application program.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the version update management method according to any one of claims 1 to 7 are implemented by the processor of the computer device when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, the computer program stored in the computer-readable storage medium, when being executed by a processor, implementing the steps of the version update management method according to any one of claims 1 to 7.
CN202010906226.3A 2020-09-01 2020-09-01 Version update management method and device, computer equipment and readable storage medium Pending CN112035155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010906226.3A CN112035155A (en) 2020-09-01 2020-09-01 Version update management method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010906226.3A CN112035155A (en) 2020-09-01 2020-09-01 Version update management method and device, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112035155A true CN112035155A (en) 2020-12-04

Family

ID=73592203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010906226.3A Pending CN112035155A (en) 2020-09-01 2020-09-01 Version update management method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112035155A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653440A (en) * 2014-11-13 2016-06-08 阿里巴巴集团控股有限公司 Gray release method and device
CN107992318A (en) * 2017-12-07 2018-05-04 北京趣拿软件科技有限公司 Application program updating method, apparatus, storage medium and processor
CN110493336A (en) * 2019-08-15 2019-11-22 问问智能信息科技有限公司 The method and apparatus at target user end are determined in a kind of gray scale issuing process
CN111538529A (en) * 2020-04-27 2020-08-14 中国银行股份有限公司 Gray scale publishing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653440A (en) * 2014-11-13 2016-06-08 阿里巴巴集团控股有限公司 Gray release method and device
CN107992318A (en) * 2017-12-07 2018-05-04 北京趣拿软件科技有限公司 Application program updating method, apparatus, storage medium and processor
CN110493336A (en) * 2019-08-15 2019-11-22 问问智能信息科技有限公司 The method and apparatus at target user end are determined in a kind of gray scale issuing process
CN111538529A (en) * 2020-04-27 2020-08-14 中国银行股份有限公司 Gray scale publishing method and device

Similar Documents

Publication Publication Date Title
CN110610196B (en) Desensitization method, system, computer device and computer readable storage medium
CN112306808B (en) Performance monitoring and evaluating method and device, computer equipment and readable storage medium
CN111736872A (en) Gray scale release upgrading method and device, computer system and readable storage medium
CN112579462B (en) Test case acquisition method, system, equipment and computer readable storage medium
CN111666087A (en) Operation rule updating method and device, computer system and readable storage medium
CN111881902A (en) Training sample manufacturing method and device, computer equipment and readable storage medium
CN112148387A (en) Method and device for preloading feedback information, computer equipment and storage medium
CN112069249A (en) Knowledge graph relation mining method and device, computer equipment and storage medium
CN112052141B (en) Data fragment verification method and device, computer equipment and readable storage medium
CN110737548A (en) Data request method and server
CN111190915A (en) Method for determining road tool identifier or role identifier, server and storage medium
US20200117367A1 (en) Method, apparatus, and computer program product for managing application system
CN104348905A (en) Method and device for pushing message in off-line way
CN111158716B (en) Version upgrade calling method and device, computer system and readable storage medium
CN112052256A (en) Multi-version request returning method and device, computer equipment and readable storage medium
CN112286565A (en) Embedded system differential upgrading method based on storage container
CN111563007B (en) Operation error repairing method, device, computer system and readable storage medium
CN111831817A (en) Questionnaire generation and analysis method and device, computer equipment and readable storage medium
CN112035155A (en) Version update management method and device, computer equipment and readable storage medium
CN111698227B (en) Information synchronization management method, device, computer system and readable storage medium
CN112559012B (en) System upgrading and testing method and device, computer equipment and readable storage medium
CN114840872A (en) Secret text desensitization method and device, computer equipment and readable storage medium
CN114924742A (en) Hot patch making and applying method and device for virtual machine simulation software
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
CN108200060B (en) Single sign-on verification method based on web subsystem, server and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201204