# US 2023/0055527 A1 · Risk-based root cause identification methods and related autobuild systems

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

- Number: US 2023/0055527 A1
- Document ID: US20230055527A1
- Status: Published application
- Kind: A1
- Application number: 17/445,714
- Filed: 2021-08-23
- Published: 2023-02-23
- Earliest claimed: 2021-08-23
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Hemali Majithia; Seth Tager; Chinmoy Samant; Stacy Gordon; Peng Zhao; Kailin Huang; Shaun Phillips; Lauren Valdivia; Fabrice Medio
- Web page: https://patentgrep.com/patent/US20230055527A1

## CPC

- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/0772: {Means for error signaling, e.g. using interrupts, exception flags, dedicated error registers}
- G06F 11/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3692: {for test results analysis}
- G06F 11/3616: {using software metrics}
- G06F 11/368: {for test version control, e.g. updating test cases to a new software version}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Database systems and methods are provided for identifying a change associated with an update to executable code resulting in test failure. One method involves calculating risk scores for different changes associated with the update based on change characteristics associated with the respective changes, identifying a change from among the different changes associated with the update based on the risk scores associated with the respective changes, generating a modified update to the executable code that includes the identified change and excludes remaining changes of the update from the modified update, and initiate execution of one or more tests with respect to a compiled version of the modified update to the executable code. When execution of the one or more tests against the modified update results in a test failure, the change is identified as a potential root cause of the test failure associated with the update.

## Claims

### Claim 1

A method of identifying a change associated with an update to executable code resulting in failure of one or more tests, the method comprising:
for each change of a plurality of changes associated with the update:
identifying one or more characteristics associated with the change; and
calculating a respective value for a risk score associated with the respective change based on the one or more characteristics associated with the change;
identifying a first change from among the plurality of changes based on the respective values for the risk score associated with the respective changes;
generating a modified update to the executable code including the first change by excluding remaining changes of the plurality of changes from the modified update; and
executing the one or more tests with respect to a compiled version of the modified update to the executable code.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
identifying the one or more characteristics comprises determining first values for one or more quantitative characteristics associated with the first change based on source code associated with the first change; and
calculating the respective value for the risk score comprises calculating the respective value for the risk score associated with the first change based at least in part on the first values for the one or more quantitative characteristics.

### Claim 3 (depends on 2)

The method of claim 2, wherein:
identifying the one or more characteristics comprises identifying second values for one or more qualitative characteristics associated with the first change; and
calculating the respective value for the risk score comprises calculating the respective value for the risk score associated with the first change based at least in part on the first values for the one or more quantitative characteristics and the second values for the one or more qualitative characteristics.

### Claim 4 (depends on 3)

The method of claim 3, wherein calculating the respective value comprises inputting the first values for the one or more quantitative characteristics and the second values for the one or more qualitative characteristics into a risk prediction model providing an output value for the risk score as a function of the one or more quantitative characteristics and the one or more qualitative characteristics.

### Claim 5 (depends on 4)

The method of claim 4, wherein:
the risk prediction model comprises a random forest model; and
calculating the respective value comprises:
for each characteristic of the one or more qualitative characteristics and the one or more quantitative characteristics, converting a respective input value for the respective characteristic into an intermediate value indicative of a probability of a test failure corresponding to the respective input value using a respective decision tree associated with the respective characteristic; and
determining the output value for the risk score based on the respective intermediate values corresponding to the respective characteristics of the one or more qualitative characteristics and the one or more quantitative characteristics.

### Claim 6 (depends on 1)

The method of claim 1, wherein the update comprises autobuild code comprising executable source code for an application platform capable of providing instances of a virtual application.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
obtaining test result data associated with the one or more tests executed against the compiled version of the modified update to the executable code; and
identifying the first change as a potential root cause of the failure of the one or more tests when the test result data indicates a test failure.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
obtaining test result data associated with the one or more tests executed against the compiled version of the modified update to the executable code; and
validating the first change when the test result data indicates the one or more tests executed successfully.

### Claim 9 (depends on 8)

The method of claim 8, further comprising, in response to validating the first change:
identifying a second change from among the plurality of changes having a next highest value for the risk score based on the respective values for the risk score associated with the respective changes;
generating a second modified update to the executable code including the second change by excluding remaining changes of the plurality of changes from the modified update; and
executing the one or more tests with respect to a second compiled version of the second modified update to the executable code.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
obtaining second test result data associated with the one or more tests executed against the second compiled version of the second modified update to the executable code; and
identifying the second change as a potential root cause of the failure of the one or more tests when the test result data indicates a test failure.

### Claim 11 (depends on 1)

The method of claim 1, further comprising providing, at a client device, indication of the first change as a potential root cause of the failure of the one or more tests.

### Claim 12 (depends on 1)

The method of claim 1, further comprising providing, at a client device, indication of the respective value for the risk score associated with the first change.

### Claim 13 (depends on 1)

The method of claim 1, wherein:
identifying the first change comprises selecting a highest risk change from among the plurality of changes based on the respective values for the risk score associated with the respective changes; and
the modified update includes the highest risk change.

### Claim 14

A non-transitory machine-readable storage medium that provides instructions that, when executed by a processor, are configurable to cause said processor to perform operations comprising:
for each change of a plurality of changes associated with an update to executable code resulting in failure of one or more tests:
identifying one or more characteristics associated with the change; and
calculating a respective value for a risk score associated with the respective change based on the one or more characteristics associated with the change;
identifying a first change from among the plurality of changes based on the respective values for the risk score associated with the respective changes;
generating a modified update to the executable code including the first change by excluding remaining changes of the plurality of changes from the modified update; and
initiating execution of the one or more tests with respect to a compiled version of the modified update to the executable code.

### Claim 15 (depends on 14)

The non-transitory machine-readable storage medium of claim 14, wherein the instructions are configurable to cause said processor to:
determine first values for one or more quantitative characteristics based on source code associated with the first change; and
calculate the respective value for the risk score associated with the first change based at least in part on the first values for the one or more quantitative characteristics.

### Claim 16 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein the instructions are configurable to cause said processor to:
identify second values for one or more qualitative characteristics associated with the first change; and
calculate the respective value for the risk score based at least in part on the first values for the one or more quantitative characteristics and the second values for the one or more qualitative characteristics.

### Claim 17 (depends on 16)

The non-transitory machine-readable storage medium of claim 16, wherein the instructions are configurable to cause said processor to input the first values for the one or more quantitative characteristics and the second values for the one or more qualitative characteristics into a risk prediction model outputting the respective value for the risk score associated with the first change as a function of the one or more quantitative characteristics and the one or more qualitative characteristics.

### Claim 18 (depends on 14)

The non-transitory machine-readable storage medium of claim 14, wherein the instructions are configurable to cause said processor to:
obtain test result data associated with the one or more tests executed against the compiled version of the modified update to the executable code; and
identify the first change as a potential root cause of the failure of the one or more tests when the test result data indicates a test failure.

### Claim 19

A computing system comprising:
a non-transitory machine-readable storage medium that stores software; and
a processor, coupled to the non-transitory machine-readable storage medium, to execute the software that implements a fault detection service and that is configurable to:
calculate respective values for a risk score associated with respective changes of a plurality of changes associated with an update to executable code resulting in test failure based on change characteristics associated with the respective change;
identify a first change from among the plurality of changes based on the respective values for the risk score associated with the respective changes;
generate a modified update to the executable code including the first change by excluding remaining changes of the plurality of changes from the modified update; and
initiate execution of one or more tests with respect to a compiled version of the modified update to the executable code.

### Claim 20 (depends on 19)

The computing system of claim 19, wherein the software is configurable to determine values for one or more quantitative characteristics based on source code associated with the first change and calculate the respective value for the risk score associated with the first change based at least in part on the values for the one or more quantitative characteristics.
