Jenkins Timed Out

Hi,

I’m trying to run tests through Jenkins integration with the command line “-runTests” but during the process, Unity timed out (see the log below).
I tried to allow more time with the parameter “-playerHeartbeatTimeout” but even with 4800 seconds, it still fail.
To be noted, it’s working fine when using the command line manually outstide Jenkins.

I’m working with Unity 2020.3.26f1 and TestRunner package 2.0.1-pre.12

19:12:02 DisplayProgressNotification: Build Successful
19:12:02 Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
19:12:02 Loaded scene ‘Temp/__Backupscenes/0.backup’
19:12:02 Deserialize: 0.710 ms
19:12:02 Integration: 22.250 ms
19:12:02 Integration of assets: 0.002 ms
19:12:02 Thread Wait Time: 0.009 ms
19:12:02 Total Operation Time: 22.970 ms
19:12:02 System memory in use before: 220.2 MB.
19:12:02 System memory in use after: 220.6 MB.
19:12:02
19:12:02 Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 5992.
19:12:02 Total: 41.454900 ms (FindLiveObjects: 0.650200 ms CreateObjectMapping: 0.686800 ms MarkObjects: 40.098300 ms DeleteObjects: 0.018100 ms)
19:12:02
19:12:02 DisplayProgressbar: Test Runner -
19:12:02 [00:00:00] Enlighten: Finished 1 Bake Ambient Probe job (0.00s execute, 0.00s integrate, 0.05s wallclock)
19:22:02 Exception: Test execution timed out. No activity received from the player in 600 seconds.
19:22:02 at UnityEditor.TestTools.TestRunner.TestRun.Tasks.PlayerHeartBeatTask+d__3.MoveNext () [0x00130] in P:\Cairn-UnitTests\Library\PackageCache\com.unity.test-framework@2.0.1-pre.12\UnityEditor.TestRunner\TestRun\Tasks\PlayerHeartBeatTask.cs:39
19:22:02 at UnityEditor.TestTools.TestRunner.TestRun.TestJobRunner.ExecuteStep () [0x0015e] in P:\Cairn-UnitTests\Library\PackageCache\com.unity.test-framework@2.0.1-pre.12\UnityEditor.TestRunner\TestRun\TestJobRunner.cs:171
19:22:02 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
19:22:02 UnityEngine.DebugLogHandler:LogException(Exception, Object)
19:22:02 UnityEngine.Logger:LogException(Exception, Object)
19:22:02 UnityEngine.Debug:LogException(Exception)
19:22:02 UnityEditor.TestTools.TestRunner.TestRun.TestJobRunner:ExecuteStep() (at Library\PackageCache\com.unity.test-framework@2.0.1-pre.12\UnityEditor.TestRunner\TestRun\TestJobRunner.cs:214)
19:22:02 UnityEditor.TestTools.TestRunner.TestRun.TestJobRunner:ExecuteCallback() (at Library\PackageCache\com.unity.test-framework@2.0.1-pre.12\UnityEditor.TestRunner\TestRun\TestJobRunner.cs:109)
19:22:02 UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
19:22:02
19:22:02 (Filename: Library/PackageCache/com.unity.test-framework@2.0.1-pre.12/UnityEditor.TestRunner/TestRun/Tasks/PlayerHeartBeatTask.cs Line: 39)
19:22:02
19:22:02 An unexpected error happened while running tests.
19:22:02 UnityEngine.StackTraceUtility:ExtractStackTrace ()
19:22:02 UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[ ])
19:22:02 UnityEngine.Logger:Log (UnityEngine.LogType,object)
19:22:02 UnityEngine.Debug:LogError (object)
19:22:02 UnityEditor.TestTools.TestRunner.Api.CallbacksDelegator:RunFailed (string) (at Library/PackageCache/com.unity.test-framework@2.0.1-pre.12/UnityEditor.TestRunner/Api/CallbacksDelegator.cs:64)
19:22:02 UnityEditor.TestTools.TestRunner.TestRun.TestJobRunner:ExecuteStep () (at Library/PackageCache/com.unity.test-framework@2.0.1-pre.12/UnityEditor.TestRunner/TestRun/TestJobRunner.cs:215)
19:22:02 UnityEditor.TestTools.TestRunner.TestRun.TestJobRunner:ExecuteCallback () (at Library/PackageCache/com.unity.test-framework@2.0.1-pre.12/UnityEditor.TestRunner/TestRun/TestJobRunner.cs:109)
19:22:02 UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
19:22:02
19:22:02 (Filename: Library/PackageCache/com.unity.test-framework@2.0.1-pre.12/UnityEditor.TestRunner/Api/CallbacksDelegator.cs Line: 64)
19:22:02
19:22:02 Too many instant steps in test execution mode: Error. Current task ConditionalTask.
19:22:02 UnityEngine.StackTraceUtility:ExtractStackTrace ()
19:22:02 UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[ ])
19:22:02 UnityEngine.Logger:Log (UnityEngine.LogType,object)
19:22:02 UnityEngine.Debug:LogError (object)
19:22:02 UnityEditor.TestTools.TestRunner.TestRun.TestJobRunner:ExecuteCallback () (at Library/PackageCache/com.unity.test-framework@2.0.1-pre.12/UnityEditor.TestRunner/TestRun/TestJobRunner.cs:120)
19:22:02 UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
19:22:02
19:22:02 (Filename: Library/PackageCache/com.unity.test-framework@2.0.1-pre.12/UnityEditor.TestRunner/TestRun/TestJobRunner.cs Line: 120)
19:22:02
19:22:02 Test run completed. Exiting with code 3 (RunError). An unexpected error happened while running tests.
19:22:02 UnityEngine.StackTraceUtility:ExtractStackTrace ()
19:22:02 UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[ ])
19:22:02 UnityEngine.Logger:Log (UnityEngine.LogType,object)
19:22:02 UnityEngine.Debug:Log (object)
19:22:02 UnityEditor.TestTools.TestRunner.CommandLineTest.Executer:ExitApplication (UnityEditor.TestTools.TestRunner.CommandLineTest.Executer/ReturnCodes,string) (at Library/PackageCache/com.unity.test-framework@2.0.1-pre.12/UnityEditor.TestRunner/CommandLineTest/Executer.cs:91)
19:22:02 UnityEditor.TestTools.TestRunner.CommandLineTest.Executer:ExitIfRunIsCompleted () (at Library/PackageCache/com.unity.test-framework@2.0.1-pre.12/UnityEditor.TestRunner/CommandLineTest/Executer.cs:84)
19:22:02 UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
19:22:02
19:22:02 (Filename: Library/PackageCache/com.unity.test-framework@2.0.1-pre.12/UnityEditor.TestRunner/CommandLineTest/Executer.cs Line: 91)

Wild guess, but are you perhaps using WaitForEndOfFrame? Unfortunately, it doesn’t work in the Editor batch mode, see Unity - Manual: Batch mode and built-in coroutine compatibility

EDIT: Just realized you mentioned it works fine locally from the command line, so probably not this…