I occasionally get Error: Timeout occurred when executing test file on the build machine which runs the tests via vstest.console.exe. I can't really find the pattern, it's very sporadic, therefore I enabled tracing in the Chutzpah.json:
vstest.console.exe Information: 0 : Time:12:23:43.1363162; Thread:8; Message:Invoking headless browser on test harness 'C:\_agents\<redacted>\_Chutzpah.87ef6c34eb5ec093d62ffa993dcf1e82baa79268.test.html' for file 'C:\_agents\<redacted>\RestoringCursorPositionTests.js'
vstest.console.exe Information: 0 : Time:12:23:43.8383799; Thread:8; Message:Started headless browser: <path_to_Chutzpah.4.4.12>\Node\x86\node.exe with PID: 1792 using args: "<path_to_Chutzpah.4.4.12>\ChutzpahJSRunners\Chrome\qunitRunner.js" "http://localhost:9876/_agents/<redacted>/_Chutzpah.87ef6c34eb5ec093d62ffa993dcf1e82baa79268.test.html" execution 10000 True False "C:\Program Files\Google\Chrome\Application\chrome.exe" "" ""
vstest.console.exe Information: 0 : Time:12:23:46.5776240; Thread:6; Message:Phantom Log - Using Chrome Install : C:\Program Files\Google\Chrome\Application\chrome.exe
vstest.console.exe Information: 0 : Time:12:23:46.6176283; Thread:6; Message:Phantom Log - puppeteer browser args: ["--disable-web-security","--no-sandbox"]
vstest.console.exe Error: 0 : Time:12:23:57.1475751; Thread:8; Message:Test file 'C:\_agents\<redacted>\RestoringCursorPositionTests.js' timed out after running for 10502.9452 milliseconds
vstest.console.exe Information: 0 : Time:12:23:57.1985723; Thread:8; Message:Ended headless browser: <path_to_Chutzpah.4.4.12>\Node\x86\node.exe with PID: 1792 using args: "<path_to_Chutzpah.4.4.12>\ChutzpahJSRunners\Chrome\qunitRunner.js" "http://localhost:9876/_agents/<redacted>/_Chutzpah.87ef6c34eb5ec093d62ffa993dcf1e82baa79268.test.html" execution 10000 True False "C:\Program Files\Google\Chrome\Application\chrome.exe" "" ""
vstest.console.exe Error: 0 : Time:12:23:57.2395754; Thread:8; Message:Headless browser returned with an error: Timeout occurred when executing test file
vstest.console.exe Information: 0 : Time:12:23:57.2875808; Thread:8; Message:Test harness 'C:\_agents\<redacted>\_Chutzpah.87ef6c34eb5ec093d62ffa993dcf1e82baa79268.test.html' for file 'C:\_agents\<redacted>\RestoringCursorPositionTests.js' finished with 0 passed, 0 failed and 1 errors
vstest.console.exe Information: 0 : Time:12:23:57.3205833; Thread:8; Message:Finished running headless browser on test harness 'C:\_agents\<redacted>\_Chutzpah.87ef6c34eb5ec093d62ffa993dcf1e82baa79268.test.html' for file 'C:\_agents\<redacted>\RestoringCursorPositionTests.js'
vstest.console.exe Information: 0 : Time:12:23:57.3595865; Thread:8; Message:Finished test run for C:\_agents\<redacted>\RestoringCursorPositionTests.js in Execution mode
Basically, there are no Resource Received: http://... entries in the failed run log. Looks like the harness didn't even start to load. Are there any ideas on what other diagnostics I could perform?
P.S. I had to clean-up and simplify the logs to paste them here publicly. I can provide the full logs if needed.
I occasionally get
Error: Timeout occurred when executing test file
on the build machine which runs the tests viavstest.console.exe
. I can't really find the pattern, it's very sporadic, therefore I enabled tracing in theChutzpah.json
:Here are log excerpts from a successful and a failing run.
Successful run
Failed run
Basically, there are no
Resource Received: http://...
entries in the failed run log. Looks like the harness didn't even start to load. Are there any ideas on what other diagnostics I could perform?P.S. I had to clean-up and simplify the logs to paste them here publicly. I can provide the full logs if needed.