US 12,189,515 B2
Identifying regression test failures
Xiao-Yu Li, Beijing (CN); Hua Wei Fan, Beijing (CN); Jiangang Deng, Beijing (CN); Hong Wei Sun, Beijing (CN); Xiao Ling Chen, Beijing (CN); and Wen Ji Huang, Beijing (CN)
Assigned to International Business Machines Corporation, Armonk, NY (US)
Filed by International Business Machines Corporation, Armonk, NY (US)
Filed on Jan. 18, 2022, as Appl. No. 17/577,844.
Prior Publication US 2023/0229581 A1, Jul. 20, 2023
Int. Cl. G06F 11/36 (2006.01)
CPC G06F 11/3624 (2013.01) [G06F 11/3664 (2013.01); G06F 11/3692 (2013.01)] 16 Claims
OG exemplary drawing
 
1. A computer-implemented method for identifying regression test failures, the method comprising:
comparing a base code to a new code to locate an updated aspect of a program to identify changes in the new code from the base code and a location of the changes;
generating a table that includes a unique identifier for each of the identified changes in the new code from the base code, a function associated with each of the identified changes, and a list of variables affected by each of the identified changes;
inserting, at the location of the changes, debug code into corresponding source files for each of the base code and the new code for the updated aspect, wherein the debug code includes a key tracing code for functions and variables affected by the updated aspect of the program and wherein the debug code is configured to output container-related information upon execution;
building a first image for the base code and a second image for the new code, the first and second images running in respective first and second containers;
comparing debugging outputs from a regression test of the respective first and second containers to identify a regression test failure, wherein identifying the regression test failure includes identifying that the regression test failed because a global variable was too large; and
implementing a corrective action to correct the regression test failure.