# US 2021/0342251 A1 · Review process for evaluating changes to target code for a software-based product

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0342251 A1
- Document ID: US20210342251A1
- Status: Published application
- Kind: A1
- Application number: 17/331,502
- Filed: 2021-05-26
- Published: 2021-11-04
- Earliest claimed: 2019-07-19
- Assignees: VMware, Inc.
- Applicants: Vmware, Inc.
- Inventors: Dinesh Gnaneswaran; AISHWARY THAKUR; AYESHA KARIM
- Web page: https://patentgrep.com/patent/US20210342251A1

## CPC

- G06F 11/3612: {by runtime analysis (performance monitoring G06F11/3466)}
- G06N 20/00: Machine learning
- G06N 20/20: Ensemble learning
- G06Q 10/06398: {Performance of employee with respect to a job function}
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

Systems and methods can implement a review process to evaluate changes to target code as part of development cycles for a continuous integration, continuous deployment pipeline for software-based products. The system can aggregate data and determine if the target code has been modified preliminarily and then intelligently determine where further review is needed before the changes are permanently implemented. To do this, a changeset including the preliminarily changed target code can be obtained from the aggregated data. The changeset can be tested with a prediction model based on feature data that characterizes aspects of a coding process carried out to generate the preliminary modification. The prediction model can provide an activation recommendation for the preliminary modification based on a plurality of risk factors determined from the testing. The prediction model can be trained, continuously, with training data that includes a plurality of data artifacts resulting from a code build processes.

## Claims

### Claim 1

A method for implementing a review process for evaluating changes to target code for a software-based product, the method comprising:
aggregating data for the target code into aggregated data;
obtaining a changeset from the aggregated data in response to receiving an indication of a preliminary modification being made to the target code;
training a prediction model configured to test the changeset using training data obtained from a repository, the training data including a plurality of data artifacts corresponding to results from a respective plurality of code build processes;
testing the changeset with the prediction model at least based on feature data that characterizes a generation of the preliminary modification; and
generating an activation recommendation based on a plurality of risk factors determined from the testing.

### Claim 2 (depends on 1)

The method of claim 1, further comprising generating a prediction for review time for a secondary analysis of the preliminary modification based on a portion of the feature data used to determine at least one of the plurality of risk factors.

### Claim 3 (depends on 2)

The method of claim 2, further comprising generating a recommendation for a reviewer for the secondary analysis from a list of reviewers based on reviewer performance data, the review time, and at least one of the plurality of risk factors.

### Claim 4 (depends on 2)

The method of claim 2, wherein the review time is generated based on the prediction model processing feature data for the changeset corresponding to a number of files changed, total number of patch sets uploaded, total number of lines added and deleted, number of reviewer comments, and a list of reviewers.

### Claim 5 (depends on 1)

The method of claim 1, further comprising evaluating the prediction model before testing the changeset, by:
dividing the training data into a first data subset and a second data subset,
processing the first data subset to train the prediction model and determine a validation score,
processing the second data subset to determine a model accuracy score, and
continuing the training until a variance between the validation score and the model accuracy score is within a predetermined range.

### Claim 6 (depends on 1)

The method of claim 1, wherein the plurality of risk factors are determined based on the prediction model processing feature data for the changeset corresponding to an owner pass rate, a file pass rate, a reviewer pass rate, an execution status for the changeset, and a total number of lines of code inserted and deleted across all patch sets for the changeset.

### Claim 7 (depends on 1)

The method of claim 1, further comprising providing, in response to an Application Programming Interface (API) call, a characterization of at least one of the plurality of risk factors.

### Claim 8

A non-transitory, computer-readable medium containing instructions that, when executed by a hardware-based processor, performs stages for implementing a review process for evaluating changes to target code for a software-based product, the stages comprising:
aggregating data for the target code into aggregated data;
obtaining a changeset from the aggregated data in response to receiving an indication of a preliminary modification being made to the target code;
training a prediction model configured to test the changeset using training data obtained from a repository, the training data including a plurality of data artifacts corresponding to results from a respective plurality of code build processes;
testing the changeset with the prediction model at least based on feature data that characterizes a generation of the preliminary modification; and
generating an activation recommendation based on a plurality of risk factors determined from the testing.

### Claim 9 (depends on 8)

The non-transitory, computer-readable medium of claim 8, the stages further comprising generating a prediction for review time for a secondary analysis of the preliminary modification based on a portion of the feature data used to determine at least one of the plurality of risk factors.

### Claim 10 (depends on 9)

The non-transitory, computer-readable medium of claim 9, the stages further comprising generating a recommendation for a reviewer for the secondary analysis from a list of reviewers based on reviewer performance data, the review time, and at least one of the plurality of risk factors.

### Claim 11 (depends on 9)

The non-transitory, computer-readable medium of claim 9, wherein the review time is generated based on the prediction model processing feature data for the changeset corresponding to a number of files changed, total number of patch sets uploaded, total number of lines added and deleted, number of reviewer comments, and a list of reviewers.

### Claim 12 (depends on 8)

The non-transitory, computer-readable medium of claim 8, the stages further comprising evaluating the prediction model before testing the changeset, by:
dividing the training data into a first data subset and a second data subset, processing the first data subset to train the prediction model and determine a validation score,
processing the second data subset to determine a model accuracy score, and
continuing the training until a variance between the validation score and the model accuracy score is within a predetermined range.

### Claim 13 (depends on 8)

The non-transitory, computer-readable medium of claim 8, wherein the plurality of risk factors are determined based on the prediction model processing feature data for the changeset corresponding to an owner pass rate, a file pass rate, a reviewer pass rate, an execution status for the changeset, and a total number of lines of code inserted and deleted across all patch sets for the changeset.

### Claim 14 (depends on 8)

The non-transitory, computer-readable medium of claim 8, further comprising providing, in response to an Application Programming Interface (API) call, a characterization of at least one of the plurality of risk factors.

### Claim 15

A system for implementing a review process for evaluating changes to target code for a software-based product, comprising:
a memory storage including a non-transitory, computer-readable medium comprising instructions; and
a computing device including a hardware-based processor that executes the instructions to carry out stages comprising:
aggregating data for the target code into aggregated data;
obtaining a changeset from the aggregated data in response to receiving an indication of a preliminary modification being made to the target code;
training a prediction model configured to test the changeset using training data obtained from a repository, the training data including a plurality of data artifacts corresponding to results from a respective plurality of code build processes;
testing the changeset with the prediction model at least based on feature data that characterizes a generation of the preliminary modification; and
generating an activation recommendation based on a plurality of risk factors determined from the testing.

### Claim 16 (depends on 15)

The system of claim 15, the stages further comprising generating a prediction for review time for a secondary analysis of the preliminary modification based on a portion of the feature data used to determine at least one of the plurality of risk factors.

### Claim 17 (depends on 16)

The system of claim 16, the stages further comprising generating a recommendation for a reviewer for the secondary analysis from a list of reviewers based on reviewer performance data, the review time, and at least one of the plurality of risk factors.

### Claim 18 (depends on 16)

The system of claim 16, wherein the review time is generated based on the prediction model processing feature data for the changeset corresponding to a number of files changed, total number of patch sets uploaded, total number of lines added and deleted, number of reviewer comments, and a list of reviewers.

### Claim 19 (depends on 15)

The system of claim 15, the stages further comprising evaluating the prediction model before testing the changeset, by:
dividing the training data into a first data subset and a second data subset,
processing the first data subset to train the prediction model and determine a validation score,
processing the second data subset to determine a model accuracy score, and
continuing the training until a variance between the validation score and the model accuracy score is within a predetermined range.

### Claim 20 (depends on 15)

The system of claim 15, wherein the plurality of risk factors are determined based on the prediction model processing feature data for the changeset corresponding to an owner pass rate, a file pass rate, a reviewer pass rate, an execution status for the changeset, and a total number of lines of code inserted and deleted across all patch sets for the changeset.
