Hi,
Your analysis is correct, and newer engine versions don’t fully fix it. When a test’s StartTest returns false, TestExecutor moves the test straight to its completed list without cleaning it up. The devices reserved
in IsReadyToStart stay reserved until the whole Gauntlet run ends and the device pool is disposed. Any test waiting for those devices is stuck. With -NoTimeout, the run never ends as long as another test is still
running.
Workaround in your test node (no engine change needed):
In your UnrealTestNode subclass, release the session’s devices yourself whenever StartTest is about to fail:
Notes:
- Throwing an exception from StartTest instead of returning false doesn’t help. TestExecutor catches the exception and takes the same path, with no cleanup.
- Until this is fixed, avoid combining -NoTimeout with -parallel greater than 1. Keeping -wait= short also limits how long other tests wait for devices that are never released.
Engine-side alternative (local change)
public override bool StartTest(int Pass, int InNumPasses)
{
bool bStarted = false;
try
{
bStarted = base.StartTest(Pass, InNumPasses);
if (bStarted)
{
// ... your own start logic; set bStarted = false on failure ...
}
}
finally
{
if (!bStarted)
{
// Kills any app instances launched for this session and returns the devices to the pool
UnrealApp?.ReleaseSessionDevices();
}
}
return bStarted;
}
If you’d rather fix it for every test node, edit Engine/Source/Programs/AutomationTool/Gauntlet/Framework/Gauntlet.TestExecutor.cs. In ExecuteTests, find the branch that handles Started == false, the one that logs
“failed to start”. Add a call to TestToStart.TestNode.CleanupTest() there, inside a try/catch. Don’t call StopTest in that branch: after a failed launch there’s no test instance, and it expects one. For tests with
several passes, also release the devices explicitly, because the base CleanupTest only releases them after the last pass.
We’re logging this as a bug so the executor cleans up failed starts itself.
Regards,
Martin
[Attachment Removed]