Multi-pattern build evaluation method and program

The multi-pattern build evaluation method addresses unpredictable build errors in large-scale software development by generating and prioritizing build patterns based on synchronization elements, ensuring timely and efficient defect detection.

JP2024141272AActive Publication Date: 2024-10-10PANASONIC AUTOMOTIVE SYST CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2023052818
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-10
Estimated Expiration
2043-03-29

AI Technical Summary

Technical Problem

In large-scale software development, build errors occur unpredictably when combining source codes from different categories, and identifying these errors requires extensive time-consuming verification, often missing deadlines.

Method used

A multi-pattern build evaluation method that generates full and partial build patterns based on synchronization elements between changed source codes, prioritizing and distributing these patterns across build machines to identify and resolve errors efficiently.

Benefits of technology

This method enables early detection of defects in source code combinations, reducing the time and resources needed to complete builds within desired deadlines by grouping and prioritizing changes based on synchronization elements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024141272000001_ABST
    Figure 2024141272000001_ABST
Patent Text Reader

Abstract

To early find a bug that is caused when changes of source codes individually made in each category are combined, in combining the source codes in large-scale development.SOLUTION: A multi-pattern build evaluation method includes: acquiring, for each of a plurality of changed source codes, change information including information indicating a changed source code and synchronous element information indicating a synchronous element related between the changed source code and another changed source code; generating two or more packages including one or more pieces of the change information on the basis of the synchronous element information between the plurality of changed source codes, and generating an overall build pattern including all of the two or more packages and partial build patterns including some of the two or more packages.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a multi-pattern build evaluation method and program. [Background technology]

[0002] In the conventional source code integration process for large-scale development, the source code for each category is modified and tested separately, and then the source code for each category is integrated into the main source tree. In this process, it is known that there are cases where build errors occur when the changes in the categories conflict with each other, even if the test results for each category are normal, when the categories are combined.

[0003] In response to this, there is a technique for individually identifying the change version that leads to a defect and its contents from the change information of the source code, for example, for any combination. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2019-114043 A [Patent Document 2] JP 2015-011372 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, it is not possible to detect in advance which combinations will cause build errors, and when a build error does occur, it takes a lot of time to analyze it.Furthermore, if an exhaustive verification is performed on all combinations of changes to identify the combinations of changes that will cause a build error, it takes a huge amount of time, which means that the build cannot be completed within the desired deadline.

[0006] The present disclosure aims to detect problems early on when combining source code in large-scale development, which occurs when source code changes made individually in each category are combined. [Means for solving the problem]

[0007] The multi-pattern build evaluation method disclosed herein acquires, for each of a plurality of changed source codes, change information including information indicating the changed source code and synchronization element information indicating synchronization elements related between the changed source code and other changed source codes, generates two or more packages including one or more of the change information based on the synchronization element information between the plurality of changed source codes, and generates a total build pattern including all of the two or more packages and a partial build pattern including some of the two or more packages. Effect of the Invention

[0008] According to the present disclosure, when combining source code in large-scale development, problems that occur when combining source code changes made individually in each category can be discovered early on. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a diagram showing an example of a configuration of a multi-pattern build evaluation system according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of each device in the multi-pattern build evaluation system according to the embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of a functional configuration of the source code management server according to the embodiment. [Figure 4] FIG. 4 is a diagram illustrating an example of a functional configuration of the build job management server according to the embodiment. [Diagram 5] FIG. 5 is a flowchart showing an example of the flow of the evaluation process executed by the multi-pattern build evaluation system according to the embodiment. [Figure 6] FIG. 6 is a diagram showing an example of a development ticket in the multi-pattern build evaluation method according to the embodiment. [Figure 7] FIG. 7 is a diagram showing an example of change information in the multi-pattern build evaluation method according to the embodiment. [Figure 8] FIG. 8 is a diagram showing an example of change information in the multi-pattern build evaluation method according to the embodiment. [Figure 9] FIG. 9 is a diagram for explaining packing in the multi-pattern build evaluation method according to the embodiment. [Figure 10] FIG. 10 is a diagram for explaining generation of all build patterns in the multi-pattern build evaluation method according to the embodiment. [Figure 11] FIG. 11 is a diagram for explaining generation of a partial build pattern in the multi-pattern build evaluation method according to the embodiment. [Figure 12] FIG. 12 is a diagram for explaining generation of a partial build pattern in the multi-pattern build evaluation method according to the embodiment. [Figure 13] FIG. 13 is a diagram for explaining generation of a partial build pattern in the multi-pattern build evaluation method according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, with reference to the drawings, embodiments of a multi-pattern build evaluation system, a multi-pattern build evaluation method, a program, and a recording medium according to the present disclosure will be described.

[0011] In the description of the present disclosure, components having the same or substantially the same functions as those described above with respect to the previously-mentioned drawings may be given the same reference numerals, and the description may be omitted as appropriate. In addition, even when the same or substantially the same parts are shown, the dimensions and ratios of the components may be different depending on the drawing. In addition, for example, from the viewpoint of ensuring the visibility of the drawings, reference numerals may be given only to the main components in the description of each drawing, and reference numerals may not be given to components having the same or substantially the same functions as those described above with respect to the previously-mentioned drawings.

[0012] In the description of the present disclosure, components having the same or substantially the same functions may be distinguished by adding an alphanumeric character to the end of the reference symbol. Alternatively, when multiple components having the same or substantially the same functions are not distinguished, they may be collectively described by omitting the alphanumeric character at the end of the reference symbol.

[0013] Fig. 1 is a diagram showing an example of a configuration of a multi-pattern build evaluation system 1 according to an embodiment. As shown in Fig. 1, the multi-pattern build evaluation system 1 includes a client terminal 3, a source code management server 5, a build job management server 7, and multiple build machines 8. The client terminal 3, the source code management server 5, and the build job management server 7 are communicatively connected via a network N, which is a telecommunication line such as the Internet. In addition, the build job management server 7 is communicatively connected to each of the multiple build machines 8.

[0014] The client terminal 3 accepts operational input from the user. As an example, the client terminal 3 acquires a target deadline and an input priority to be entered in the development ticket based on the operational input from the user, and outputs the same to the source code management server 5. As an example, the client terminal 3 acquires change information based on the operational input from the user, and outputs the same to the source code management server 5.

[0015] The source code management server 5 manages development tickets, change information, and link information for source code. As an example, the source code management server 5 obtains input of the target deadline and the input priority from the client terminal 3, and enters them in the development ticket. As an example, the source code management server 5 manages each version of source code. As an example, the source code management server 5 associates a development ticket, modified source code based on the development ticket, and synchronization elements related to the modified source code, and manages them as change information. As an example, the source code management server 5 manages link information that defines the synchronization elements.

[0016] In addition, the development ticket of the source code may be managed separately by a server for managing the development ticket. The server for managing the development ticket may be provided in the multi-pattern build evaluation system 1 according to the embodiment, or may be provided as an external server. The server for managing the development ticket has a hardware configuration similar to that of the source code management server 5 and the build job management server 7, as shown in FIG. 2, for example. As an example, the server for managing the development ticket may obtain input of the target deadline and the input priority from the client terminal 3 and enter them in the development ticket. Also, the source code management server 5 may refer to the development ticket managed by the server for managing the development ticket.

[0017] The build job management server 7 bundles and manages multiple build machines 8. As one example, the build job management server 7 collects links of synchronization elements for multiple source code changes, thereby packing the synchronization elements together. As one example, the build job management server 7 generates a build pattern by grouping change information based on synchronization element information indicating the relationship between source code included in the change information. As one example, the build job management server 7 assigns an all-input build pattern and a partial build pattern to multiple build machines 8 and causes them to execute builds.

[0018] The multiple build machines 8 execute builds according to build patterns assigned by the build job management server 7. Note that Fig. 1 illustrates N build machines: 8-1, build machine 8-2, ..., build machine 8-N (N is a natural number).

[0019] FIG. 2 is a diagram showing an example of a hardware configuration of each device in the multi-pattern build evaluation system 1 according to the embodiment.

[0020] The client terminal 3, the source code management server 5, the build job management server 7, and each build machine 8 each have a processor 91, a main memory device 92, an auxiliary memory device 93, a communication interface 94, an input interface 95, and a display 96. The processor 91, the main memory device 92, the auxiliary memory device 93, the communication interface 94, the input interface 95, and the display 96 are communicatively connected by, for example, an internal bus.

[0021] It should be noted that the source code management server 5 , the build job management server 7 , and each build machine 8 do not necessarily have to include the input interface 95 and the display 96 .

[0022] The processor 91 controls the overall operation of each device. As the processor 91, various types of processors such as a central processing unit (CPU), a graphics processing unit (GPU), an application specific integrated circuit (ASIC), or a field programmable gate array (FPGA) can be appropriately used.

[0023] The main storage device 92 temporarily stores data being worked on by each device. As the main storage device 92, for example, a RAM (Random Access Memory) can be used.

[0024] The auxiliary storage device 93 stores various data and programs used in each device. As the auxiliary storage device 93, various storage media and storage devices such as a ROM (Read Only Memory), an HDD (Hard Disk Drive), an SSD (Solid State Drive), and a Flash memory can be appropriately used.

[0025] As an example, the auxiliary storage device 93 of the source code management server 5 stores information indicating source code, change information, and link information. The information indicating source code is information indicating source code before change to which the changed source code that has been build OK is combined, and is at least one of the source code and information indicating an access destination of the information indicating the source code. The change information includes information indicating a development ticket instructing a change to the source code, information indicating the changed source code, and synchronization element information indicating a synchronization element related between the changed source code and another changed source code. The information indicating the changed source code is at least one of the source code after change, information indicating the change content of the source code, and information indicating the access destination of the source code or the information indicating the change content. The synchronization element is a change number indicating a change by another user on which the change made by the user himself depends, or defined link information. The link information is information defining the synchronization element. Note that when the synchronization element is registered by the user, the link information does not need to be stored.

[0026] As an example, the auxiliary storage device 93 of the build job management server 7 stores build machine information and average build speed information for each of the multiple build machines 8. The build machine information is information that indicates the build-related processing capabilities of each build machine 8, such as the processing speed and number of parallel cores. The average build speed information includes the processing speed and the speed of each step. The auxiliary storage device 93 of the build job management server 7 also stores generated packages, build patterns, and build results.

[0027] The communication interface 94 is a circuit for the client terminal 3, the source code management server 5, and the build job management server 7 to communicate with the outside via the network N. The communication interface 94 is also a circuit for communication between the build job management server 7 and each of the multiple build machines 8. As the communication interface 94, a communication circuit for wired communication, a communication circuit for wireless communication, or a combination of these can be used as appropriate. As the communication circuit for wireless communication, a communication circuit compatible with various standards such as 3G, 4G, 5G, Wi-Fi (registered trademark), Bluetooth (registered trademark), etc. can be used as appropriate.

[0028] The input interface 95 acquires input operations by the user in each device. As the input interface 95, input devices such as a keyboard and a touch panel can be appropriately used.

[0029] The display 96 presents a display screen to the user. As the display 96, a liquid crystal display (LCD), an organic electroluminescence (EL) display, a projector, or the like can be appropriately used. The display 96 may be configured as a touch panel display. In this case, the touch panel of the display 96 is provided, for example, on the surface of the display 96, and outputs information according to a touched position. The touch panel of the display 96 is an example of an input interface 95 that acquires an operational input from the user.

[0030] 3 is a diagram showing an example of a functional configuration of the source code management server 5 according to the embodiment. In the source code management server 5, a processor 91 executes a program read from an auxiliary storage device 93 and loaded into a main storage device 92, thereby realizing a function as a synchronization element registration unit 51.

[0031] The synchronization element registration unit 51 accepts registration of a synchronization element based on a user input in the client terminal 3. Alternatively, the synchronization element registration unit 51 accepts, based on a user input in the client terminal 3, a designation as to in what unit the synchronization elements are to be linked.

[0032] 4 is a diagram showing an example of a functional configuration of the build job management server 7 according to an embodiment. In the build job management server 7, a processor 91 executes a program read from an auxiliary storage device 93 and loaded into a main storage device 92, thereby realizing functions as a packing unit 71, a build pattern definition unit 72, and a build unit 73.

[0033] The packing unit 71 acquires modification information for each of a plurality of modified source codes. The modification information includes information indicating the modified source code and synchronization element information indicating synchronization elements related between the modified source code and other modified source codes.

[0034] The change information also includes, for example, synchronization element information defined by a user. Alternatively, the packing unit 71 defines the synchronization element based on a reference destination of the changed source code. Alternatively, the change information includes information indicating a development ticket that instructs a change to the source code. In this case, the packing unit 71 defines the synchronization element based on information indicating the development ticket.

[0035] Furthermore, the packing unit 71 generates two or more packages including one or more pieces of change information based on synchronization element information between a plurality of changed source codes.

[0036] The build pattern definition unit 72 generates a total build pattern including all of the two or more packages, and a partial build pattern including some of the two or more packages.

[0037] For example, if the change information includes information indicating a development ticket that instructs a change to source code, the build pattern definition unit 72 generates a partial build pattern based on the build priority defined by the development ticket. For example, if the change information includes information about an error that occurred during a past build, the build pattern definition unit 72 generates a partial build pattern that includes two or more of the packages that caused an error in the past build.

[0038] The build unit 73 causes the build machine 8 to build the multiple source codes defined by the all build patterns and build one or more source codes defined by the partial build patterns. If the builds of all the build patterns are successful, the build unit 73 adopts the build results of all the build patterns. If the builds of all the build patterns are not successful, the build unit 73 adopts the build results from one or more of the partial build patterns that were successfully built.

[0039] For example, if the change information includes information indicating a development ticket that instructs a change to the source code, the build unit 73 allocates build destination resources in order from the partial build pattern including change information with the highest build priority defined by the development ticket after all build patterns. For example, if the change information includes information about an error that occurred during a past build, the build unit 73 allocates build destination resources preferentially to a partial build pattern that caused an error in a past build.

[0040] Next, a description will be given of the flow of the evaluation process executed by the multi-pattern build evaluation system 1 configured as above. Fig. 5 is a flowchart showing an example of the flow of the evaluation process executed by the multi-pattern build evaluation system 1 according to the embodiment.

[0041] First, a developer (user) uses the client terminal 3 to enter the target deadline and submission priority of a development task into a development ticket 201 (S101). Fig. 6 is a diagram showing an example of a development ticket 201 in a multi-pattern build evaluation method according to an embodiment. As shown in Fig. 6, the development ticket 201 stores a development ticket name, a deadline, and a submission priority. The submission priority is information indicating the priority of build execution.

[0042] Then, the user uses the client terminal 3 to make changes to the source code such as function implementation / defect correction in accordance with the schedule defined by the development ticket 201 (S102). Fig. 5 illustrates a case where changes are made to "source code v.1" stored in the source code management server 5 in accordance with the development ticket (development task α).

[0043] In addition, after the developer makes a single or multiple changes linked to the development ticket 201 to the source code using the client terminal 3, the developer registers change information 203 indicating each change in the source code management server 5 that manages the source code using the client terminal 3 (S103).

[0044] (When the user explicitly specifies a synchronization element) FIG. 7 is a diagram showing an example of change information 203a in the multi-pattern build evaluation method according to the embodiment.

[0045] The change information 203a stores a change number, a development ticket name, a source code storage path, and a synchronization element, as shown in Fig. 7. The change number is a unique identification number that is assigned to each change in the source code and does not overlap with other changes.

[0046] For example, a user specifies in change information 203a changes made by other users on which his or her change depends. For example, user A can understand that his or her change A001 will not work unless change B002 made by user B and change D004 made by user D are incorporated, so when registering change A001, he or she registers change B002 and change D004, which are related to the source code of his or her change A001, as synchronization elements. On the other hand, except in the case of mutual dependency, user D who makes change D004 does not know whether change A001 made by user A is necessary for his or her change. In this case, user D does not specify change A001 made by user A.

[0047] In addition, there may be cases where the changes made by other developers are known without relying on the source code. In such cases, the synchronization element may be registered even if it is not clear from the source code. Then, the synchronization element registration unit 51 of the source code management server 5 acquires the synchronization elements registered by the user.

[0048] (When the system automatically acquires synchronization elements) FIG. 8 is a diagram showing an example of change information 203b in the multi-pattern build evaluation method according to the embodiment.

[0049] As shown in FIG. 8, the change information 203b stores a change number, a development ticket name, a source code storage path, and a synchronization element.

[0050] For example, the user specifies in what unit the synchronization elements are to be linked to the source code management server 5 using the client terminal 3. The source code management server 5 holds link information indicating the unit of the specified synchronization elements. Note that the link information specified by the client terminal 3 may be described in the change information 203b.

[0051] As an example, a user can specify the API / source code level as the unit of synchronization elements. In this case, the source code management server 5 defines synchronization elements based on the service calling relationship and the reference information of common functions / files.

[0052] As an example, a user can specify the source code level as the unit of synchronization elements. In this case, the source code management server 5 defines synchronization elements based on file and data reference information, i.e., link information of functions used in the same use case.

[0053] In this way, the synchronization element registration unit 51 of the source code management server 5 links and acquires synchronization elements in units designated by the user. Specifically, the synchronization element registration unit 51 holds link information based on the designated units in advance, and automatically links changes in which related modifications have been made based on difference information from the source code before modification.

[0054] If all changes to the target deadline have not been registered (S104: No) and the previously set submission deadline has not arrived (S105: No), the build job management server 7 waits for further processing. On the other hand, if all changes to the target deadline have been registered (A104: Yes) or the previously set submission deadline has arrived (S105: Yes), the build job management server 7 starts processing related to packing and building (S106 to S115).

[0055] The packing unit 71 of the build job management server 7 packs the change information in descending order of input priority based on synchronization element information indicating synchronization elements, to generate a package.

[0056] First, the link unit 711 establishes links between pieces of change information according to the synchronization elements.

[0057] When the API / source code level is specified as the unit of synchronization elements, the linking unit 711 establishes links based on the dependencies used during build. Specifically, the linking unit 711 creates a dependency list from API external reference information and constant reference information of the source code, and by referring to the created dependency list, links changes related to the source code associated with the changes to obtain synchronization elements.

[0058] When the source code level is specified as the unit of synchronization elements, the link unit 711 performs a reverse lookup of functions that use files and data, that is, references use cases from system test results to establish links to related functions. Specifically, the link unit 711 references the development ticket name in the change information 203b to establish links to changes issued from the same development ticket. This is because, for example, changes linked to a certain use case are linked to a development ticket issued when the system test results are NG, and so changes related to the same development ticket are bundled together.

[0059] Then, the processing unit 712 packs the change information in descending order of input priority to generate a package.

[0060] FIG. 9 is a diagram for explaining packing in a multi-pattern build evaluation method according to an embodiment. In FIG. 9, development task α has priority S, and is linked to change 1 and change 2. The synchronization elements of change 1 are change 2 and change 4. The synchronization element of change 2 is change 1. Furthermore, development task β has priority A, and is linked to change 3. Change 3 has no synchronization elements. Furthermore, development task γ has priority A, and is linked to change 4. Change 4 has no synchronization elements. Furthermore, development task σ has priority B, and is linked to change 5. Change 5 has no synchronization elements.

[0061] In this case, the processing unit 712 packs change information for change 1 with priority S, which has the highest input priority. At this time, change information linked based on synchronization elements is packed together. Therefore, in the example of Fig. 9, the processing unit 712 first generates package 401 including change information for change 1, change 2, and change 4. Next, the processing unit 712 packs change information for change 3 with priority A to generate package 402. Next, the processing unit 712 packs change information for change 5 with priority B to generate package 403.

[0062] In this way, the packing unit 71 according to the embodiment selects change information with a high priority for build input, extracts change information on which the selected change information depends, and packs the change information into one package.

[0063] Note that the packing unit 71 does not follow links going from the user to the used. Therefore, for example, in the example of Fig. 9, if the priority of development task α is A and the priority of development task γ is S, package 401 will be generated as a package including change information for change 4.

[0064] As in the above example, this holds true in cases where changes to the used side can be introduced without changes to the used side, such as the addition of APIs or constants, but there may also be cases where this does not hold true unless changes to the used side, such as changes to APIs or constants, are also incorporated. In such cases, a flag indicating whether or not synchronization of the change source is required may be added as an attribute when registering the change information of change 4. The multi-pattern build evaluation method according to the embodiment may be configured to follow links in the opposite direction, for example, when this necessity flag is ON.

[0065] After that, that is, when all change information for the target deadline has been registered or the pre-set submission deadline has been reached, a build will start automatically (S107 to S111).

[0066] The build pattern definition unit 72 generates an all-build pattern 411a including all the packages (S107). Fig. 10 is a diagram for explaining generation of all build patterns in a multi-pattern build evaluation method according to an embodiment. As shown in Fig. 10, the build pattern definition unit 72 generates an all-build pattern 411a including all the packages 401, 402, 403 packed based on synchronization elements. In addition, the build unit 73 assigns the build of all the build patterns 411a to the build machine 8-1 as a resource, and causes the assigned build machine 8-1 to build all the build patterns 411a (S108).

[0067] Furthermore, in parallel with the processes of S107 to S108, the build pattern definition unit 72 generates partial build patterns 411b, 411c, and 411d including some of the packages (S109).

[0068] As an example, the build pattern definition unit 72 generates partial build patterns 411b and 411c in descending order of input priority. FIGS. 11 and 12 are diagrams for explaining generation of partial build patterns in a multi-pattern build evaluation method according to an embodiment. For example, in this embodiment, a case is illustrated in which four levels of priority, S / A / B / C, are set in descending order. In this case, the build pattern definition unit 72 generates build patterns in the following order: priority S only (partial build pattern 411b in FIG. 11) → up to priority A (partial build pattern 411c in FIG. 12) → ... → priority S+B (excluding A) → priority S+C → priority A only → priority A+B → ...

[0069] Note that, when a package is generated from a combination of change information that caused a problem in a past build, i.e., an error, the build pattern definition unit 72 may generate a past problem build pattern and perform the build with the highest priority. Fig. 13 is a diagram for explaining generation of a partial build pattern in a multi-pattern build evaluation method according to an embodiment. Fig. 109 illustrates a past problem build pattern based on error information as a partial build pattern 411c. In this way, a configuration may be adopted in which information on synchronization elements is left in error information at the time of build, and the build priority is increased for combinations that have caused errors multiple times in the past, thereby achieving early detection of defects.

[0070] In addition, when linking synchronization elements with past error information and preferentially including combinations with a high error frequency in a build pattern, if a package has been created with a combination that has caused problems in the past, the build pattern can be generated by excluding low-priority change information from the package.

[0071] The build unit 73 also allocates resources so that partial build patterns with higher submission priority are executed in order (S110), and executes builds for the allocated partial build patterns (S111). At this time, the build unit 73 predicts build times and allocates resources so that the completion time does not exceed the deadline. If the prepared resources become full, the build unit 73 ends allocation even if build execution of build patterns with lower submission priority remains. Then, the build unit 73 monitors the build status and updates the build completion time. If the updated completion time exceeds the deadline specified in the development ticket and the build cannot be completed within the deadline, the build unit 73 increases the resources allocated to the high-priority build, and reduces the resources or pauses the build execution of low-priority builds.

[0072] The resource allocation by the build unit 73 includes a step of checking available build machines 8. The allocation also includes a step of obtaining the amount of source code modification included in the partial build pattern by referring to the change information. The allocation also includes a step of obtaining the build time from the build machine 8 whose processing capacity and source code modification amount are close to each other by referring to the past build history. The allocation also includes a step of obtaining the remaining time until the build is completed by referring to the development ticket and checking the remaining time until the build is completed from the earliest deadline date and the current time. The allocation also includes a step of allocating resources to partial build patterns in order of priority so that the build can be submitted within the remaining time specified in the development ticket. At this time, the build unit 73 allocates multiple partial build patterns to multiple build machines 8 in parallel so that the builds are completed within the deadline. When the processing slot of a certain build machine 8 is filled, the build unit 73 changes the allocation destination to the next build machine 8.

[0073] Then, the build unit 73 checks the build results of all build patterns (S112), and if the build results are NG (S113: No), obtains the results of partial build patterns in descending order of input priority (S114).

[0074] On the other hand, if the build results of all or a partial build pattern are OK (S113: Yes), the build unit 73 merges the source code of the change information included in the build pattern into the main source tree (S115).

[0075] As described above, the multi-pattern build evaluation method according to the embodiment generates a plurality of build patterns each bundling a small number of changes based on a synchronization element, and evaluates them so that they are combined in order of priority. Specifically, the multi-pattern build evaluation method according to the embodiment collects changes made individually to the source code, identifies combinations that cause errors, and combines combinations that do not cause errors into the source tree. The multi-pattern build evaluation method according to the embodiment performs a build using a partial build pattern bundling a small number of changes before combining them into the source tree, and identifies combinations that cause build errors. In this case, the multi-pattern build evaluation method according to the embodiment groups changes that should be combined simultaneously into the source tree based on a synchronization element, thereby reducing the number of combinations to be verified. In addition, the multi-pattern build evaluation method according to the embodiment assigns priorities to combinations, and manipulates resource allocation amounts and processing start timings so that a build of a partial build pattern including change information with high priority is completed within a desired deadline.

[0076] This configuration makes it possible to quickly find cases where changes made individually to source code in each category will cause errors when they are combined. In other words, when integrating source code in large-scale development, it makes it possible to quickly find problems that occur when changes made individually to source code in each category are combined.

[0077] In this embodiment, a build error (build result NG) has been described as an example of an error, but the present invention is not limited to this. The multi-pattern build evaluation method according to this embodiment may be configured to detect an operational malfunction or defect in a post-build operation check (test) as an error, not limited to a build error. Similarly, with regard to generation of build patterns and resource allocation based on past error information, the method may be configured to use error information about an error when an operational malfunction or defect is detected in a post-build operation check (test) as an error, not limited to a past build error.

[0078] In the above-mentioned embodiment, "determining whether it is A" may mean "determining that it is A", or "determining that it is not A", or "determining whether it is A or not".

[0079] The programs executed by each device of the multi-pattern build evaluation system 1 of the above-mentioned embodiment are provided by being recorded in an installable or executable format on a computer-readable recording medium such as a CD-ROM, FD, CD-R, or DVD.

[0080] The programs executed by each device of the multi-pattern build evaluation system 1 of the above-described embodiment may be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. The programs executed by each device of the multi-pattern build evaluation system 1 may be provided or distributed via a network such as the Internet.

[0081] Furthermore, the programs executed by each device of the multi-pattern build evaluation system 1 of the above-described embodiment may be provided by being pre-installed in a ROM or the like.

[0082] In addition, the program executed on the source code management server 5 in the above-mentioned embodiment has a modular structure including the above-mentioned functional unit (synchronization element registration unit 51), and in terms of actual hardware, the processor 91 reads out the program from the auxiliary storage device 93 and executes it, thereby loading the above-mentioned functional unit onto the main storage device 92, and the above-mentioned functional unit is generated on the main storage device 92.

[0083] In addition, the program executed by the build job management server 7 in the above-mentioned embodiment has a modular structure including each of the above-mentioned functional units (packing unit 71 (link unit 711 and processing unit 712), build pattern definition unit 72, and build unit 73). In terms of actual hardware, the processor 91 reads out the program from the auxiliary storage device 93 and executes it, whereby each of the above-mentioned functional units is loaded onto the main storage device 92, and each of the above-mentioned functional units is generated on the main storage device 92.

[0084] According to at least one of the embodiments described above, when combining source code in large-scale development, problems that occur when combining source code changes made individually in each category can be discovered early on.

[0085] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope of the invention and its equivalents described in the claims, as well as in the scope and spirit of the invention.

[0086] (Additional Note) The above description of the embodiments discloses the following techniques. (1) Acquire, for each of a plurality of changed source codes, change information including information indicating the changed source code and synchronization element information indicating a synchronization element related between the changed source code and another changed source code; generating two or more packages including one or more pieces of change information based on the synchronization element information between the plurality of changed source codes; generating a total build pattern including all of the two or more packages and a partial build pattern including some of the two or more packages; Multi-pattern build evaluation method. (2) The information indicating the source code is at least one of the source code, information indicating changes to the source code, and information indicating an access destination of the source code or the information indicating the changes. The multi-pattern build evaluation method according to (1) above. (3) The modification information includes user-defined synchronization element information. The multi-pattern build evaluation method according to (1) or (2) above. (4) defining the synchronization element based on a reference of the changed source code; A multi-pattern build evaluation method according to any one of (1) to (3) above. (5) the change information includes information indicating a development ticket instructing a change to source code; defining the synchronization element based on information indicative of a development ticket; A multi-pattern build evaluation method according to any one of (1) to (4) above. (6) the change information includes information indicating a development ticket instructing a change to source code; generating the partial build pattern based on a build priority defined by the development ticket; A multi-pattern build evaluation method according to any one of (1) to (5) above. (7) The change information includes error information from a past build, generating the partial build pattern including two or more of the packages that were in error in a past build; A multi-pattern build evaluation method according to any one of (1) to (6) above. (8) executing a build of a plurality of source codes defined by the full build pattern and a build of one or more source codes defined by the partial build pattern; If the builds of all the build patterns are successful, adopt the build results of all the build patterns; If the builds of all of the build patterns are not successful, a build result is adopted from one or more build patterns among the partial build patterns that have been successfully built. A multi-pattern build evaluation method according to any one of (1) to (7) above. (9) the change information includes information indicating a development ticket instructing a change to source code; Next to the entire build pattern, resources for a build destination are allocated in order from the partial build pattern including the change information having a high build priority defined by the development ticket. The multi-pattern build evaluation method according to (8) above. (10) The change information includes error information from a past build, Prioritizing the allocation of build destination resources to the partial build pattern that resulted in an error in a past build; The multi-pattern build evaluation method according to (8) or (9) above. (11) Acquire, for each of a plurality of changed source codes, change information including information indicating the changed source code and synchronization element information indicating a synchronization element related between the changed source code and another changed source code; generating two or more packages including one or more pieces of change information based on the synchronization element information between the plurality of changed source codes; generating a total build pattern including all of the two or more packages and a partial build pattern including some of the two or more packages; program. (12) A program for causing a computer to execute the multi-pattern build evaluation method according to any one of (2) to (10) above. (13) A recording medium (Computer Program Product) on which the program executed by a computer is recorded, the program being described in (11) or (12) above. [Explanation of symbols]

[0087] 1. Multi-pattern build evaluation system 3. Client terminal 5. Source Code Management Server 51 Synchronous Element Registration Section 7 Build Job Management Server 71 Packing Section 711 Link section 712 Processing section 72 Build Pattern Definition Section 73 Build Department 91 Processor 92 Main memory 93 Auxiliary storage device 94 Communication Interface 95 Input Interface 96 Display N Network

Claims

1. Acquire, for each of a plurality of changed source codes, change information including information indicating the changed source code and synchronization element information indicating a synchronization element related between the changed source code and another changed source code; generating two or more packages including one or more pieces of change information based on the synchronization element information between the plurality of changed source codes; generating a total build pattern including all of the two or more packages and a partial build pattern including some of the two or more packages; Multi-pattern build evaluation method.

2. The information indicating the source code is at least one of the source code, information indicating changes to the source code, and information indicating an access destination of the source code or the information indicating the changes. The multi-pattern build evaluation method according to claim 1 .

3. The modification information includes user-defined synchronization element information. The multi-pattern build evaluation method according to claim 1 .

4. defining the synchronization element based on a reference of the changed source code; The multi-pattern build evaluation method according to claim 1 .

5. the change information includes information indicating a development ticket instructing a change to source code; defining the synchronization element based on information indicative of a development ticket; The multi-pattern build evaluation method according to claim 1 .

6. the change information includes information indicating a development ticket instructing a change to source code; generating the partial build pattern based on a build priority defined by the development ticket; The multi-pattern build evaluation method according to claim 1 .

7. The change information includes error information from a past build, generating the partial build pattern including two or more of the packages that were in error in a past build; The multi-pattern build evaluation method according to claim 1 .

8. executing a build of a plurality of source codes defined by the full build pattern and a build of one or more source codes defined by the partial build pattern; If the builds of all the build patterns are successful, adopt the build results of all the build patterns; If the builds of all of the build patterns are not successful, a build result is adopted from one or more build patterns among the partial build patterns that have been successfully built. The multi-pattern build evaluation method according to any one of claims 1 to 7.

9. the change information includes information indicating a development ticket instructing a change to source code; Next to the entire build pattern, resources for a build destination are allocated in order from the partial build pattern including the change information having a high build priority defined by the development ticket. The multi-pattern build evaluation method according to claim 8.

10. The change information includes error information from a past build, Prioritizing the allocation of build destination resources to the partial build pattern that resulted in an error in a past build; The multi-pattern build evaluation method according to claim 8.

11. Acquire, for each of a plurality of changed source codes, change information including information indicating the changed source code and synchronization element information indicating a synchronization element related between the changed source code and another changed source code; generating two or more packages including one or more pieces of change information based on the synchronization element information between the plurality of changed source codes; generating a total build pattern including all of the two or more packages and a partial build pattern including some of the two or more packages; program.

Citation Information

Patent Citations

  • Analysis support program, analysis support device, and analysis support method

    JP2015056120A

  • Task aware source checkin and build

    US20060236301A1

  • Dependence-based software builds

    US20110239195A1

  • Intelligent automatic merging of source control queue items

    US20200264871A1

  • Software build tool with revised code version based on description of revisions and authorizing build based on change report that has been approved

    US7437712B1