Information processing device, method, program and system
The system objectively evaluates development work quality by using a trained model to analyze GitHub data, improving efficiency and reducing failures by identifying low-quality review requests.
Patent Information
- Application Number
- JP2023022107
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-16
- Publication Date
- 2024-08-28
- Estimated Expiration
- 2043-02-16
AI Technical Summary
Existing methods for evaluating development work quality are subjective and complex, leading to inconsistent and inefficient assessments.
A system that utilizes a trained model to objectively evaluate review requests in software development by analyzing development activity information from platforms like GitHub, incorporating features such as file changes, time, and worker information to predict failure risk and lead time.
This approach allows for efficient and objective evaluation of development work quality, enabling early detection of low-quality requests, reducing failures, and shortening lead times.
Smart Images

Figure 2024116472000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an information processing device, a method, a program, and a system. [Background technology]
[0002] It is important for an organization to evaluate the productivity and quality of the work performed by its members.
[0003] Patent Document 1 describes a technical idea intended to evaluate a task from a qualitative perspective and accurately evaluate tasks related to the task in question. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2011-164715 A Summary of the Invention [Problem to be solved by the invention]
[0005] The technical idea of Patent Document 1 requires the user (the activity subject) to subjectively evaluate the activity. Therefore, this technical idea has the problem that the user is forced to perform cumbersome tasks when implementing it, and also that the same activity (task) may be evaluated differently depending on the subject (i.e., the evaluation is not objective).
[0006] An object of the present disclosure is to provide a technique for efficiently and objectively evaluating the quality of development work performed by engineers. [Means for solving the problem]
[0007] A program of one embodiment of the present disclosure causes a computer to function as: means for acquiring content of a review request, in which a first engineer requests a review of a file that has been added or modified in a local repository of the issue management service, and additional information related to the review request, from information stored in the issue management service when the engineer uses the issue management service; means for evaluating the review request by applying a trained model that makes inferences for evaluating the review request to model input information based on the content of the review request and the additional information related to the review request; and means for outputting the evaluation result of the review request. [Brief description of the drawings]
[0008] [Figure 1] 1 is a block diagram showing a configuration of an information processing system according to an embodiment of the present invention; [Diagram 2] FIG. 2 is a block diagram showing a configuration of a client device according to the present embodiment. [Diagram 3] FIG. 2 is a block diagram showing a configuration of a server according to the present embodiment. [Figure 4] FIG. 1 is an explanatory diagram of one aspect of the present embodiment. [Diagram 5] FIG. 2 is a diagram showing a data structure of a repository database according to the present embodiment. [Figure 6] FIG. 2 is a diagram showing a data structure of a development activity database according to the present embodiment. [Figure 7] 4 is a flowchart of information processing according to the present embodiment. [Figure 8] 11A to 11C are diagrams illustrating examples of screens displayed in the information processing of the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. In the drawings for explaining the embodiment, the same components are generally designated by the same reference numerals, and the repeated description will be omitted.
[0010] In this specification, a team means a group of multiple members. In this specification, a team may also refer to an engineer team, which is a group of multiple engineers. A team is responsible for the development of a specific product. The product is typically software, and may be, for example, a website for providing a web service such as SaaS (Software as a Service), or an application installed on a computer. In a team, each engineer advances development by dividing up roles for each function, output, etc. One or more teams may belong to an organization such as a company. In addition, engineers in a team are not limited to only company employees employed by a specific company (organization), but may be company employees of any company in a development project in which multiple companies jointly advance development. Furthermore, engineers in a team may include dispatched employees and sole proprietors (so-called freelancers).
[0011] (1) Information Processing System Configuration The configuration of the information processing system will be described below. Fig. 1 is a block diagram showing the configuration of the information processing system according to the present embodiment.
[0012] As shown in FIG. 1, the information processing system 1 includes a client device 10 and a server 30. The client device 10 and the server 30 are connected via a network (for example, the Internet or an intranet) NW. The server 30 is also connected to an external system 50 via the network NW.
[0013] The client device 10 is an example of an information processing device that transmits a request to the server 30. The client device 10 is, for example, a smartphone, a tablet terminal, or a personal computer. The client device 10 can be used to check an evaluation result for a review request provided by the information processing system 1. Here, a review request refers to an activity in which an engineer requests others to review a file that has been added or changed in a local repository, and corresponds to, for example, a pull request in GitHub.
[0014] The users of the client device 10 may include, for example, at least one of the following: - The engineer who requested the review to be evaluated A reviewer who has been assigned a review request to be rated Other members or leaders of the team to which the above engineer or reviewer belongs - The person in charge of development of the product for which the above engineer or reviewer is responsible The engineer or reviewer's superior - Human resources personnel at the organization to which the engineer or reviewer belongs - A senior executive at the organization to which the engineer or reviewer belongs Those who view job postings from the organizations to which the above-mentioned engineers or reviewers belong Those who are considering requesting work from or employing the above engineers or reviewers
[0015] The server 30 is an example of an information processing device that provides the client device 10 with a response in response to a request transmitted from the client device 10. The server 30 is, for example, a server computer. The server 30 provides an evaluation result of the review request in response to a request from the client device 10.
[0016] The external system 50 provides information on development activities by engineers in response to a request from the server 30. The external system 50 is typically a software development platform such as GitHub (registered trademark). GitHub manages source code, which is the product of development by engineers, and manages reviews of the source code.
[0017] The external system 50 is not limited to GitHub, and may be other software development platforms such as GitLab (registered trademark) or Bitbucket (registered trademark). Alternatively, the external system 50 may be an issue management tool (e.g., Jira (registered trademark)) or a task management tool (e.g., Trello (registered trademark) or backlog (registered trademark)) in software development. These software development platforms, issue management tools, or task management tools may be collectively referred to as an issue management service. In the following description, it is assumed that GitHub is used as the external system 50.
[0018] GitHub is a source code hosting service. It has repositories (a means of management) for version control of source code, which is the result of development. GitHub manages a list of source code at a given point in time. GitHub has various functions such as issue (creation), push, commit, pull request, and merging.
[0019] Issue is a function for managing issues in projects and source code. Push is a function for uploading source code that has been created or modified in an engineer's local environment (local repository) to a remote environment (remote repository). Commit is a function for registering changes to source code. Pull request is a function for notifying that a push has been made and requesting a review. Merge is a function for finalizing the review results and integrating the history. Here, source code is a concept that includes code (character strings) written in a programming language such as Python or a markup language such as HTML or CSS, as well as scripts (character strings) written in a scripting language, which is a type of programming language such as JavaScript (registered trademark).
[0020] A programming language is a language used in software development, and specific examples include JavaScript (registered trademark), Java (registered trademark), Scala, PHP, Ruby, Python, Go, C#, etc. A software framework is a software platform used in software development, and specific examples include jQuery, React, Vue.js, Angular, Nuxt.js, Next.js, ReactNative, Spring Framework, Play Framework, Laravel, CakePHP, RubyonRails, Django, Flask, TensorFlow, gin, Unity, Express, etc.
[0021] (1-1) Client device configuration The configuration of the client device will now be described with reference to Fig. 2, which is a block diagram showing the configuration of the client device of this embodiment.
[0022] 2, the client device 10 includes a storage device 11, a processor 12, an input / output interface 13, and a communication interface 14. The client device 10 is connected to a display 21.
[0023] The storage device 11 is configured to store programs and data. The storage device 11 is, for example, a combination of a Read Only Memory (ROM), a Random Access Memory (RAM), and a storage (for example, a flash memory or a hard disk).
[0024] The programs include, for example, the following programs: ·OS (Operating System) programs · Programs for applications that process information (e.g. web browsers)
[0025] The data includes, for example, the following data: Databases referenced in information processing Data obtained by performing information processing (i.e., the results of performing information processing)
[0026] The processor 12 is a computer that realizes the functions of the client device 10 by running a program stored in the storage device 11. The processor 12 is, for example, at least one of the following: ·CPU(Central Processing Unit) ·GPU(Graphic Processing Unit) ·ASIC(Application Specific Integrated Circuit) ·FPGA(Field Programmable Array)
[0027] The input / output interface 13 is configured to obtain information (eg, a user's instruction) from an input device connected to the client device 10, and to output information (eg, an image signal) to an output device connected to the client device 10. The input device is, for example, a keyboard, a pointing device, a touch panel, or a combination thereof. The output device is, for example, a display 21, a speaker, or a combination thereof.
[0028] The communication interface 14 is configured to control communications between the client device 10 and an external device (eg, a server 30).
[0029] The display 21 is configured to display an image (a still image or a moving image). The display 21 is, for example, a liquid crystal display or an organic EL display.
[0030] (1-2) Server configuration The configuration of the server will now be described with reference to Fig. 3, which is a block diagram showing the configuration of the server according to this embodiment.
[0031] As shown in FIG. 3, the server 30 includes a storage device 31, a processor 32, an input / output interface 33, and a communication interface .
[0032] The storage device 31 is configured to store programs and data, and is, for example, a combination of a ROM, a RAM, and a storage (for example, a flash memory or a hard disk).
[0033] The programs include, for example, the following programs: -OS programs Application programs that perform information processing
[0034] The data includes, for example, the following data: Databases referenced in information processing Results of information processing
[0035] The processor 32 is a computer that realizes the functions of the server 30 by starting a program stored in the storage device 31. The processor 32 is, for example, at least one of the following. ·CPU GPU ·ASIC FPGA
[0036] The input / output interface 33 is configured to receive user instructions from an input device connected to the server 30 , and to output information to an output device connected to the server 30 . The input device is, for example, a keyboard, a pointing device, a touch panel, or a combination thereof. The output device is, for example, a display.
[0037] The communication interface 34 is configured to control communications between the server 30 and an external device (eg, a client device 10 or an external system 50).
[0038] (2) One aspect of the embodiment An embodiment of the present invention will now be described with reference to Fig. 4, which is an explanatory diagram of an embodiment of the present invention.
[0039] As shown in FIG. 4, various engineers carry out various development activities using an external system 50. The external system 50 stores information related to logs of such development activities (hereinafter referred to as "development activity information"). The server 30 acquires, from the external system 50, the development activity information, particularly information related to a review request. The server 30 acquires at least one of the contents of the review request and additional information (described later) related to the review request. The server 30 may periodically collect the development activity information related to the review request, or may collect such development activity information in response to some trigger (for example, reception of an evaluation request from the client device 10).
[0040] The server 30 determines a review request to be evaluated from among the review requests stored in the external system 50. The server 30 generates model input information based on at least one of the contents of the determined evaluation target (review request) or additional information related to the evaluation target.
[0041] The server 30 applies the review request evaluation model to the generated model input information to evaluate the review request corresponding to the model input information. The review request evaluation model is a trained model that performs inference for evaluating the review request, and can be constructed based on the results of machine learning (supervised learning) described later.
[0042] The server 30 transmits the evaluation result of the review request to the client device 10. The client device 10 presents information based on the evaluation result of the review request to the user US1.
[0043] The user US1 may be a person different from the engineer who made the review request to be evaluated. For example, if the user US1 is a reviewer assigned to the review request, the user US1 can easily estimate the man-hours required for the review in advance by checking the evaluation result for the review request before starting the review. Alternatively, if the user US1 is a person in a position to manage or evaluate the engineers who made the review requests, the evaluation result of the review requests made by each engineer can be used as a basis for allocating tasks within the team or for evaluating the engineers' personnel.
[0044] On the other hand, the user US1 may be the same person as the engineer who made the review request that is the subject of evaluation. In this case, by presenting information based on the evaluation result of the review request made by the user US1 to the user US1, it is possible to encourage the user US1 to self-reflect or to be encouraged.
[0045] In this way, according to this embodiment, it is possible to efficiently and objectively evaluate the quality of development work (specifically, review requests) performed by engineers. As a result, improvement in the quality of review requests is encouraged, and low-quality review requests are detected before the start of subsequent processes, which is expected to improve development efficiency (e.g., improved development speed due to shorter lead times or fewer problems) and quality (e.g., software with fewer bugs) for the entire team.
[0046] (3) Database The databases of this embodiment are stored in the storage device 31.
[0047] (3-1) Repository database The repository database of this embodiment will now be described with reference to Fig. 5, which is a diagram showing the data structure of the repository database of this embodiment.
[0048] The repository database stores repository information, which is information relating to a repository created in the external system 50.
[0049] 5, the repository database includes a "Repository ID" field, a "Team ID" field, and an "Address" field. Each field is associated with the other fields.
[0050] The “repository ID” field stores a repository ID. The repository ID is information for identifying a repository. The server 30 can obtain the repository ID from the external system 50.
[0051] The "Team ID" field stores a team ID. The team ID is information for identifying the team that created the repository identified by the corresponding repository ID. The server 30 can acquire the team ID from the external system 50. The team ID is useful when collecting development activity information by engineers belonging to the same team for the purpose of, for example, building a review request evaluation model on a team basis, which will be described later. However, in a configuration in which collection of such information is not required, the team ID does not need to be stored in the repository database.
[0052] The team ID may be associated with an organization ID in a database (not shown). The organization ID associated with the team ID identifies the organization to which the team corresponding to the team ID belongs. The team ID may also be associated with an engineer ID in a database (not shown). The engineer ID associated with the team ID identifies a member belonging to the team corresponding to the team ID.
[0053] The "Address" field stores address information, which is information for accessing a repository identified by a corresponding repository ID (for example, a URL (Uniform Resource Locator)).
[0054] (3-2) Development Activity Database The development activity database of this embodiment will now be described with reference to Fig. 6, which shows the data structure of the development activity database of this embodiment.
[0055] The development activity database stores development activity information, which is information about activities performed by engineers regarding source code stored in a repository created in the external system 50.
[0056] For example, when a user (i.e., an engineer) pushes source code from a local repository, the external system 50 records, as log information, information that can identify the user who made the push and the date and time when the push was made. Similarly, the external system records log information for at least one of the following activities: The activity of recording added or modified files in the local repository of the issue management service (equivalent to a commit in GitHub, for example; hereinafter, similar activities will be referred to as "commits") · Activities to create issues regarding source code ·Activities to close issues The activity of requesting a review of a file that has been added or changed in a local repository (e.g., equivalent to a pull request on GitHub; hereinafter, similar activities are referred to as "pull requests") Reviewing files in response to the above requests The activity of approving the integration of the requested files into the project body (equivalent to merging in GitHub, hereinafter, similar activities will be referred to as "merging"). · Comment creation activity · Creating responses to comments
[0057] The server 30 updates the development activity database based on the development activity information acquired from the external system 50. The server 30 may acquire the development activity information periodically, or may acquire the development activity information in response to some trigger (for example, reception of an evaluation request from the client device 10).
[0058] As shown in FIG. 6, the development activity database includes an "activity ID" field, a "repository ID" field, an "action ID" field, an "engineer ID" field, a "date and time" field, and a "source code" field.
[0059] The “activity ID” field stores an activity ID. The activity ID is information for identifying an activity performed by an engineer regarding source code stored in a repository created in the external system 50.
[0060] The "Repository ID" field stores a repository ID. The repository ID is information for identifying a repository in which a source code in which an activity identified by a corresponding activity ID has been performed is stored.
[0061] The "action" field stores action information. The action information is information about the type of activity specified by the corresponding activity ID.
[0062] The "engineer ID" field stores an engineer ID. The engineer ID is information for identifying the engineer (i.e., the user of the external system 50) who performed the activity identified by the corresponding activity ID.
[0063] The "Date and Time" field stores date and time information. The date and time information is information about the date and time when the activity identified by the corresponding activity ID was performed.
[0064] The "source code" field stores source code information. The source code information is information about the source code in which the activity identified by the corresponding activity ID was performed (for example, file name information, information about the changed file).
[0065] (4) Information processing The information processing of this embodiment will be described below with reference to Fig. 7, which is a flowchart of the information processing of this embodiment. Fig. 8 is a diagram showing an example of a screen displayed in the information processing of this embodiment.
[0066] The information processing of FIG. 7 may be executed periodically, or in response to a request from the client device 10.
[0067] As shown in FIG. 7, the server 30 executes a step of determining an evaluation target (S130). Specifically, the server 30 determines, from among the review requests stored in the external system 50, a review request to be evaluated.
[0068] As a first example of determining the evaluation target (S130), the server 30 determines the review requests specified by a specific user as the evaluation target. The user may specify the review requests to be evaluated individually or on a repository basis. When the user specifies a repository, the server 30 may unconditionally determine all review requests of the repository as the evaluation target.
[0069] As a second example of determining an evaluation target (S130), the server 30 determines, as an evaluation target, a review request for which a specific user is assigned as a reviewer.
[0070] As a third example of the determination of the evaluation target (S130), the server 30 determines, as the evaluation target, a review request made by an engineer designated by a specific user, or a review request for which the engineer is assigned as a reviewer.
[0071] As a fourth example of the determination of the evaluation target (S130), the server 30 determines, as the evaluation target, a review request generated in a team designated by a specific user.
[0072] As a fifth example of determining an evaluation target (S130), the server 30 determines a review request made by a specific user as an evaluation target.
[0073] As a sixth example of determining the evaluation target (S130), the server 30 determines as the evaluation target a review request (in other words, a new review request) that occurred within the most recent specified period (e.g., the period since the last execution of this information processing) or a review request whose status has changed within the specified period (e.g., to an open state).
[0074] The server 30 may combine two or more of the above first to sixth examples. Furthermore, prior to step S130, the user of the client device 10 may provide a user instruction regarding the designation of an evaluation target, an engineer, or a team via the client device 10. Then, the client device 10 may generate an evaluation request based on the user instruction and transmit the request to the server 30.
[0075] The server 30 may perform user authentication simultaneously with the evaluation request, or before or after the evaluation request. Specifically, the client device 10 acquires information used for user authentication and transmits it to the server 30. The server 30 checks whether the operator of the client device 10 is a registered user based on the information. If the user authentication is successful, the server 30 executes the subsequent processes. However, if user authentication is performed simultaneously with or after the evaluation request and the user is not assigned the authority to view the evaluation results of the evaluation target, the server 30 rejects the evaluation request.
[0076] Information used for user authentication may include information capable of identifying the user (e.g., a user ID) and information provided by the operator of the client device 10 to prove that the operator is the user (e.g., a password, biometric information, etc.).
[0077] After step S130, the server 30 executes information acquisition (S131). Specifically, the server 30 refers to, for example, the development activity database (FIG. 6) according to the evaluation target (review request) determined in step S130, and extracts information related to the evaluation target. The extracted information may be the review request itself, which is the evaluation target, or additional information related to the review request, or a combination of both. Note that the server 30 may not only directly obtain information from the development activity database, but also process or analyze the information as necessary.
[0078] As a first example of information acquisition (S131), the server 30 acquires volume information. The volume information is information about the volume of the review request (evaluation target). The volume information may include, for example, information about at least one of the following: Number of lines changed in the review request ·Number of files changed in review request
[0079] It is believed that the greater the number of lines of change in a review request, the greater the risk of a problem occurring due to the review request (described below) or the lead time between processes related to the review request (described below).It is believed that the greater the number of files of change in a review request, the greater the risk of a problem occurring due to the review request or the lead time between processes related to the review request.
[0080] As a second example of information acquisition (S131), the server 30 acquires character information. The character information is information about characters constituting the review request (rating target) or additional information of the review request. The character information may include, for example, information about at least one of the following: · Change file extension of review request - Change the string that appears in the file name Character strings that appear in the change file Feature vectors extracted from the change file
[0081] The information on the extension of the change file name of the review request can be used to identify the programming language or script language used to write the change file, and to determine whether the change file corresponds to a program change. In other words, it is possible to determine the type of the review request from the information on the extension of the change file name of the review request. It is considered that there is a correlation between the type of review request and the risk of occurrence of a fault or the lead time. As a first example, the server 30 can determine that the review request is a program change when the extension is "cpp", "rb", or "py". As a second example, the server 30 can determine that the review request is probably a configuration file change when the extension is "yml", "json", or "xml". As a third example, the server 30 can determine that the review request is a dependent library change when the extension is "lock".
[0082] Information on a character string appearing in the name of a changed file in a review request can also be used to determine the type of the review request. As a first example, when the character string "Pipfile", "pyproject", or "pom" appears in the changed file name, the server 30 can determine that the review request is a change to a dependent library. For example, when a user changes a Pipfile, in addition to the Pipfile manually updated by the user, Pipfile.lock is automatically updated by the dependency management tool. Although PiPefile.lock is an update on the scale of hundreds to thousands of lines, it is an automatically generated result and does not need to be checked in a review, so it can be determined that the risk of a failure is low compared to code of the same scale that is manually updated. As a second example, when the character string "Client" or "network" appears in the changed file name, the server 30 can determine that the review request is a change to an element that communicates with the outside, that is, testing is difficult and bugs may occur easily. As a third example, if the string “util” appears in the changed file name, server 30 can determine that the review request is a change to an element that is referenced from various places, meaning that the change may have a large impact and be prone to bugs.
[0083] Information on character strings appearing in the change file requested for review can be used to determine whether the change file is causing a bug. As a first example, if the number of occurrences of "def" or "func" in the change file is low (e.g., below a threshold value corresponding to the number of lines in the file), the server 30 can determine that an enlarged function may be a breeding ground for bugs. As a second example, if the variable name in the change file is "tmp," "t," "a," or "b," the server 30 can determine that an unclear variable name may be a breeding ground for bugs.
[0084] When extracting a feature vector from the change file of the review request, the server 30 can use a neural network such as Bidirectional Encoder Representations from Transformers (BERT).
[0085] As a third example of information acquisition (S131), the server 30 acquires time information. The time information is information about the time when a process related to the review request (evaluation target) was performed, or information about the lead time between processes related to the review request. The time information can include, for example, information about at least one of the following: The actual or estimated time it takes from creating a review request to having it reviewed The time when the file corresponding to the review request was recorded (committed) to the local repository The review request creation time The actual or predicted time it takes for a review request to transition from a draft state to an open state The actual or predicted time it takes for a review request to be assigned to a reviewer after it transitions to an open state Here, the predicted value may be a representative value (e.g., the average, median, mode, maximum, minimum, first quartile, or third quartile) of multiple actual values measured in the past.
[0086] The commit time of the file corresponding to the review request or the creation time of the review request can be used to judge the condition of the engineer at that time. For example, the server 30 can determine that a review request committed or created late at night is more likely to contain defects due to careless mistakes, has a higher risk of failure, or has a longer lead time than a review request committed or created during other times.
[0087] The time required for a review request to transition from a draft state to an open state can be used to determine whether the design of the specifications is organized or whether development has been performed with a small patch size. The server 30 can evaluate that the shorter the actual or predicted required time is, the lower the risk of a failure occurring or the shorter the lead time is.
[0088] The time required from when a review request transitions to an open state until a reviewer is assigned can be used to determine whether reviewer assignment is properly structured. The server 30 can evaluate that the shorter the actual or predicted time required, the lower the risk of a problem occurring or the shorter the lead time.
[0089] The predicted value of the required time may be predicted, for example, based on information about the workers in charge of each process, or may be predicted by a trained model based on other information (for example, a second example of the review request evaluation model described below).
[0090] As a fourth example of information acquisition (S131), the server 30 acquires worker information. The worker information is information about the worker of each process related to the review request (evaluation target). The worker information can include, for example, information about at least one of the following: -The engineer who requested the review Reviewers assigned to review requests
[0091] Note that before extracting information from the development activity database, the server 30 may obtain development activity information from the external system 50 and update the database to reflect the latest information held by the external system 50.
[0092] After step S131, the server 30 executes generation of model input information (S132). Specifically, the server 30 generates model input information based on the information on the evaluation target acquired in step S131. As an example, the server 30 may convert the information acquired in step S131 into features and generate a vector in which the features are arranged as the model input information.
[0093] After step S132, the server 30 performs an evaluation of the review request (S133). Specifically, the server 30 applies the review request evaluation model to the model input information generated in step S132, thereby evaluating the review request determined as the evaluation target in step S130.
[0094] The first example of the review request evaluation model infers the risk of a problem occurring due to a review request (evaluation target). Here, the risk of a problem occurring may be, for example, a change problem rate. The change problem rate means the proportion of problems that occur due to changes. As an example, the change problem rate in GitHub can be expressed as the proportion of pull requests merged into the main branch from branches tagged with a problem to the number of pull requests merged into the main branch. A branch tagged with a problem is, for example, a branch that includes (regardless of case) a string that indicates a fix (hotfix) or a string that indicates reverting a change (revert).
[0095] A first example of the review request evaluation model can be constructed by supervised learning. The learning data used in supervised learning includes model input information for learning and corresponding correct answer information. The model input information for learning is generated based on past review requests so as to have the same format as the model input information (during operation) in step S132. The correct answer information indicates whether or not a problem has actually occurred due to the review request. By learning a large amount of such learning data, it is possible to create a trained model that has the function of statistically predicting the risk of a problem occurring that is inherent in a review request that corresponds to the given model input information.
[0096] The second example of the review request evaluation model performs inference on the lead time between processes related to the review request (evaluation target). The lead time to be inferred can include at least one of the following, for example. Time from reviewer assignment to first review The time it takes from review to approval of the incorporation of the files in the project (i.e., merging on GitHub) The time it takes from when a review request (subject to evaluation) transitions to an open state until the integration (merging) of the file corresponding to that review request into the project body is approved
[0097] A second example of the review request evaluation model can be constructed by supervised learning. The learning data used in supervised learning includes model input information for learning and corresponding correct answer information. The model input information for learning is generated based on review requests made in the past so as to have the same format as the model input information (during operation) in step S132. The correct answer information indicates the actual measured value of the lead time between processes related to the review request. By learning a large amount of such learning data, it is possible to create a trained model that has the function of statistically predicting the lead time between processes related to a review request corresponding to the given model input information.
[0098] The review request evaluation model can be constructed for various units. Specifically, the review request evaluation model can be constructed for each individual engineer, for each team including multiple engineers, for each organization including multiple teams, or for each industry including multiple organizations. Constructing a review request evaluation model for a small number of people is disadvantageous in terms of collecting learning data, but has the advantage of making it easier to increase the degree of fit. In addition, the review request evaluation model can be constructed for each programming language or markup language.
[0099] After step S133, the server 30 executes output of the evaluation result (S134). Specifically, the server 30 generates information for presenting the evaluation result of the review request in step S133 to the user of the client device 10. The server 30 transmits the generated information to the client device 10. Here, the generated information may be, for example, information for generating a screen to be displayed on the display 21 by the client device 10.
[0100] After step S134, the client device 10 executes information presentation (S110). Specifically, the client device 10 receives the information transmitted in step S134, and displays a screen based on the information on the display 21. This allows the user to check the evaluation result for the review request (evaluation target) (for example, the risk of a problem occurring due to the review request, or the lead time between processes related to the review request).
[0101] As an example, the client device 10 displays the screen shown in Fig. 8 on the display 21. The screen in Fig. 8 includes an object J20.
[0102] The object J20 displays information on the review request. The information on the review request includes information on the evaluation result of the review request. In the example of FIG. 8, the evaluation result of the review request includes an evaluation result of the risk of occurrence of a fault due to the review request and an evaluation result of the lead time between processes related to the review request. In the example of FIG. 8, the evaluation result is a three-level evaluation indicated by the number of icons displayed, but is not limited to this and may be expressed by a score or a sentence. By checking these evaluation results, the user can easily take measures such as conducting a thorough review to prevent faults from occurring, starting the review early to prevent the lead time from becoming too long, and providing feedback to the engineer who made the review request. Although not shown in FIG. 8, for example, when the evaluation result of the occurrence risk or the lead time is below a threshold, the server 30 may identify an element that is estimated to have a large adverse effect on the evaluation of the occurrence risk or the lead time from the information on the evaluation target, and present information indicating the element to the user via the client device 10.
[0103] The review request information displayed in object J20 may further include at least one of the following: · Title of review request Creator of the review request Review request status - Date and time of creation of the regulation request
[0104] 8 may be sorted or filtered in response to user instructions. For example, the user may instruct via the client device 10 to sort the review requests in descending order of risk of failure, or to display only review requests by a particular creator.
[0105] (5) Summary As described above, the server 30 acquires the contents of a review request for requesting a review of a file that an engineer has added or changed in a local repository of the issue management service from information stored in the issue management service (i.e., the external system 50). The server 30 evaluates the review request by applying a trained model (i.e., a review request evaluation model) that performs inference for evaluating the review request to model input information based on the acquired contents of the review request and the additional information related to the review request, and outputs the evaluation result of the review request. This makes it possible to efficiently and objectively evaluate the quality of the review request, and the user can utilize the evaluation result in his or her own work. As a result, the quality of the review request is encouraged to be improved, and a low-quality review request is detected before the start of a later process, which is expected to improve the efficiency of development (e.g., improved development speed due to a shortened lead time or reduced failures) and improve quality (e.g., software with fewer bugs) for the entire team.
[0106] The model input information may include volume information regarding review requests, which allows for efficient and objective evaluation of the quality of review requests based on a relationship between the volume of review requests and the quality of the review requests.
[0107] The volume information may be related to at least one of the number of changed lines or the number of changed files in the review request, thereby enabling efficient and objective evaluation of the quality of the review request to be evaluated based on the relationship between the quality of the review request and at least one of the number of changed lines or the number of changed files in the review request.
[0108] The model input information may include character information about the review request, which allows the quality of the review request to be evaluated to be evaluated efficiently and objectively based on the relationship between the character (string) about the review request and the quality of the review request.
[0109] The character information may be at least one of information about the extension of the modified file of the review request, information about a character string that appears in the modified file name, information about a character string that appears in the modified file, or a feature vector extracted from the modified file. This makes it possible to efficiently and objectively evaluate the quality of the review request, which is the evaluation target, based on the relationship between each piece of character information exemplified here and the quality of the review request.
[0110] The model input information may include time information related to the review request, which allows for an efficient and objective evaluation of the quality of the review request based on the relationship between the time related to the review request and the quality of the review request.
[0111] The time information may relate to at least one of the following: an actual or predicted value of the time required from creation of a review request to reviewing it, the time when a file corresponding to the review request was recorded in a local repository, the time when the review request was created, an actual or predicted value of the time required for the review request to transition from a draft state to an open state, or an actual or predicted value of the time required from the review request to transition to an open state to being assigned to a reviewer. This makes it possible to efficiently and objectively evaluate the quality of the review request that is the subject of evaluation, based on the relationship between each piece of time information exemplified here and the quality of the review request.
[0112] The model input information may include information about a worker associated with the review request, which allows the quality of the review request to be evaluated to be evaluated efficiently and objectively based on a relationship between the worker associated with the review request and the quality of the review request.
[0113] The worker information may be related to at least one of the engineer who made the review request to be evaluated and the reviewer assigned to the review request. This allows the quality of the review request to be evaluated to be evaluated efficiently and objectively based on the relationship between each worker information and the quality of the review request exemplified here.
[0114] The server 30 may evaluate the review request by applying a trained model that performs inference on the risk of a problem occurring due to the review request to the model input information, thereby making it possible to efficiently and objectively evaluate the risk of a problem occurring due to the review request that is the subject of evaluation.
[0115] The server 30 may evaluate the review request by applying a trained model that performs inference on the lead time for the review request to the model input information, thereby enabling efficient and objective evaluation of the lead time for the review request to be evaluated.
[0116] The lead time may include at least one of the time required from reviewer assignment to the first review, the time required from the review to approval of integration of the file corresponding to the review request into the project body, and the time required from transition of the review request to an open state to approval of integration of the file corresponding to the review request into the project body. This allows each of the example lead times described here to be evaluated efficiently and objectively.
[0117] The trained model may be constructed for each engineer, for each team including multiple engineers, for each organization including multiple teams, or for each industry including multiple organizations, which allows for greater flexibility in constructing trained models.
[0118] A trained model may be constructed for each programming language or markup language, whereby the trained model is constructed using training data obtained for review requests related to a specific programming language or markup language, thereby improving the accuracy of the evaluation.
[0119] (6) Other modifications The storage device 11 may be connected to the client device 10 via a network NW. The display 21 may be integrated with the client device 10. The storage device 31 may be connected to the server 30 via the network NW.
[0120] Each step of the above information processing can be executed by either the client device 10 or the server 30. For example, the processing described as being executed by the server 30 may be executed by the client device 10.
[0121] In the above description, an example has been shown in which the server 30 outputs the evaluation result (S134) regardless of whether the evaluation result is good or bad. However, the server 30 may, for example, notify the user when a predetermined condition is met for the evaluation result. The predetermined condition may, for example, be that an evaluation result below a lower limit or an evaluation above an upper limit has been obtained. The lower limit or upper limit may be set by the user, or may be set based on the evaluation result for a review request made in the past by the engineer who made the review request to be evaluated or an engineer in the same team as the engineer. The notification may be made on an app screen or a website screen, or may be made by using an email or other message (for example, a social networking service (SNS) message, a short message service (SMS) message, a chat tool message, etc.). The notification may include information informing that the predetermined condition is met, or may include information on the evaluation result. This allows the user to quickly grasp the evaluation result when the predetermined condition is met without having to actively and frequently check the evaluation result.
[0122] The server 30 may analyze the influence of the elements included in the model input information on the evaluation result of the review request, and output the analysis result (e.g., transmit information based on the analysis result to the client device 10). This allows the user (e.g., the engineer who made the review request that is the subject of evaluation) to recognize the factors that contributed to a positive evaluation or the factors that contributed to a negative evaluation, and promotes growth by improving the reproducibility of good-quality review requests or improving poor-quality review requests.
[0123] The server 30 may evaluate the same review request at multiple points in time (e.g., each time the state changes) and output the evaluation results at each of the multiple points in time of the review request. This allows the evaluation results to be updated, for example, when more information becomes available to reference for generating model input information, making it possible to provide the user with more accurate evaluation results.
[0124] In addition, in the above description, an example has been given in which steps in information processing are executed in a specific order, but the order in which the steps are executed is not limited to the example described above as long as there is no dependency between the steps.
[0125] (7) Additional Notes The matters described in the embodiment and the modified examples are supplemented below.
[0126] (Appendix 1) A computer (30), A means for acquiring, from information stored in the issue management service by the engineer using the issue management service, contents of a review request for a file that the first engineer has added or changed in the local repository of the issue management service and additional information related to the review request (S131); A means for evaluating the review request by applying a trained model that performs inference for evaluating the review request to model input information based on the content of the review request and additional information related to the review request (S133); A means for outputting an evaluation result of the review request (S134); A program that functions as a
[0127] (Appendix 2) The model input information includes volume information related to the review request; 2. The program described in Appendix 1.
[0128] (Appendix 3) The volume information includes at least one of the following: number of changed lines or number of changed files in the review request. 2. The program described in Appendix 2.
[0129] (Appendix 4) The model input information includes textual information about the review request, 2. The program described in Appendix 1.
[0130] (Appendix 5) The character information includes at least one of information about the extension of the changed file of the review request, information about a character string that appears in the changed file name, information about a character string that appears in the changed file, or a feature vector extracted from the changed file. 5. The program described in Appendix 4.
[0131] (Appendix 6) The model input information includes time information related to the review request; 2. The program described in Appendix 1.
[0132] (Appendix 7) The time information relates to at least one of the following: an actual or predicted value of the time required from the creation of a review request until the review is completed; a time when a file corresponding to the review request is recorded in the local repository; a time when the review request is created; an actual or predicted value of the time required for the review request to transition from a draft state to an open state; or an actual or predicted value of the time required from the transition of a review request to an open state until a reviewer is assigned; 6. The program described in Appendix 6.
[0133] (Appendix 8) The model input information includes worker information for the review request; 2. The program described in Appendix 1.
[0134] (Appendix 9) The assignee information is at least one of the first engineer or reviewers assigned to the review request. 10. The program described in Appendix 8.
[0135] (Appendix 10) The means for evaluating the review request evaluates the review request by applying a trained model that infers a risk of a problem occurring due to the review request to the model input information. 2. The program described in Appendix 1.
[0136] (Appendix 11) The means for evaluating the review request includes evaluating the review request by applying a trained model that makes inferences about lead times related to the review request to the model input information. 2. The program described in Appendix 1.
[0137] (Appendix 12) The lead time includes at least one of the time required from reviewer assignment to the first review, the time required from the review to the approval of integration of the files corresponding to the review request into the project body, or the time required from the transition of the review request to an open state to the approval of integration of the files corresponding to the review request into the project body; 12. The program according to claim 11.
[0138] (Appendix 13) The trained models are built per engineer, per team including multiple engineers, per organization including multiple teams, or per industry including multiple organizations. 2. The program described in Appendix 1.
[0139] (Appendix 14) Pre-trained models are built for each programming language or markup language. 2. The program described in Appendix 1.
[0140] (Appendix 15) Computer, means for analyzing the impact of factors included in the model input information on the evaluation result of the review request; A means for outputting the impact analysis results; 2. The program according to claim 1,
[0141] (Appendix 16) The evaluation method includes evaluating the review request at multiple points in time, The output means outputs the evaluation results at each of the multiple time points of the review request. 2. The program described in Appendix 1.
[0142] (Appendix 17) A computer (30) A step of acquiring, from information stored in the issue management service by the engineer using the issue management service, contents of a review request for a file that the first engineer added or changed in the local repository of the issue management service and additional information related to the review request (S131); A step of evaluating the review request by applying a trained model that performs inference for evaluating the review request to model input information based on the content of the review request and additional information related to the review request (S133); A step (S134) of outputting an evaluation result of the review request; How to do it.
[0143] (Appendix 18) A means for acquiring (S131) contents of a review request for a file that a first engineer has added or changed in a local repository of the issue management service from information stored in the issue management service by the engineer using the issue management service, and additional information related to the review request; A means for evaluating the review request by applying a trained model that performs inference for evaluating the review request to model input information based on the content of the review request and additional information related to the review request (S133); A means for outputting an evaluation result of the review request (S134); An information processing device (30) comprising:
[0144] (Appendix 19) A system (1) comprising a first information processing device (30) and a second information processing device (10), The first information processing device is A means for acquiring (S131) contents of a review request for a file that a first engineer has added or changed in a local repository of the issue management service from information stored in the issue management service by the engineer using the issue management service, and additional information related to the review request; A means for evaluating the review request by applying a trained model that performs inference for evaluating the review request to model input information based on the content of the review request and additional information related to the review request (S133); A means for outputting the evaluation result of the review request to the second information processing device (S134); Equipped with system.
[0145] Although the embodiment of the present invention has been described in detail above, the scope of the present invention is not limited to the above embodiment. Furthermore, the above embodiment can be improved or modified in various ways without departing from the spirit of the present invention. Furthermore, the above embodiment and the modified examples can be combined. [Explanation of symbols]
[0146] 1: Information processing system 10: Client device 11:Storage device 12: Processor 13: Input / Output Interface 14: Communication interface 21: Display 30: Server 31: Storage device 32 : Processor 33: Input / Output Interface 34: Communication interface 50: External system
Claims
1. Computer, A means for acquiring, from information stored in an issue management service by an engineer using the issue management service, content of a review request for a file that a first engineer has added or changed in a local repository of the issue management service and additional information related to the review request; a means for evaluating the review request by applying a trained model that performs inference for evaluating the review request to model input information based on the content of the review request and additional information related to the review request; means for outputting an evaluation result of the review request; A program that functions as a
2. the model input information includes volume information related to the review request; The program according to claim 1.
3. The volume information relates to at least one of a number of changed lines or a number of changed files in the review request. The program according to claim 2.
4. the model input information includes textual information related to the review request; The program according to claim 1.
5. The character information is related to at least one of information on the extension of the changed file of the review request, information on a character string appearing in the changed file name, information on a character string appearing in the changed file, and a feature vector extracted from the changed file. The program according to claim 4.
6. the model input information includes time information related to the review request; The program according to claim 1.
7. The time information relates to at least one of an actual or predicted value of the time required from creation of the review request to reviewing it, a time when a file corresponding to the review request was recorded in the local repository, a time when the review request was created, an actual or predicted value of the time required for the review request to transition from a draft state to an open state, or an actual or predicted value of the time required from the review request to transition to an open state to being assigned to a reviewer. The program according to claim 6.
8. the model input information includes worker information related to the review request; The program according to claim 1.
9. The worker information includes at least one of the first engineer and a reviewer assigned to the review request. The program according to claim 8.
10. The means for evaluating the review request evaluates the review request by applying a trained model that infers a risk of a problem occurring due to the review request to the model input information. The program according to claim 1.
11. The means for evaluating the review request evaluates the review request by applying a trained model that performs inference on a lead time related to the review request to the model input information. The program according to claim 1.
12. The lead time includes at least one of a time required from reviewer assignment to a first review, a time required from a review to approval of integration of a file corresponding to the review request into a project body, or a time required from transition of the review request to an open state to approval of integration of a file corresponding to the review request into a project body. The program according to claim 11.
13. The trained model is constructed for each engineer, each team including multiple engineers, each organization including multiple teams, or each industry including multiple organizations. The program according to claim 1.
14. The trained model is constructed for each programming language or markup language. The program according to claim 1.
15. The computer, means for analyzing the influence of elements included in the model input information on the evaluation result of the review request; A means for outputting the analysis result of the influence; The program according to claim 1 ,
16. The evaluating means evaluates the review request at a plurality of time points; the output means outputs the evaluation results at each of the plurality of time points of the review request. The program according to claim 1.
17. The computer A step of acquiring, from information stored in the issue management service by the engineer using the issue management service, content of a review request for a file that the first engineer added or changed in the local repository of the issue management service and additional information related to the review request; evaluating the review request by applying a trained model that performs inference for evaluating the review request to model input information based on the review request and additional information related to the review request; outputting an evaluation result of the review request; How to do it.
18. A means for acquiring, from information stored in an issue management service by an engineer using the issue management service, content of a review request for a file that a first engineer has added or changed in a local repository of the issue management service and additional information related to the review request; A means for evaluating the review request by applying a trained model that performs inference for evaluating the review request to model input information based on the content of the review request and additional information related to the review request; A means for outputting an evaluation result of the review request; An information processing device comprising:
19. A system including a first information processing device and a second information processing device, The first information processing device, A means for acquiring, from information stored in an issue management service by an engineer using the issue management service, content of a review request for a file that a first engineer has added or changed in a local repository of the issue management service and additional information related to the review request; A means for evaluating the review request by applying a trained model that performs inference for evaluating the review request to model input information based on the content of the review request and additional information related to the review request; a means for outputting an evaluation result of the review request to the second information processing device; Equipped with system.
Citation Information
Patent Citations
Predicting software build outcomes
US20190138300A1
Program, information processing device, and method
WO2022114050A1
Device and method for activity evaluation, and program
JP2011164715A
