[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114327577A - Code change determining method and device, electronic equipment and storage medium - Google Patents

Code change determining method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114327577A
CN114327577A CN202111632713.6A CN202111632713A CN114327577A CN 114327577 A CN114327577 A CN 114327577A CN 202111632713 A CN202111632713 A CN 202111632713A CN 114327577 A CN114327577 A CN 114327577A
Authority
CN
China
Prior art keywords
code
change
call
determining
variation
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
CN202111632713.6A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202111632713.6A priority Critical patent/CN114327577A/en
Publication of CN114327577A publication Critical patent/CN114327577A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The disclosure provides a code change determination method and device, electronic equipment, a readable storage medium and a computer program product, and relates to the field of intelligent search. The specific implementation scheme is as follows: determining a first variation condition of a first code relative to a second code, wherein the first code and the second code are different versions of codes compiled for a target application program, and the first variation condition is used for representing the condition of code variation between the first code and the second code; and in the first change situation, determining a second change situation related to the call change of the object to be monitored, wherein the object to be monitored is a monitoring object preset for the target application program, the call change is used for representing the call change of the object to be monitored, and the second change situation is used for representing the code change related to the call change. The scheme can monitor the calling change of the object to be monitored more comprehensively and visually.

Description

Code change determining method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular to artificial intelligence and intelligent search technologies, which are particularly applicable to scenarios such as artificial intelligence and intelligent search.
Background
With the rapid development of computing technology and internet technology, more and more applications are being developed to provide various services to users. In the process of providing services for users by the application program, in order to repair problems existing in the application program in time or add new service functions to the application program, the application program often needs to be continuously updated and iterated.
In the process of upgrading and iterating the Application program, call changes of a part of basic function modules, Application Programming Interfaces (APIs), and the like often have a large influence on the Application program. Therefore, the occurrence of these call changes also tends to bring a large risk to the upgrade iteration of the application program.
Disclosure of Invention
The present disclosure provides a code change determination method, apparatus, electronic device, readable storage medium, and computer program product to comprehensively and intuitively monitor the call change of an object to be monitored.
According to an aspect of the present disclosure, there is provided a code change determination method, which may include the steps of:
determining a first variation condition of the first code relative to the second code, wherein the first code and the second code are codes of different versions compiled for a target application program, and the first variation condition is used for representing the condition of code variation between the first code and the second code;
in the first change situation, a second change situation related to the call change of the object to be monitored is determined, the object to be monitored is a monitoring object preset for the target application program, the call change is used for representing the call change of the object to be monitored, and the second change situation is used for representing the code change related to the call change.
According to a second aspect of the present disclosure, there is provided an apparatus for determining a code variation, the apparatus may include:
a first change situation determination unit, configured to determine a first change situation of a first code relative to a second code, where the first code and the second code are different versions of code compiled for a target application, and the first change situation is used to indicate a situation of code change between the first code and the second code;
and the second change situation determining unit is used for determining a second change situation related to the call change of the object to be monitored in the first change situation, wherein the object to be monitored is a monitoring object preset for the target application program, the call change is used for indicating the call change of the object to be monitored, and the second change situation is used for indicating the code change related to the call change.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method according to any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform a method in any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the method in any of the embodiments of the present disclosure.
The technique of the present disclosure can further determine the case of code change associated with call change of an object to be monitored, on the basis of the case of code change between the first code and the second code, after determining the case of code change between the first code and the second code. The technology disclosed by the invention can automatically monitor the code change condition related to the calling change of the object to be monitored, and can monitor the calling change of the object to be monitored more comprehensively and intuitively based on the code change condition related to the calling change.
In addition, based on the condition of code change related to call change, the call change of the object to be monitored can be further detected, and whether the upgrade iteration of the application program is adversely affected or not can be further detected. Therefore, the risk of upgrading iteration of the application program caused by the calling change of the object to be monitored is reduced.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 provides a flow chart of a method of determining code changes according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a second variation determination method provided in an embodiment of the present disclosure;
fig. 3 is a flowchart of a method for sending a second variation scenario provided in an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a code change determining apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic view of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Due to the rapid development of computing technology and internet technology, intelligent computing devices are also becoming more and more popular in our daily lives. Meanwhile, a variety of applications running on the smart computing device have been developed in large quantities to provide various services to users. While in the process of providing service for the user by the application program, often, upgrading iteration is continuously required to repair program errors (BUG) existing in the running process of the application program, or add a new service function to the application program.
However, as the time for providing service to the user by the application program is continuously increased, the program size of the application program is also increased, and at this time, the risk of the application program in the iterative upgrade is also increased. Specifically, due to the expansion of the application scale, the calling of some basic function modules, APIs, and the like in the application is changed, and the calling often has direct or indirect influence on other function modules, APIs, and the like, and further has a great influence on the application. In this way, when there is a risk of a call change of the basic function module, the API, or the like, there is a risk of an upgrade iteration of the application program.
Therefore, in order to reduce the risk of the application program upgrading iteration due to the call change of the basic function module, the API, and the like, it is necessary to monitor the call change of the basic function module, the API, and the like. However, due to the expansion of the application program size, the code size of the application program is also larger, and the application program is not displayed on the business presentation layer due to some calling changes. Therefore, these call changes are often difficult to discover during the development testing phase.
In addition, the calling change of some basic function modules, APIs and the like does not have direct influence on the service function of the application program. Therefore, it is often easily overlooked by testers during the development and testing stage.
In order to solve the above problem, an embodiment of the present disclosure provides a method for determining a code change, and specifically, refer to fig. 1, which is a flowchart of a method for determining a code change according to an embodiment of the present disclosure. The method may comprise the steps of:
step S101: and determining a first variation condition of the first code relative to the second code, wherein the first code and the second code are different versions of codes compiled for the target application program, and the first variation condition is used for representing the condition of code variation between the first code and the second code.
Step S102: in the first change situation, a second change situation related to the call change of the object to be monitored is determined, the object to be monitored is a monitoring object preset in the target application program, the call change is used for representing the call change of the object to be monitored, and the second change situation is used for representing the code change related to the call change.
The code change determining method provided in the embodiments of the present disclosure can further determine the code change condition related to the call change of the object to be monitored on the basis of the code change condition between the first code and the second code after determining the code change condition between the first code and the second code. The technology disclosed by the invention can automatically monitor the code change condition related to the calling change of the object to be monitored, and can monitor the calling change of the object to be monitored more comprehensively and intuitively based on the code change condition related to the calling change.
In addition, based on the condition of code change related to call change, the call change of the object to be monitored can be further detected, and whether the upgrade iteration of the application program is adversely affected or not can be further detected. Therefore, the risk of upgrading iteration of the application program caused by the calling change of the object to be monitored is reduced.
The first code and the second code are different versions of codes compiled by a product development maintainer of a target application program aiming at the target application program and used for realizing the iterative upgrade of the product. The code version of the first code is higher than the code version of the second code. Specifically, for different versions of the target application, target application version 1.0 and target application version 1.1, the first code is code for target application version 1.1 and the second code is code for target application version 1.0.
The object to be monitored includes, but is not limited to, a function module and an API in the target application program.
In the embodiment of the present disclosure, a specific implementation manner of determining the first variation condition of the first code relative to the second code may be: first, a first code is compared with a second code, and a first change point of the code between the first code and the second code is determined. Then, the first variation point is determined as a first variation.
For different versions of code of the target application, the code may vary more between the two versions of code. In addition, for an application program with a larger product size, the code sizes of the first code and the second code are also often larger, so that the situation of code change can be more complicated.
In order to more clearly and concisely represent the first variation, the variation point between the codes can be screened out after the first code is compared with the second code, and the variation point between the codes can be taken as the first variation.
Furthermore, by determining the first variation point as the first variation, the amount of work for determining the second variation in the first variation and the complexity of the work can be reduced.
In a specific implementation process, the first code and the second code may be compared by a code comparison tool, for example: version control System (SVN). In addition, in the embodiment of the present disclosure, the code comparison tool is not specifically limited, as long as the code change between different versions of codes can be clearly and completely obtained.
In the embodiment of the disclosure, in the first change point, the call change of the object to be monitored is not caused by the change point of the partial code. Therefore, in order to determine the calling change of the object to be monitored more accurately and pertinently by related personnel, the code change point influencing the calling change of the object to be monitored can be further obtained in the first change point. The specific implementation process is as follows:
firstly, in the first change point, a second change point related to call change is determined, the second change point is used for representing the change point of the call code between the first code and the second code, and the call code is used for calling the object to be monitored. Then, the second variation point is determined as the second variation.
In the application program, the function in other functional module and API is often called by the function in a certain functional module and API, so as to realize the mutual calling of different functional modules and APIs. Therefore, in order to determine whether the object to be monitored is changed in a calling manner more intuitively and conveniently, the target monitoring function preset for the object to be monitored can be monitored. Referring to fig. 2, fig. 2 is a flowchart of a method for determining a second variation condition in an embodiment of the present disclosure. The determining step of the second variation includes:
step S201: and obtaining a preset target monitoring function aiming at the object to be monitored.
Step S202: in the first transition point, a code segment that causes a change in a function-call relationship for calling the target function is determined.
Step S203: the code segment is determined as the second transition point.
The target monitoring function may be one or more functions in the object to be monitored. For example, when the object to be monitored is an API, the target monitoring function may perform a function for at least one of the APIs. In the embodiment of the disclosure, the function type, the number and the like of the target monitoring function are not particularly limited, and the function to be monitored can be selected in advance as the target monitoring function according to the prior value and the like.
The following specifically describes the determining code segment by taking the object to be monitored as a functional module in the target program as an example.
Assume that there are six function modules m1, m2, m3, m4, m5, m6 in the target application, where the function module m1 is the object to be monitored. Wherein m1 has a target monitoring function F1 (expressed as m1 (F1)), and the F1 function of m1 has a parameter p (expressed as m1 (F1: p)).
In the second code: m6 (F18: "this is an account of a user") → m3 (F3: p1) → m1 (F1: p), the function call relation described by the second code for F1 is: a function F18 in m6 calls a function parameter p1 of the function F3 in m3, and the calling parameter is 'this is the account number of the user'; the function parameter p1 of the function F3 in m3 has a call to the function parameter p of the function F1 in m 1.
In the first code: m6 (F18: "this is an account of a user") → m3 (F3: p1), the second transition point is: the calling code of the function F1 in the call m1 is deleted. At this time, the change of the function call relationship is: function F3 in m3, the call to function F1 in m1 is deleted; the code segment is: code segment with delete marker: → m1 (F1: p), where the code fragment carries a delete marker.
The calling code is added to the first code: m3(F4) → m1 (F1: x), the second transition point being: the calling code for the function F1 in m1 is added: m3(F4) → m1 (F1: x). At this time, the change of the function call relationship is: a function call to a function F1 in m1 is added; the code segment is: m3(F4) → m1 (F1: x).
The above two changes of the function call relation for the target function belong to the direct change of the function call relation.
In addition, the first code is: m6 (F18: "this is a test account") → m3 (F3: p1) → m1 (F1: p), the second transition point is: the function F18 in m6 changes the call parameter called for the function parameter P1 of the function F3 in m3 from "this is an account of a user" to "this is a test account". At this time, the change of the function call relationship is: a function F18 in m6 calls a function parameter p1 of the function F3 in m3, and the calling parameter is changed from 'the account of the user' to 'the test account'; the code segment is a code segment with a delete flag calling a parameter 'this is a test account': m6 (F18: "this is a test account", "this is a test account"), wherein the call parameter "this is a test account" carries a delete flag.
In the first code: m6 (F18: "this is an account of a user") → m3 (F3: p1) → m1 (F1: liu), the second transition point is: the function parameter P1 of the function F3 in m3, the function parameter called in the function F1 in m1 is modified by P to liu. At this time, the change of the function call relationship is: function parameter P1 of function F3 in m3, called by function parameter P of function F1 in m1, is modified to call function parameter liu of function F1 in m 1; the code segment is a code segment with a delete marker for the function parameter "p": m1 (F1: pliu), wherein the function p carries a deletion marker.
The above two changes of the function call relation for the target function belong to indirect changes of the function call relation.
In order to enable related personnel to better monitor whether the calling change of the object to be monitored can generate adverse effect on the upgrade iteration of the application program based on the code change related to the calling change, a monitoring user can be preset for the object to be monitored. And after the second variation condition is determined, further sending the second variation condition to the computing equipment corresponding to the monitoring user. The specific implementation mode is as follows: firstly, acquiring a monitoring user preset for an object to be monitored; and then, sending the second change situation to the computing equipment corresponding to the monitoring user.
By sending the second change condition to the computing device corresponding to the monitoring user, the monitoring user can be reminded of monitoring whether the call change of the object to be monitored can perform upgrade iteration on the application program based on the change-calling-related code change condition, adverse effects are generated, and the purpose of monitoring the call change of the object to be monitored in a targeted manner can be achieved.
In order to enable the monitoring user to more intuitively obtain and know the second change condition, the call change of the object to be monitored can be more accurately monitored based on the code change condition related to the call change. In the embodiment of the present disclosure, the second variation condition may be sent to the computing device corresponding to the monitoring user through the following steps, specifically referring to fig. 3, where fig. 3 is a flowchart of a sending method for the second variation condition provided in the embodiment of the present disclosure. The method comprises the following steps:
step S301: and generating prompt information aiming at the second change condition in a preset mode, wherein the prompt information is used for prompting the monitoring user of the second change condition.
Step S302: and sending prompt information to the computing device.
The default methods include, but are not limited to, highlighting code changes associated with call changes, underlining code changes associated with call changes, bolding code changes associated with call changes, and framing code changes associated with call changes.
The implementation manner of sending the prompt information to the computing device includes: and sending prompt information to the computing equipment which monitors the login of the target account of the user. The target account includes but is not limited to a mailbox account and a mobile phone account.
As shown in fig. 4, an embodiment of the present disclosure provides a code variation determination apparatus, including:
a first change situation determination unit 401, configured to determine a first change situation of a first code relative to a second code, where the first code and the second code are different versions of code compiled for a target application, and the first change situation is used to indicate a situation of code change between the first code and the second code;
a second change situation determining unit 402, configured to determine, in the first change situation, a second change situation related to a call change of the object to be monitored, where the object to be monitored is a monitoring object preset for the target application, the call change is used to indicate a change of the call of the object to be monitored, and the second change situation is used to indicate a situation of a code change related to the call change.
In one embodiment, the first variation determining unit 401 may further include:
a first change point determination subunit, configured to compare the first code with the second code, and determine a first change point of the code between the first code and the second code;
a first variation determining subunit for determining the first variation point as the first variation.
In one embodiment, the second variation determining unit 402 may further include:
a second change point determining subunit, configured to determine, in the first change point, a second change point related to the call change, where the second change point is used to represent a change point of a call code between the first code and the second code, and the call code is a code used to call an object to be monitored;
and a second variation determining subunit for determining the second variation point as the second variation.
In one embodiment, the second variation point determining subunit may further include:
the monitoring function obtaining subunit is used for obtaining a target monitoring function preset for the object to be monitored;
a code segment determining subunit, configured to determine, in the first change point, a code segment that changes a function call relationship for calling the target function;
a third variation point determination subunit for determining the code segment as the second variation point.
In one embodiment, the apparatus may further comprise:
the monitoring user obtaining unit is used for obtaining a monitoring user preset aiming at an object to be monitored;
and the second variation sending unit is used for sending the second variation to the computing equipment corresponding to the monitoring user.
In one embodiment, the second variation situation transmitting unit may further include:
the prompt information generating subunit is used for generating prompt information aiming at the second change condition in a preset mode, wherein the prompt information is used for prompting the monitoring user of the second change condition;
and the prompt information sending subunit is used for sending the prompt information to the computing equipment.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
FIG. 5 illustrates a schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the apparatus 500 comprises a computing unit 501 which may perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the device 500 can also be stored. The calculation unit 501, the ROM 502, and the RAM503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 501 executes the respective methods and processes described above, such as the determination method of code change. For example, in some embodiments, the method of determining code variation may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into the RAM503 and executed by the computing unit 501, one or more steps of the above-described method of determining a code variation may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured in any other suitable manner (e.g., by means of firmware) to perform the code change determination method.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable code variation determining apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (15)

1. A method of code change determination, comprising:
determining a first variation condition of a first code relative to a second code, wherein the first code and the second code are different versions of codes compiled for a target application program, and the first variation condition is used for representing the condition of code variation between the first code and the second code;
and in the first change situation, determining a second change situation related to the call change of the object to be monitored, wherein the object to be monitored is a monitoring object preset for the target application program, the call change is used for representing the call change of the object to be monitored, and the second change situation is used for representing the code change related to the call change.
2. The method of claim 1, wherein the determining a first variance of the first code relative to the second code comprises:
comparing the first code with the second code, and determining a first change point of the code between the first code and the second code;
determining the first variation point as the first variation condition.
3. The method of claim 2, wherein the determining of the second variation condition comprises:
determining a second change point related to the call change in the first change point, wherein the second change point is used for representing a change point of a call code between the first code and the second code, and the call code is used for calling the object to be monitored;
and determining the second variation point as the second variation condition.
4. The method of claim 3, wherein said determining a second change point associated with said call change comprises:
obtaining a preset target monitoring function for the object to be monitored;
determining a code segment which changes a function calling relation for calling the target function in the first change point;
determining the code segment as the second transition point.
5. The method of any of claims 1 to 4, wherein the method further comprises:
acquiring a monitoring user preset for the object to be monitored;
and sending the second change condition to the computing equipment corresponding to the monitoring user.
6. The method of claim 5, wherein the sending the second change condition to the computing device corresponding to the monitoring user comprises:
generating prompt information aiming at the second change condition in a preset mode, wherein the prompt information is used for prompting the second change condition to the monitoring user;
and sending the prompt message to the computing equipment.
7. An apparatus for determining a code change, comprising:
a first change situation determination unit, configured to determine a first change situation of a first code relative to a second code, where the first code and the second code are different versions of code compiled for a target application, and the first change situation is used to indicate a situation of code change between the first code and the second code;
and a second change condition determining unit, configured to determine, in the first change condition, a second change condition related to a call change of an object to be monitored, where the object to be monitored is a monitoring object preset for the target application, the call change is used to indicate a change of a call to the object to be monitored, and the second change condition is used to indicate a condition of a code change related to the call change.
8. The apparatus of claim 7, wherein the first change situation determination unit comprises:
a first change point determining subunit, configured to compare the first code with the second code, and determine a first change point of a code between the first code and the second code;
a first variation determining subunit operable to determine the first variation point as the first variation.
9. The apparatus according to claim 8, wherein the second variation determining unit includes:
a second change point determining subunit, configured to determine, in the first change point, a second change point related to the call change, where the second change point is used to represent a change point of a call code between the first code and the second code, and the call code is used to call the object to be monitored;
a second variation determining subunit operable to determine the second variation point as the second variation.
10. The apparatus of claim 9, wherein the second change point determining subunit comprises:
a monitoring function obtaining subunit, configured to obtain a target monitoring function preset for the object to be monitored;
a code segment determining subunit, configured to determine, in the first change point, a code segment that changes a function call relationship for calling the target function;
a third change point determining subunit configured to determine the code segment as the second change point.
11. The apparatus of any one of claims 7 to 10, wherein the apparatus further comprises:
a monitoring user obtaining unit, configured to obtain a monitoring user preset for the object to be monitored;
and a second change condition sending unit, configured to send the second change condition to the computing device corresponding to the monitoring user.
12. The apparatus of claim 11, wherein the second change condition transmitting unit comprises:
a prompt information generating subunit, configured to generate, in a preset manner, a prompt information for prompting the monitoring user about the second variation condition;
and the prompt information sending subunit is used for sending the prompt information to the computing equipment.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1 to 6.
15. A computer program product comprising computer programs/instructions, wherein the computer programs/instructions, when executed by a processor, implement the steps of the method of claims 1 to 6.
CN202111632713.6A 2021-12-29 2021-12-29 Code change determining method and device, electronic equipment and storage medium Pending CN114327577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111632713.6A CN114327577A (en) 2021-12-29 2021-12-29 Code change determining method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111632713.6A CN114327577A (en) 2021-12-29 2021-12-29 Code change determining method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114327577A true CN114327577A (en) 2022-04-12

Family

ID=81015701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111632713.6A Pending CN114327577A (en) 2021-12-29 2021-12-29 Code change determining method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114327577A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230251948A1 (en) * 2022-02-10 2023-08-10 Bank Of America Corporation System and method for providing automatic diagnostics of api configuration

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230251948A1 (en) * 2022-02-10 2023-08-10 Bank Of America Corporation System and method for providing automatic diagnostics of api configuration

Similar Documents

Publication Publication Date Title
CN113760769A (en) Test case processing method and device, electronic equipment and storage medium
CN113778849A (en) Method, apparatus, device and storage medium for testing code
CN114327577A (en) Code change determining method and device, electronic equipment and storage medium
CN112966201A (en) Object processing method, device, electronic equipment and storage medium
CN112799642B (en) Method, apparatus, device and storage medium for processing data
CN114168172A (en) Application program installation method and device, electronic equipment and storage medium
CN115102948A (en) Automatic downloading method, device and equipment of map tiles and storage medium
CN114003497A (en) Method, device and equipment for testing service system and storage medium
CN114138358A (en) Application program starting optimization method, device, equipment and storage medium
CN114138397A (en) Page display method and device, electronic equipment and storage medium
CN114091909A (en) Collaborative development method, system, device and electronic equipment
CN113535020A (en) Method, apparatus, device, medium and product for generating application icons
CN114116373A (en) Network request monitoring method and device, electronic equipment and storage medium
CN116302897B (en) Data set establishing method and device, electronic equipment and storage medium
CN113760765B (en) Code testing method and device, electronic equipment and storage medium
CN116431108B (en) Object type processing method and device, electronic equipment and storage medium
CN118170617B (en) Cluster anomaly detection method and device, electronic equipment and storage medium
CN114610511B (en) Input verification method and device, electronic equipment and storage medium
CN113535187B (en) Service online method, service updating method and service providing method
CN116302086A (en) Application processing method and device, electronic equipment and readable storage medium
CN116737547A (en) Application program detection method, device, equipment and storage medium
CN116089267A (en) Test interface generation method, device, equipment and storage medium
CN115529346A (en) Service changing method, device, equipment and storage medium
CN116471268A (en) Delivery method and device of private cloud project, electronic equipment and readable storage medium
CN117215955A (en) Code coverage rate acquisition method and device and electronic equipment

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