# US 9,355,018 B1 · History N-section for property location

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

- Number: US 9,355,018 B1
- Document ID: US9355018B1
- Status: Granted
- Kind: B1
- Application number: 14/824,728
- Filed: 2015-08-12
- Granted: 2016-05-31
- Earliest claimed: 2015-08-12
- Assignees: Red Hat Israel, Ltd.
- Applicants: Red Hat Israel, Ltd.
- Inventors: Michael Tsirkin
- Web page: https://patentgrep.com/patent/US9355018B1

## CPC

- G06F 11/368: {for test version control, e.g. updating test cases to a new software version}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A test system controller receives a test code having N versions, selects n intermediate versions of the test code, and tests the test code using history revision testing. The controller runs the intermediate versions in parallel, and identifies a first passed version and a first failed version from the intermediate versions. The controller then selects a subset of the N versions, the subset including N′ versions between and including the first passed version and first failed version. The controller calculates a sample size, and determines whether this sample size is greater than n. Responsive to this, new intermediate versions are tested. The controller automatically performs at least a plurality of iterations of selecting and testing. Responsive to the sample size reaching a specified value, a plurality of N″ versions are run in parallel, such that a passed version and a failed version are identified.

## Claims

### Claim 1

A method of history revision testing for locating a software property, the method comprising:
receiving a test code, the test code having N versions in chronological order, wherein N is a quantity of versions;
selecting n intermediate versions of the test code, wherein n is a quantity of intermediate versions; and
testing the test code using history revision testing that comprises:
running the intermediate versions in parallel;
identifying a first passed version, the first passed version being a last intermediate version of the intermediate versions to pass the test;
identifying a first failed version, the first failed version being a first intermediate version of the intermediate versions to fail the test, such that the first passed version and the first failed version are consecutive versions of the intermediate versions;
selecting a subset of the N versions, the subset including N′ versions, the N′ versions comprising all versions of the N versions between the first passed version and the first failed version, including the first passed version and the first failed version;
calculating a sample size, the sample size being calculated as a total number of N′ versions;
determining whether the sample size is greater than n;
responsive to determining that sample size is greater than n:
selecting n new intermediate versions of the test code from the N′ versions; and
testing the new intermediate versions using history revision testing that comprises:
running the new intermediate versions in parallel;
identifying a second passed version, the second passed version being a last new intermediate version of the new intermediate versions to pass the test;
identifying a second failed version, the second failed version being a first new intermediate version of the new intermediate versions to fail the test, such that the second passed version and the second failed version are consecutive versions of the new intermediate versions;
selecting a subset of the N′ versions, the subset including N″ versions, the N″ versions comprising all versions of the N′ versions between the second passed version and the second failed version, including the second passed version and the second failed version;
recalculating the sample size, the sample size being recalculated as a total number of N″ versions; and
after recalculating the sample size, determining whether the sample size is greater than n;
automatically performing at least a plurality of iterations of selecting and testing, including selecting and testing the intermediate versions and the new intermediate versions; and
responsive to determining that the sample size is not greater than n:
running the N″ versions in parallel;
identifying a third passed version, the third passed version being a last version of the N″ versions to pass the test; and
identifying a third failed version, the third failed version being a first version of the N″ versions to fail the test, such that the third passed version and the third failed version are consecutive versions of the N″ versions,
wherein the third failed version is a first version of the N versions that includes the software property.

### Claim 2 (depends on 1)

The method of claim 1, wherein the plurality of iterations further includes at least:
selecting n second new intermediate versions of the test code from the N″ versions; and
testing the second new intermediate versions using history revision testing that comprises:
running the second new intermediate versions in parallel;
identifying a fourth passed version, the fourth passed version being a last second new intermediate version of the second new intermediate versions to pass the test;
identifying a fourth failed version, the fourth failed version being a first second new intermediate version of the second new intermediate versions to fail the test, such that the fourth passed version and the fourth failed version are consecutive versions of the second new intermediate versions;
selecting a subset of the N″ versions, the subset including N′″ versions, the N′″ versions comprising all versions of the N″ versions between the fourth passed version and the fourth failed version, including the fourth passed version and the fourth failed version;
recalculating the sample size, the sample size being recalculated as a total number of N′″ versions; and
after recalculating the sample size, determining whether the sample size is greater than n.

### Claim 3 (depends on 1)

The method of claim 1, wherein the selection of the intermediate versions of the test code further comprises:
determining a number of changes for each of the N versions of the test code; and
selecting intermediate versions of the test code, wherein each of the intermediate versions has an equivalent number of changes.

### Claim 4 (depends on 1)

The method of claim 1, wherein the selection of n, as the quantity of intermediate versions, further comprises:
determining a processing capability; and
selecting a value for n, responsive to the processing capability, such that n is optimized based on the processing capability.

### Claim 5 (depends on 1)

The method of claim 1, wherein the selection of n, as the quantity of intermediate versions, includes utilizing the relationship of nn=N.

### Claim 6 (depends on 1)

The method of claim 1, wherein at least some of the intermediate versions, the new intermediate versions, and the N′ versions are sent to a plurality of additional test processors.

### Claim 7 (depends on 6)

The method of claim 6, wherein the plurality of additional test processors run at least some of the intermediate versions, the new intermediate versions, and the N′ versions simultaneously and in parallel.

### Claim 8 (depends on 1)

The method of claim 1, wherein testing the test code includes:
running intermediate versions simultaneously and in parallel with each other;
running new intermediate versions simultaneously and in parallel with each other; and
running N″ versions simultaneously and in parallel with each other.

### Claim 9 (depends on 1)

The method of claim 1, wherein the software property is one of a software feature and a software defect.

### Claim 10 (depends on 1)

The method of claim 1, wherein a plurality of previously tested versions, which have already been tested and identified as passed or failed, do not need to be tested again.

### Claim 11 (depends on 10)

The method of claim 10, the testing further comprising determining whether the sample size of the N″ versions is greater than n+2, wherein the plurality of previously tested versions are included in the N″ versions.

### Claim 12

A system for locating a software property, the system comprising:
a memory;
one or more processors, in communication with the memory;
a user interface, in communication with the one or more processors; and
a test system controller, configured to:
receive a test code, the test code having N versions in chronological order, wherein N is a quantity of versions;
select n intermediate versions of the test code, wherein n is a quantity of intermediate versions; and
test the test code using history revision testing, which comprises:
running the intermediate versions in parallel;
identifying a first passed version, the first passed version being a last intermediate version of the intermediate versions to pass the test;
identifying a first failed version, the first failed version being a first intermediate version of the intermediate versions to fail the test, such that the first passed version and the first failed version are consecutive versions of the intermediate versions;
selecting a subset of the N versions, the subset including N′ versions, the N′ versions comprising all versions of the N versions between the first passed version and the first failed version, including the first passed version and the first failed version;
calculating a sample size, the sample size being calculated as a total number of N′ versions;
determining whether the sample size is greater than n;
responsive to determining that sample size is greater than n:
selecting n new intermediate versions of the test code from the N′ versions; and
testing the new intermediate versions using history revision testing that comprises:
running the new intermediate versions in parallel;
identifying a second passed version, the second passed version being a last new intermediate version of the new intermediate versions to pass the test;
identifying a second failed version, the second failed version being a first new intermediate version of the new intermediate versions to fail the test, such that the second passed version and the second failed version are consecutive versions of the new intermediate versions;
selecting a subset of the N′ versions, the subset including N″ versions, the N″ versions comprising all versions of the N′ versions between the second passed version and the second failed version, including the second passed version and the second failed version;
recalculating the sample size, the sample size being recalculated as a total number of N″ versions; and
after recalculating the sample size, determining whether the sample size is greater than n;
automatically perform at least a plurality of iterations of selecting and testing, including selecting and testing the intermediate versions and the new intermediate versions; and
responsive to determining that the sample size is not greater than n:
running the N″ versions in parallel;
identifying a third passed version, the third passed version being a last version of the N″ versions to pass the test; and
identifying a third failed version, the third failed version being a first version of the N″ versions to fail the test, such that the third passed version and the third failed version are consecutive versions of the N″ versions,
wherein the third failed version is a first version of the N versions that includes the software property.

### Claim 13 (depends on 12)

The system of claim 12, further comprising a plurality of additional test processors, which are in communication with the test system controller, wherein the plurality of additional test processors is used to run the intermediate versions, the new intermediate versions, and the N″ versions.

### Claim 14 (depends on 13)

The system of claim 13, wherein the additional test processors comprise at least one of an external test system controller, a server, or a cloud.

### Claim 15 (depends on 14)

The system of claim 14, wherein the test system controller dynamically adjusts an amount of the intermediate versions, the new intermediate versions, and the N″ versions, this adjustment configured to optimize the usage of the plurality of additional test processors.

### Claim 16 (depends on 12)

The system of claim 12, wherein a user can select a particular group of the N versions of test code, such that all N versions not in the particular group are not tested by the test system controller.

### Claim 17 (depends on 12)

The system of claim 12, wherein once a passed version is identified, the system automatically ceases the running of the intermediate versions chronologically prior to the passed version.

### Claim 18 (depends on 12)

The system of claim 12, wherein once a failed version is identified, the system automatically ceases the running of the intermediate versions chronologically subsequent to the failed version.

### Claim 19 (depends on 12)

The system of claim 12, wherein once a passed version and a failed version are identified, the system automatically determines whether the passed version and the failed version are consecutive versions, and wherein responsive to the passed version and the failed version being consecutive versions, the system automatically ceases the running of all intermediate versions.

### Claim 20

A computer readable medium storing instructions, which when executed by a test system controller, cause the test system controller to:
receive a test code, the test code having N versions in chronological order, wherein N is a quantity of versions;
select n intermediate versions of the test code, wherein n is a quantity of intermediate versions; and
test the test code using history revision testing, which comprises:
running the intermediate versions in parallel;
identifying a first passed version, the first passed version being a last intermediate version of the intermediate versions to pass the test;
identifying a first failed version, the first failed version being a first intermediate version of the intermediate versions to fail the test, such that the first passed version and the first failed version are consecutive versions of the intermediate versions;
selecting a subset of the N versions, the subset including N′ versions, the N′ versions comprising all versions of the N versions between the first passed version and the first failed version, including the first passed version and the first failed version;
calculating a sample size, the sample size being calculated as a total number of N′ versions;
determining whether the sample size is greater than n;
responsive to determining that sample size is greater than n:
selecting n new intermediate versions of the test code from the N′ versions; and
testing the new intermediate versions using history revision testing that comprises:
running the new intermediate versions in parallel;
identifying a second passed version, the second passed version being a last new intermediate version of the new intermediate versions to pass the test;
identifying a second failed version, the second failed version being a first new intermediate version of the new intermediate versions to fail the test, such that the second passed version and the second failed version are consecutive versions of the new intermediate versions;
selecting a subset of the N′ versions, the subset including N″ versions, the N″ versions comprising all versions of the N′ versions between the second passed version and the second failed version, including the second passed version and the second failed version;
recalculating the sample size, the sample size being recalculated as a total number of N″ versions; and
after recalculating the sample size, determining whether the sample size is greater than n;
automatically perform at least a plurality of iterations of selecting and testing, including selecting and testing the intermediate versions and the new intermediate versions; and
responsive to determining that the sample size is not greater than n:
running the N″ versions in parallel;
identifying a third passed version, the third passed version being a last version of the N″ versions to pass the test; and
identifying a third failed version, the third failed version being a first version of the N″ versions to fail the test, such that the third passed version and the third failed version are consecutive versions of the N″ versions,
wherein the third failed version is a first version of the N versions that includes the software property.
