Skip to content

Commit

Permalink
[wasm] Add helix retries for debugger tests (#87565)
Browse files Browse the repository at this point in the history
.. when chrome fails to launch. For example:

```
  Error Message:
   System.IO.IOException : Process for /root/helix/work/correlation/chrome-linux/chrome unexpectedly exited with 127 during startup.
  Stack Trace:
     at DebuggerTests.WasmHostProvider.LaunchHostAsync(ProcessStartInfo psi, HttpContext context, Func`2 checkBrowserReady, String messagePrefix, Int32 hostReadyTimeoutMs, CancellationToken token) in /_/src/mono/wasm/debugger/DebuggerTestSuite/WasmHostProvider.cs:line 77
   at DebuggerTests.ChromeProvider.StartBrowserAndProxyAsync(HttpContext context, String targetUrl, Int32 remoteDebuggingPort, String messagePrefix, ILoggerFactory loggerFactory, CancellationTokenSource cts, Int32 browserReadyTimeoutMs, String locale) in /_/src/mono/wasm/debugger/DebuggerTestSuite/ChromeProvider.cs:line 60
   at DebuggerTests.TestHarnessStartup.<>c__DisplayClass13_0.<<Configure>b__2>d.MoveNext() in /_/src/mono/wasm/debugger/DebuggerTestSuite/TestHarnessStartup.cs:line 143
--- End of stack trace from previous location ---
   at DebuggerTests.Inspector.OpenSessionAsync(Func`3 getInitCmds, String urlToInspect, TimeSpan span) in /_/src/mono/wasm/debugger/DebuggerTestSuite/Inspector.cs:line 414
   at DebuggerTests.DebuggerTestBase.InitializeAsync() in /_/src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestBase.cs:line 173
```
  • Loading branch information
radical authored Jun 19, 2023
1 parent 4dc137c commit f9e3ad0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eng/test-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"localRerunCount": 2,
"retryOnRules": [
{ "testAssembly": { "wildcard": "System.Net.*" } },
{ "failureMessage": { "regex": ".*Timed out after .* waiting for the browser to be ready.*" } }
{ "failureMessage": { "regex": ".*Timed out after .* waiting for the browser to be ready.*" } },
{ "failureMessage": { "regex": "System.IO.IOException : Process for .*chrome .* unexpectedly exited.* during startup" } }
]
}

0 comments on commit f9e3ad0

Please sign in to comment.