CN109491696B - Method, device and system for determining incremental source code - Google Patents

Method, device and system for determining incremental source code Download PDF

Info

Publication number
CN109491696B
CN109491696B CN201811416521.XA CN201811416521A CN109491696B CN 109491696 B CN109491696 B CN 109491696B CN 201811416521 A CN201811416521 A CN 201811416521A CN 109491696 B CN109491696 B CN 109491696B
Authority
CN
China
Prior art keywords
updating operation
node number
source code
time
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811416521.XA
Other languages
Chinese (zh)
Other versions
CN109491696A (en
Inventor
陈国杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201811416521.XA priority Critical patent/CN109491696B/en
Publication of CN109491696A publication Critical patent/CN109491696A/en
Application granted granted Critical
Publication of CN109491696B publication Critical patent/CN109491696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Landscapes

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

Abstract

The application provides an incremental source code determining method, an incremental source code determining device and an incremental source code determining system, wherein the method is applied to configuration library equipment and comprises the following steps: after a development library device executes updating operation on one or more program files in a source code to obtain a current full amount of source codes, receiving and storing the current full amount of source codes sent by the development library device; the file names of one or more program files related to the updating operation in the current full source code comprise current node numbers which uniquely represent the updating operation; determining a query range consisting of the current node number and the historical node number; and determining one or more program files of which the node numbers in the current full source codes are located in the query range as the incremental source codes. The method and the device can automatically determine the incremental source codes from the current full source codes, so that the incremental source codes can be simply and conveniently determined, and the updating efficiency and accuracy of software programs in a product library are improved.

Description

Method, device and system for determining incremental source code
Technical Field
The present application relates to the field of software technologies, and in particular, to a method, an apparatus, and a system for determining an incremental source code.
Background
At present, the software program is inevitably updated for many times in the software field, so the software program usually has multiple versions, and the multiple versions of the software program are usually managed by using a version management tool (CCRC or SVN).
In order to distinguish the software programs, the software program before modification is called source code, the software program after modification is called full source code, and the code updated by the full source code relative to the source code is called incremental source code.
In order to update the software programs in the product library, the full source codes are usually issued to the product library, or the incremental source codes are manually screened from the full source codes and adaptively added to the product library.
However, the two modes have disadvantages, and the mode of issuing full source codes to the product library not only increases unnecessary workload but also introduces the quality risk of covering the source codes; manually screening incremental source code can have a risk of missing code or code errors and is inefficient.
Therefore, a scheme is needed at present, which can simply and conveniently screen out the incremental source codes so as to improve the updating efficiency and accuracy of the software programs in the product library.
Disclosure of Invention
In view of this, the present application provides an incremental source code determining method, apparatus, and system, which can simply and conveniently screen out incremental source codes to improve the update efficiency and accuracy of software programs in a product library.
In order to achieve the above object, the present application provides the following technical features:
an incremental source code determination method is applied to a configuration library device, and comprises the following steps:
after a development library device executes updating operation on one or more program files in a source code to obtain a current full amount of source codes, receiving and storing the current full amount of source codes sent by the development library device; wherein the file name of one or more program files related to the update operation in the current full source code comprises a current node number which uniquely represents the update operation;
determining a query range consisting of the current node number and the historical node number;
and determining one or more program files with node numbers in the current full source codes within the query range as incremental source codes.
Optionally, the current node number in the current full source code and the node number in the full source code corresponding to the previous update operation are sorted in an increasing order;
the determining a query range composed of the current node number and the historical node number includes:
acquiring the historical node number and the current node number;
and determining the query range according to the range which is larger than the historical node number and smaller than or equal to the current node number.
Optionally, the determining, as the incremental source code, one or more program files in which the node number in the current full source code is located in the query range includes:
executing the following steps for each program file in the current full source code:
judging whether the node number in the file name of the program file is located in the query range;
if yes, determining the program file as a program file in the incremental source code;
if not, determining that the program file is not the incremental source code.
Optionally, the method further includes:
obtaining a test result after the test operation is executed on the incremental source code;
and if the test result indicates that the increment source code is normal, sending the increment source code to a product library so that the product library stores the increment source code.
Optionally, each program file includes file information, where the file information includes a user identifier indicating that the update operation is performed;
after the determining, as the incremental source code, the one or more program files whose node numbers are located in the query range in the current full source code, the method further includes:
classifying each program file in the incremental source code according to the user identification, and determining an incremental source code subset corresponding to each user identification;
calculating the development efficiency of each user by using the incremental source code subset corresponding to each user identifier;
executing sequencing operation on the development efficiency of each user to obtain a sequencing result;
and displaying the development efficiency of each user and the sequencing result.
An incremental source code determination method is applied to development library equipment, and comprises the following steps:
obtaining source code from a configuration library device, wherein the source code comprises a plurality of program files;
in the process of performing updating operation on one or more program files in the source code to obtain current full-amount source code, recording file names of one or more program files related to the updating operation;
generating a current node number uniquely representing the updating operation;
adding the current node number to the file name of one or more program files involved in the update operation;
and sending the current full-scale source code to the configuration library equipment so that the configuration library equipment can determine an incremental source code based on the current node number of the current full-scale source code.
Optionally, the generating a current node number uniquely indicating the update operation includes:
acquiring a user identifier for indicating that the updating operation is executed, and a time identifier for indicating that the updating operation is executed;
if the user identifier of the updating operation is not consistent with the user identifier of the updating operation last time, or the time identifier of the updating operation is not consistent with the time identifier of the updating operation last time, the current node number is generated in an incremental mode on the basis of the historical node number of the updating operation last time;
if the user identifier of the updating operation is consistent with the user identifier of the updating operation last time, and the time identifier of the updating operation is consistent with the time identifier of the updating operation last time, taking the historical node number of the updating operation last time as the current node number;
the time identification takes date as a unit, and one date corresponds to one time identification.
Optionally, the file name of the program file includes a file identifier and a history node number indicating the program file;
then said adding said current node number to the file name of one or more program files involved in said update operation comprises:
and replacing the historical node number in the file name of one or more program files with the current node number.
An incremental source code determining apparatus, applied to a configuration library device, the apparatus comprising:
the storage unit is used for receiving and storing the current full source codes sent by the development library equipment after the development library equipment executes updating operation on one or more program files in the source codes to obtain the current full source codes; the file names of one or more program files related to the updating operation in the current full source code comprise current node numbers which uniquely represent the updating operation;
the determining unit is used for determining a query range consisting of the current node number and the historical node number;
and the query unit is used for determining one or more program files with node numbers in the current full source codes within the query range as the incremental source codes.
An incremental source code determining device applied to a development library device, the device comprising:
an acquisition unit configured to acquire source code from a configuration library device, wherein the source code includes a plurality of program files;
the recording unit is used for recording file names of one or more program files related to the updating operation in the process of obtaining the current full source code by executing the updating operation on the one or more program files in the source code;
a generating unit, configured to generate a current node number uniquely indicating the update operation;
an adding unit, configured to add the current node number to a file name of one or more program files involved in the update operation;
a sending unit, configured to send the current full-size source code to the configuration library device, so that the configuration library device determines an incremental source code based on a current node number of the current full-size source code.
Through the technical means, the following beneficial effects can be realized:
the application provides an incremental source code determining method, in the scheme, after a user performs updating operation on one or more program files in a source code, a current node number which uniquely represents the updating operation is added to the file name of the one or more program files related to the updating operation.
After that, a query range composed of the current node number and the historical node number can be determined, and one or more program files with the node numbers meeting the query range can be searched through the node numbers in the file names of all the program files in the full source codes. The one or more program files are the incremental source code corresponding to the update operations within the query scope.
The method and the device can automatically determine the incremental source codes from the full-scale source codes, so that the incremental source codes can be determined simply and conveniently, and the updating efficiency and accuracy of software programs in a product library are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of an incremental source code determining system disclosed in an embodiment of the present application;
fig. 2 is a flowchart of an incremental source code determination method disclosed in an embodiment of the present application;
fig. 3 is a flowchart illustrating a structure of an incremental source code determining apparatus according to an embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a structure of an incremental source code determining apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The present application provides an incremental source code determination system, see fig. 1, comprising:
a development library device 100;
a configuration library device 200 connected to the development library device 100; wherein the configuration library apparatus 200 stores active code.
A product library device 300 connected to the configuration library device 200.
The present application provides an embodiment of an incremental source code determination method, which is applied to the incremental source code determination system shown in fig. 1. Referring to fig. 2, the method comprises the following steps:
step S201: the development library device obtains source code from a configuration library device, wherein the source code includes a plurality of program files.
Since the source code is stored in the configuration library device, the development library device needs to acquire the source code from the configuration library device before the source code needs to be updated. The source code includes a plurality of program files, and a file name of each program file includes a file identification distinguished from other program files.
Step S202: and the development library device records the file names of one or more program files involved in the update operation in the process of performing the update operation on the one or more program files in the source code to obtain the full source code.
It can be understood that each program file does not need to be updated, and a developer may determine one or more program files that need to be updated according to an actual application scenario of the source code, and perform an update operation on the one or more program files that need to be modified this time by means of the development library device.
The method comprises the steps that the development library equipment records the file names of one or more program files modified by the updating operation in the source code updating process; other program files that are not modified do not need to record file names.
Step S203: the development library equipment generates a current node number which uniquely represents the updating operation;
the step may specifically comprise the steps of:
step S1: the user identifier indicating that the updating operation is executed is acquired, and the time identifier indicating that the updating operation is executed is acquired.
It will be appreciated that each developer has its user identification, and that upon logging into the development library device, the development library device will record the user identification of the developer. The development library equipment can acquire the user identification of the login development library equipment in the updating operation and the current time identification.
In this embodiment, the time identifiers are in units of dates, that is, one date corresponds to one time identifier. For example, all time slots in nos. 9-3 correspond to a time identifier 1, and all time slots in nos. 9-10 correspond to a time identifier 2.
Step S2: judging whether the user identification of the updating operation is consistent with the user identification of the last updating operation or not, and judging whether the time identification of the updating operation is consistent with the time identification of the last updating operation or not;
step S3: and if the user identifier of the updating operation is inconsistent with the user identifier of the updating operation last time, or the time identifier of the updating operation last time is inconsistent with the time identifier of the updating operation last time, incrementally generating the current node number on the basis of the historical node number of the updating operation last time.
Under the condition that the user identifiers or the time identifiers are not consistent, the updating operation executed for different users or different time at this time is described, so different node numbers need to be generated, and in order to ensure the continuity of the node numbers, the current node number can be generated in an incremental and one increasing mode on the basis of the historical node number corresponding to the last updating operation.
For example, if the node number of the initial record is 1, and the program file is saved after the user B modifies the program file, the node number generated is 2; and if the user C finishes modifying the program file and then saves the program file, the generated node number is 3.
Step S4: and if the user identifier of the updating operation is consistent with the user identifier of the updating operation last time, and the time identifier of the updating operation is consistent with the time identifier of the updating operation last time, taking the historical node number of the updating operation last time as the current node number.
If the same user executes the update operation in the same time identifier, the historical node number of the last update operation can be used continuously, that is, the same user is defaulted to correspond to one node number in the same day.
Step S203 then proceeds to step S204: and the development library device adds the current node number to the file name of one or more program files involved in the updating operation.
The file name of one program file includes a file identifier for distinguishing other program files, and also includes a history node number added at the last update operation.
The development library equipment executes the following steps on one or more program files related to the updating operation: and replacing the historical node number in the file name of one or more program files with the current node number.
It can be understood that, in this embodiment, in order to facilitate subsequent screening of the one or more program files, a current node number is added to file names of the one or more program files, so as to determine an incremental source code by using the current node number subsequently.
Step S205: and the development library equipment sends the current full-scale source code to the configuration library equipment so that the configuration library equipment can determine the incremental source code based on the current node number of the current full-scale source code.
The development library equipment can obtain the current full source code after performing updating operation on one or more program files in the source code; the current full source code comprises unmodified program files in the source code and one or more program files after the updating operation.
Each program file also comprises file information, and the file information comprises a user identifier for executing the updating operation, and also comprises a time identifier for the updating operation.
It can be understood that a plurality of users can log in the development library device at the same time and all perform the update operation on the source code, so the development library device can perform steps S201 to S205 a plurality of times.
Step S206: and the configuration library equipment receives and stores the current full source code sent by the development library equipment.
The configuration library device may receive and store the full amount of source codes sent by the development library device multiple times, but use the latest received current full amount of source codes in the process of determining the incremental source codes. Because, each program file in the current full source code is the latest program file after a plurality of update operations.
The file name of one or more program files involved in the update operation in the current full source code includes a current node number uniquely representing the update operation.
Step S207: and the configuration library equipment determines a query range consisting of the current node number and the historical node number.
The development library equipment can store full source codes corresponding to multiple updating operations, and a user can determine historical node numbers based on actual conditions, namely, the initial node numbers of the incremental source codes are inquired; then, a query range composed of the current node number and the historical node number is determined.
Optionally, if the node numbers in the multiple full source codes are generated in an increasing order, this step determines the query range composed of the current node number and the historical node number, and includes: and acquiring the historical node number and the current node number, and determining the query range in a range which is larger than the historical node number and smaller than or equal to the current node number.
For example, in the case where the history node number is 1 and the current node number is 3, the query range is (1, 3).
Step S208: and the configuration library equipment determines one or more program files with node numbers in the current full source codes within the query range as incremental source codes.
The configuration library device executes the following steps for each program file in the current full source code:
judging whether the node number in the file name of the program file is located in the query range;
if yes, determining the program file as a program file in the incremental source code;
if not, determining that the program file is not the incremental source code.
Step S209: and the configuration library equipment receives the test result of the incremental source code and sends the incremental source code to the product library equipment under the condition that the test result is normal.
After determining the incremental source code, the configuration library device may further perform the further operation of:
the incremental source code is tested by the building library equipment and the test library equipment in a combined mode, and then a test result is obtained and sent to the configuration library equipment; and the configuration library equipment judges whether the test result is normal or not, and sends the incremental source code to the product library equipment to store the incremental source code if the test result indicates that the incremental source code is normal.
Of course, if the test result includes an abnormal result, the user modifies the program file corresponding to the compiled file for the compiled file whose test result is the abnormal result, and performs the test operation on the program file again until the test result is the normal result.
After the incremental source codes are determined, the incremental source codes can be subjected to targeted test and check, so that the fault positions and the fault reasons can be rapidly determined, and therefore correction can be rapidly performed.
Step S210: and determining the development efficiency of the developer and the sequencing result of the development efficiency based on the incremental source code.
After determining the incremental source code, the configuration library device may further perform the further operation of:
each program file includes file information including a user identifier indicating that an update operation is performed; determining the development efficiency of the developer based on the incremental source code comprises:
classifying each program file in the incremental source code according to the user identification, and determining an incremental source code subset corresponding to each user identification;
calculating the development efficiency of each user by utilizing the incremental source code subset corresponding to each user identifier;
performing sequencing operation on the development efficiency of each user to obtain a sequencing result;
and displaying the development efficiency of each user and the sequencing result.
Through the above embodiments, it can be seen that the present application has the following beneficial effects:
firstly, the present application provides an incremental source code determining method, in this scheme, after a user performs an update operation on one or more program files in a source code, a current node number uniquely representing the update operation is added to the file name of the one or more program files involved in the update operation.
Then, a query range composed of the current node number and the historical node number can be determined, and one or more program files with the node numbers meeting the query range can be searched through the node numbers in the file names of the program files in the current full source code. The one or more program files are the incremental source code corresponding to the update operations within the query scope.
The method and the device can automatically determine the incremental source codes from the current full source codes, so that the incremental source codes can be simply and conveniently determined, and the updating efficiency and accuracy of software programs in a product library are improved.
Secondly, after the incremental source code is determined, the embodiment can perform targeted test and inspection on the incremental source code so as to quickly determine the fault position and the fault reason, so that quick correction is performed and the existing risk is avoided in time.
Thirdly, the incremental source codes can be continuously extracted, the codes developed by developers every day are incrementally extracted, the development efficiency and the sequencing result of each developer can be obtained after the incremental source codes are classified based on the user identification, and managers can conveniently distribute work tasks to the developers based on the development efficiency.
Referring to fig. 3, this embodiment further provides an incremental source code determining apparatus, which is applied to a development library device, and the apparatus includes:
an acquisition unit 31 configured to acquire source code from a configuration library device, wherein the source code includes a plurality of program files;
a recording unit 32, configured to record, in a process of performing an update operation on one or more program files in the source code to obtain a current full-amount source code, file names of the one or more program files involved in the update operation;
a generating unit 33, configured to generate a current node number uniquely indicating the update operation;
an adding unit 34, configured to add the current node number to a file name of one or more program files involved in the update operation;
a sending unit 35, configured to send the current full-size source code to the configuration library device, so that the configuration library device determines an incremental source code based on the current node number of the current full-size source code.
The step of generating, by the generating unit 33, the current node number uniquely indicating the updating operation specifically includes:
acquiring a user identifier for indicating that the updating operation is executed, and a time identifier for indicating that the updating operation is executed;
if the user identifier of the updating operation is not consistent with the user identifier of the updating operation last time, or the time identifier of the updating operation is not consistent with the time identifier of the updating operation last time, the current node number is generated in an incremental mode on the basis of the historical node number of the updating operation last time;
if the user identifier of the updating operation is consistent with the user identifier of the updating operation last time, and the time identifier of the updating operation is consistent with the time identifier of the updating operation last time, taking the historical node number of the updating operation last time as the current node number; the time identification takes date as a unit, and one date corresponds to one time identification.
Optionally, the file name of the program file includes a file identifier and a history node number, which represent the program file; the adding unit 34 adds the current node number to the file name of one or more program files involved in the update operation, specifically including: and replacing the historical node number in the file name of one or more program files with the current node number.
Referring to fig. 4, this embodiment further provides an incremental source code determining apparatus, which is applied to a configuration library device, where the apparatus includes:
a storage unit 41, configured to receive and store current full source codes sent by a development library device after the development library device performs an update operation on one or more program files in source codes to obtain the current full source codes; the file names of one or more program files related to the updating operation in the current full source code comprise current node numbers which uniquely represent the updating operation;
a determining unit 42, configured to determine a query range composed of the current node number and the historical node number;
the querying unit 43 is configured to determine one or more program files in the current full source code whose node numbers are located in the querying range as the incremental source code.
The current node number in the current full source code and the node number in the full source code corresponding to the previous updating operation are in ascending order; the determining unit 42 determines the query range composed of the current node number and the historical node number, which specifically includes:
acquiring the historical node number and the current node number;
and determining the query range according to the range which is larger than the historical node number and smaller than or equal to the current node number.
The determining, by the querying unit 43, one or more program files in the current full source code whose node numbers are located in the querying range are determined as incremental source codes, which specifically includes:
executing the following steps for each program file in the current full source code: judging whether the node number in the file name of the program file is located in the query range; if yes, determining the program file as a program file in the incremental source code; if not, determining that the program file is not the incremental source code.
Optionally, the incremental source code determining apparatus further includes:
a sending unit 44, configured to obtain a test result after performing a test operation on the incremental source code; and if the test result indicates that the increment source code is normal, sending the increment source code to a product library so that the product library stores the increment source code.
Optionally, each program file includes file information, where the file information includes a user identifier indicating that the update operation is performed; the incremental source code determination apparatus further includes:
the analysis and display unit 45 is configured to perform classification operations on each program file in the incremental source code according to the user identifier, and determine an incremental source code subset corresponding to each user identifier; calculating the development efficiency of each user by using the incremental source code subset corresponding to each user identifier; and executing sequencing operation on the development efficiency of each user to obtain a sequencing result, and displaying the development efficiency of each user and the sequencing result.
The functions described in the method of the present embodiment, if implemented in the form of software functional units and sold or used as independent products, may be stored in a storage medium readable by a computing device. Based on such understanding, part of the contribution to the prior art of the embodiments of the present application or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including several instructions for causing a computing device (which may be a personal computer, a server, a mobile computing device or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An incremental source code determination method applied to a configuration library device, the method comprising:
after a development library device executes updating operation on one or more program files in a source code to obtain a current full amount of source codes, receiving and storing the current full amount of source codes sent by the development library device; the file names of one or more program files related to the updating operation in the current full source code comprise current node numbers which uniquely represent the updating operation;
determining a query range consisting of the current node number and the historical node number;
determining one or more program files with node numbers in the current full source codes within the query range as incremental source codes;
wherein the step of generating the current node number uniquely representing the updating operation by the development library equipment comprises the following steps:
acquiring a user identifier for indicating that the updating operation is executed, and a time identifier for indicating that the updating operation is executed;
judging whether the user identification of the updating operation is consistent with the user identification of the last updating operation or not, and judging whether the time identification of the updating operation is consistent with the time identification of the last updating operation or not;
if the user identifier of the updating operation is not consistent with the user identifier of the updating operation last time, or the time identifier of the updating operation is not consistent with the time identifier of the updating operation last time, the current node number is generated in an incremental mode on the basis of the historical node number of the updating operation last time;
and if the user identifier of the updating operation is consistent with the user identifier of the updating operation last time, and the time identifier of the updating operation is consistent with the time identifier of the updating operation last time, taking the historical node number of the updating operation last time as the current node number.
2. The method of claim 1, wherein the current node number in the current full source code is in an increasing order with the node number in the full source code corresponding to the previous update operation;
then the determining a query range composed of the current node number and the historical node number includes:
acquiring the historical node number and the current node number;
and determining the query range according to the range which is larger than the historical node number and smaller than or equal to the current node number.
3. The method of claim 2, wherein determining one or more program files in the current full source code whose node numbers are in the query scope as an incremental source code comprises:
executing the following steps for each program file in the current full source code:
judging whether the node number in the file name of the program file is located in the query range;
if yes, determining the program file as a program file in the incremental source code;
if not, determining that the program file is not the incremental source code.
4. The method of claim 1, further comprising:
obtaining a test result after the test operation is executed on the incremental source code;
and if the test result indicates that the incremental source codes are normal, sending the incremental source codes to a product library so that the product library stores the incremental source codes.
5. The method of claim 1, wherein each program file includes file information, the file information including a user identifier indicating that the update operation is performed;
after determining one or more program files of which the node numbers are located in the query range in the current full source code as the incremental source code, the method further includes:
classifying each program file in the incremental source code according to the user identification, and determining an incremental source code subset corresponding to each user identification;
calculating the development efficiency of each user by using the incremental source code subset corresponding to each user identifier;
executing sequencing operation on the development efficiency of each user to obtain a sequencing result;
and displaying the development efficiency of each user and the sequencing result.
6. An incremental source code determination method is applied to a development library device, and comprises the following steps:
obtaining source code from a configuration library device, wherein the source code comprises a plurality of program files;
in the process of performing updating operation on one or more program files in the source code to obtain the current full-amount source code, recording the file names of one or more program files related to the updating operation;
generating a current node number uniquely representing the updating operation;
adding the current node number to the file name of one or more program files involved in the update operation;
sending the current full-scale source code to the configuration library device for the configuration library device to determine an incremental source code based on a current node number of the current full-scale source code;
wherein the step of generating the current node number uniquely representing the updating operation by the development library equipment comprises the following steps:
acquiring a user identifier for indicating that the updating operation is executed, and a time identifier for indicating that the updating operation is executed;
judging whether the user identification of the updating operation is consistent with the user identification of the last updating operation or not, and judging whether the time identification of the updating operation is consistent with the time identification of the last updating operation or not;
if the user identifier of the updating operation is not consistent with the user identifier of the updating operation last time, or the time identifier of the updating operation is not consistent with the time identifier of the updating operation last time, the current node number is generated in an incremental mode on the basis of the historical node number of the updating operation last time;
and if the user identifier of the updating operation is consistent with the user identifier of the updating operation of the last time, and the time identifier of the updating operation is consistent with the time identifier of the updating operation of the last time, taking the historical node number of the updating operation of the last time as the current node number.
7. The method of claim 6, wherein generating the current node number uniquely representing the update operation comprises:
acquiring a user identifier for indicating that the updating operation is executed, and a time identifier for indicating that the updating operation is executed;
if the user identifier of the updating operation is not consistent with the user identifier of the updating operation last time, or the time identifier of the updating operation is not consistent with the time identifier of the updating operation last time, the current node number is generated in an incremental mode on the basis of the historical node number of the updating operation last time;
if the user identifier of the updating operation is consistent with the user identifier of the updating operation last time, and the time identifier of the updating operation is consistent with the time identifier of the updating operation last time, taking the historical node number of the updating operation last time as the current node number;
the time identification takes date as a unit, and one date corresponds to one time identification.
8. The method of claim 7, wherein the file name of the program file includes a file identification and a history node number representing the program file;
then said adding said current node number to the file name of one or more program files involved in said update operation comprises:
and replacing the historical node number in the file name of one or more program files with the current node number.
9. An incremental source code determining apparatus, applied to a configuration library device, the apparatus comprising:
the storage unit is used for receiving and storing the current full source codes sent by the development library equipment after the development library equipment executes updating operation on one or more program files in the source codes to obtain the current full source codes; wherein the file name of one or more program files related to the update operation in the current full source code comprises a current node number which uniquely represents the update operation;
the determining unit is used for determining a query range consisting of the current node number and the historical node number;
the query unit is used for determining one or more program files with node numbers in the current full source codes within the query range as incremental source codes;
the step of generating the current node number uniquely representing the updating operation by the development library equipment comprises the following steps:
acquiring a user identifier for indicating that the updating operation is executed, and a time identifier for indicating that the updating operation is executed;
judging whether the user identification of the updating operation is consistent with the user identification of the last updating operation or not, and judging whether the time identification of the updating operation is consistent with the time identification of the last updating operation or not;
if the user identifier of the updating operation is inconsistent with the user identifier of the updating operation of the last time, or the time identifier of the updating operation is inconsistent with the time identifier of the updating operation of the last time, incrementally generating a current node number on the basis of the historical node number of the updating operation of the last time;
and if the user identifier of the updating operation is consistent with the user identifier of the updating operation of the last time, and the time identifier of the updating operation is consistent with the time identifier of the updating operation of the last time, taking the historical node number of the updating operation of the last time as the current node number.
10. An incremental source code determining apparatus, applied to a development library device, the apparatus comprising:
an acquisition unit configured to acquire source code from a configuration library device, wherein the source code includes a plurality of program files;
the recording unit is used for recording file names of one or more program files related to the updating operation in the process of obtaining the current full source code by executing the updating operation on the one or more program files in the source code;
a generating unit, configured to generate a current node number uniquely indicating the update operation;
an adding unit, configured to add the current node number to a file name of one or more program files involved in the update operation;
a sending unit, configured to send the current full source code to the configuration library device, so that the configuration library device determines an incremental source code based on a current node number of the current full source code;
wherein the generating unit generates the current node number uniquely indicating the update operation includes:
acquiring a user identifier for indicating that the updating operation is executed, and a time identifier for indicating that the updating operation is executed;
judging whether the user identification of the updating operation is consistent with the user identification of the last updating operation or not, and judging whether the time identification of the updating operation is consistent with the time identification of the last updating operation or not;
if the user identifier of the updating operation is not consistent with the user identifier of the updating operation last time, or the time identifier of the updating operation is not consistent with the time identifier of the updating operation last time, the current node number is generated in an incremental mode on the basis of the historical node number of the updating operation last time;
and if the user identifier of the updating operation is consistent with the user identifier of the updating operation last time, and the time identifier of the updating operation is consistent with the time identifier of the updating operation last time, taking the historical node number of the updating operation last time as the current node number.
CN201811416521.XA 2018-11-26 2018-11-26 Method, device and system for determining incremental source code Active CN109491696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811416521.XA CN109491696B (en) 2018-11-26 2018-11-26 Method, device and system for determining incremental source code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811416521.XA CN109491696B (en) 2018-11-26 2018-11-26 Method, device and system for determining incremental source code

Publications (2)

Publication Number Publication Date
CN109491696A CN109491696A (en) 2019-03-19
CN109491696B true CN109491696B (en) 2022-08-19

Family

ID=65696749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811416521.XA Active CN109491696B (en) 2018-11-26 2018-11-26 Method, device and system for determining incremental source code

Country Status (1)

Country Link
CN (1) CN109491696B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404519A (en) * 2015-12-07 2016-03-16 青岛海信电器股份有限公司 Version control method, code testing method and system
CN107844300A (en) * 2017-11-03 2018-03-27 中国银行股份有限公司 Script processing method and system
CN108509200A (en) * 2018-03-13 2018-09-07 中国银行股份有限公司 It is a kind of to establish associated method and device between software source code and actuating code

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404519A (en) * 2015-12-07 2016-03-16 青岛海信电器股份有限公司 Version control method, code testing method and system
CN107844300A (en) * 2017-11-03 2018-03-27 中国银行股份有限公司 Script processing method and system
CN108509200A (en) * 2018-03-13 2018-09-07 中国银行股份有限公司 It is a kind of to establish associated method and device between software source code and actuating code

Also Published As

Publication number Publication date
CN109491696A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN111045944B (en) Regression testing method, device, system and computer readable storage medium
CN111552607A (en) Health evaluation method, device and equipment of application program and storage medium
CN112241360A (en) Test case generation method, device, equipment and storage medium
CN113127347A (en) Interface testing method, device, equipment and readable storage medium
CN109542496B (en) Method, device and system for determining incremental code
CN111340378A (en) Product project scheduling method and related device
CN115292163A (en) Application program detection method and device and computer readable storage medium
CN106557419B (en) Program testing method and device
CN109508203B (en) Method, device and system for determining version consistency
CN109491696B (en) Method, device and system for determining incremental source code
CN112069073A (en) Test case management method, terminal and storage medium
CN106484601B (en) User data analysis method and system for client
CN110134583B (en) Software testing and data processing method and device
CN113672497B (en) Method, device and equipment for generating non-buried point event and storage medium
CN113031995B (en) Rule updating method and device, storage medium and electronic equipment
CN111159028A (en) Webpage testing method and device
CN109558153B (en) Method, device and system for determining version consistency
CN108536577B (en) Program code information processing method and device
CN110866492B (en) Baseline branch identification method and device and computer system
CN109784053B (en) Method and device for generating filter rule, storage medium and electronic device
CN113176997A (en) Test case loading method and device, computer equipment and readable storage medium
CN111427900A (en) Label library updating method, device, equipment and readable storage medium
CN111240873A (en) Code error record management method and device
CN117234949B (en) Test data noise reduction method and device, storage medium and computer equipment
CN106776799B (en) Method and equipment for recording and analyzing quality information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant