US 12,271,290 B2
Remote debugging sessions for flaky tests
Matt Landis, Bothell, WA (US); and Victor Robertson, San Francisco, CA (US)
Assigned to GM Cruise Holdings LLC, San Francisco, CA (US)
Filed by GM Cruise Holdings LLC, San Francisco, CA (US)
Filed on Feb. 27, 2023, as Appl. No. 18/175,380.
Prior Publication US 2024/0289258 A1, Aug. 29, 2024
Int. Cl. G06F 11/36 (2006.01); G06F 11/3668 (2025.01)
CPC G06F 11/3664 (2013.01) [G06F 11/3688 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A computer-implemented method for providing a remote debugging session for a flaky test, comprising:
in response to a request to create the remote debugging session for the flaky test, scheduling a number of executions to be run on one or more workers on cluster infrastructure, wherein scheduling the number of executions to be run comprises causing at least a subset of the number of executions to be executed in parallel on the one or more workers in the cluster infrastructure;
identifying a failed execution in the number of executions;
pausing execution of the identified failed execution;
attaching a debugger instance on one or more workers on cluster infrastructure to the identified failed execution, wherein the debugger instance has a copy of source code of the identified failed execution, and the debugger instance has access to an execution environment of the identified failed execution; and
creating a secure socket shell tunnel connection between the debugger instance and an interface on a user device remote from the cluster infrastructure to allow a user to access the debugger instance.