Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wasm] add support for retrying debugger tests when chrome launch times out #76528

Closed
karelz opened this issue Oct 3, 2022 · 2 comments · Fixed by #78357 or #78655
Closed

[wasm] add support for retrying debugger tests when chrome launch times out #76528

karelz opened this issue Oct 3, 2022 · 2 comments · Fixed by #78357 or #78655
Assignees
Labels
arch-wasm WebAssembly architecture area-Debugger-mono

Comments

@karelz
Copy link
Member

karelz commented Oct 3, 2022

Affected test:

  • DebuggerTests.SetVariableValueTests.DebuggerTests.SetVariableValueTests.SetLocalPrimitiveTypeVariableOutOfRange

Error: System.IO.IOException : [testId: 650] Timed out after 20s waiting for the browser to be ready: C:\helix\work\correlation\chrome-win\chrome.exe

Runfo failures in last 30 days as of 10/3:

Day Run Details
9/30 Rolling run 36814 net7.0-Browser-Release-wasm-Mono_chrome_Release-WasmDebuggerTests-(Windows.Amd64.Server2022.Open)windows.amd64.server2022.open
9/27 Rolling run 32310 net7.0-Browser-Release-wasm-Mono_chrome_Release-WasmDebuggerTests-(Windows.Amd64.Server2022.Open)windows.amd64.server2022.open

Error example from Console log:

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
OpenSession crashing. proxy state: RunLoopExitState { reason = Exception, exception = System.IO.IOException: [testId: 650] Timed out after 20s waiting for the browser to be ready: C:\helix\work\correlation\chrome-win\chrome.exe
   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 91
   at DebuggerTests.ChromeProvider.StartBrowserAndProxyAsync(HttpContext context, String targetUrl, Int32 remoteDebuggingPort, String messagePrefix, ILoggerFactory loggerFactory, CancellationTokenSource cts, Int32 browserReadyTimeoutMs) in /_/src/mono/wasm/debugger/DebuggerTestSuite/ChromeProvider.cs:line 56
   at DebuggerTests.TestHarnessStartup.<>c__DisplayClass13_0.<<Configure>b__1>d.MoveNext() in /_/src/mono/wasm/debugger/DebuggerTestSuite/TestHarnessStartup.cs:line 133 }
[xUnit.net 00:52:08.74]     DebuggerTests.SetVariableValueTests.SetLocalPrimitiveTypeVariableOutOfRange(variableName: "b", originalValue: 2, newValue: -500, overflowValue: 32769) [FAIL]
  Failed DebuggerTests.SetVariableValueTests.SetLocalPrimitiveTypeVariableOutOfRange(variableName: "b", originalValue: 2, newValue: -500, overflowValue: 32769) [1 ms]
  Error Message:
   System.IO.IOException : [testId: 650] Timed out after 20s waiting for the browser to be ready: C:\helix\work\correlation\chrome-win\chrome.exe
  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 91
   at DebuggerTests.ChromeProvider.StartBrowserAndProxyAsync(HttpContext context, String targetUrl, Int32 remoteDebuggingPort, String messagePrefix, ILoggerFactory loggerFactory, CancellationTokenSource cts, Int32 browserReadyTimeoutMs) in /_/src/mono/wasm/debugger/DebuggerTestSuite/ChromeProvider.cs:line 56
   at DebuggerTests.TestHarnessStartup.<>c__DisplayClass13_0.<<Configure>b__1>d.MoveNext() in /_/src/mono/wasm/debugger/DebuggerTestSuite/TestHarnessStartup.cs:line 133
--- End of stack trace from previous location ---
   at DebuggerTests.Inspector.OpenSessionAsync(Func`3 getInitCmds, TimeSpan span) in /_/src/mono/wasm/debugger/DebuggerTestSuite/Inspector.cs:line 375
   at DebuggerTests.DebuggerTestBase.InitializeAsync() in /_/src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestBase.cs:line 149
[Result: IsOk: True, IsErr: False, Value: {
  "breakpointId": "1:539:8:dotnet://debugger-test.dll//_/src/mono/wasm/debugger/tests/debugger-test/debugger-test.cs",
  "locations": [
    {
      "scriptId": "dotnet://27277_1",
      "lineNumber": 542,
      "columnNumber": 8
    }
  ]
}, Error:  ]
[Result: IsOk: True, IsErr: False, Value: {
  "breakpointId": "1:1272:8:dotnet://debugger-test.dll//_/src/mono/wasm/debugger/tests/debugger-test/debugger-test.cs",
  "locations": []
}, Error:  ]
Results File: C:\helix\work\workitem\uploads\xharness-output\logs\testResults.trx

Failed!  - Failed:     1, Passed:   735, Skipped:     0, Total:   736, Duration: 57 m 43 s - DebuggerTestSuite.dll (net7.0)

C:\helix\work\workitem\e>set EXIT_CODE=1 
----- end Fri 09/30/2022 22:25:26.35 ----- exit code 1 ----------------------------------------------------------
{ 
    "ErrorMessage":"Timed out after 20s waiting for the browser to be ready",
    "BuildRetry": true
} 

Report

Build Definition Test Pull Request
89874 dotnet/runtime chrome-DebuggerTests.CallFunctionOnTests.WorkItemExecution #78651
84496 dotnet/runtime chrome-DebuggerTests.PointerTests.WorkItemExecution #77130
81128 dotnet/runtime chrome-DebuggerTests.EvaluateOnCallFrameTests.WorkItemExecution #76500
74554 dotnet/runtime chrome-DebuggerTests.EvaluateOnCallFrameTests.WorkItemExecution
73865 dotnet/runtime chrome-DebuggerTests.SetVariableValueTests.WorkItemExecution #77521
70468 dotnet/runtime chrome-DebuggerTests.EvaluateOnCallFrameTests.WorkItemExecution #77594
69054 dotnet/runtime chrome-DebuggerTests.SetVariableValueTests.WorkItemExecution #76477
66413 dotnet/runtime chrome-DebuggerTests.WorkItemExecution #74820
60308 dotnet/runtime chrome-DebuggerTests.WorkItemExecution #77133

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 2 9
@karelz karelz added arch-wasm WebAssembly architecture area-Debugger-mono labels Oct 3, 2022
@ghost
Copy link

ghost commented Oct 3, 2022

Tagging subscribers to this area: @thaystg
See info in area-owners.md if you want to be subscribed.

Issue Details

Affected test:

  • DebuggerTests.SetVariableValueTests.DebuggerTests.SetVariableValueTests.SetLocalPrimitiveTypeVariableOutOfRange

Error: System.IO.IOException : [testId: 650] Timed out after 20s waiting for the browser to be ready: C:\helix\work\correlation\chrome-win\chrome.exe

Runfo failures in last 30 days as of 10/3:

Day Run Details
9/30 Rolling run 36814 net7.0-Browser-Release-wasm-Mono_chrome_Release-WasmDebuggerTests-(Windows.Amd64.Server2022.Open)windows.amd64.server2022.open
9/27 Rolling run 32310 net7.0-Browser-Release-wasm-Mono_chrome_Release-WasmDebuggerTests-(Windows.Amd64.Server2022.Open)windows.amd64.server2022.open

Error example from Console log:

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
OpenSession crashing. proxy state: RunLoopExitState { reason = Exception, exception = System.IO.IOException: [testId: 650] Timed out after 20s waiting for the browser to be ready: C:\helix\work\correlation\chrome-win\chrome.exe
   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 91
   at DebuggerTests.ChromeProvider.StartBrowserAndProxyAsync(HttpContext context, String targetUrl, Int32 remoteDebuggingPort, String messagePrefix, ILoggerFactory loggerFactory, CancellationTokenSource cts, Int32 browserReadyTimeoutMs) in /_/src/mono/wasm/debugger/DebuggerTestSuite/ChromeProvider.cs:line 56
   at DebuggerTests.TestHarnessStartup.<>c__DisplayClass13_0.<<Configure>b__1>d.MoveNext() in /_/src/mono/wasm/debugger/DebuggerTestSuite/TestHarnessStartup.cs:line 133 }
[xUnit.net 00:52:08.74]     DebuggerTests.SetVariableValueTests.SetLocalPrimitiveTypeVariableOutOfRange(variableName: "b", originalValue: 2, newValue: -500, overflowValue: 32769) [FAIL]
  Failed DebuggerTests.SetVariableValueTests.SetLocalPrimitiveTypeVariableOutOfRange(variableName: "b", originalValue: 2, newValue: -500, overflowValue: 32769) [1 ms]
  Error Message:
   System.IO.IOException : [testId: 650] Timed out after 20s waiting for the browser to be ready: C:\helix\work\correlation\chrome-win\chrome.exe
  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 91
   at DebuggerTests.ChromeProvider.StartBrowserAndProxyAsync(HttpContext context, String targetUrl, Int32 remoteDebuggingPort, String messagePrefix, ILoggerFactory loggerFactory, CancellationTokenSource cts, Int32 browserReadyTimeoutMs) in /_/src/mono/wasm/debugger/DebuggerTestSuite/ChromeProvider.cs:line 56
   at DebuggerTests.TestHarnessStartup.<>c__DisplayClass13_0.<<Configure>b__1>d.MoveNext() in /_/src/mono/wasm/debugger/DebuggerTestSuite/TestHarnessStartup.cs:line 133
--- End of stack trace from previous location ---
   at DebuggerTests.Inspector.OpenSessionAsync(Func`3 getInitCmds, TimeSpan span) in /_/src/mono/wasm/debugger/DebuggerTestSuite/Inspector.cs:line 375
   at DebuggerTests.DebuggerTestBase.InitializeAsync() in /_/src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestBase.cs:line 149
[Result: IsOk: True, IsErr: False, Value: {
  "breakpointId": "1:539:8:dotnet://debugger-test.dll//_/src/mono/wasm/debugger/tests/debugger-test/debugger-test.cs",
  "locations": [
    {
      "scriptId": "dotnet://27277_1",
      "lineNumber": 542,
      "columnNumber": 8
    }
  ]
}, Error:  ]
[Result: IsOk: True, IsErr: False, Value: {
  "breakpointId": "1:1272:8:dotnet://debugger-test.dll//_/src/mono/wasm/debugger/tests/debugger-test/debugger-test.cs",
  "locations": []
}, Error:  ]
Results File: C:\helix\work\workitem\uploads\xharness-output\logs\testResults.trx

Failed!  - Failed:     1, Passed:   735, Skipped:     0, Total:   736, Duration: 57 m 43 s - DebuggerTestSuite.dll (net7.0)

C:\helix\work\workitem\e>set EXIT_CODE=1 
----- end Fri 09/30/2022 22:25:26.35 ----- exit code 1 ----------------------------------------------------------
Author: karelz
Assignees: -
Labels:

arch-wasm, area-Debugger-mono

Milestone: -

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Oct 3, 2022
@radical radical removed the untriaged New issue has not been triaged by the area owner label Oct 3, 2022
@radical radical self-assigned this Oct 3, 2022
@radical radical added the Known Build Error Use this to report build issues in the .NET Helix tab label Oct 4, 2022
@radical radical changed the title DebuggerTests.SetVariableValueTests.DebuggerTests.SetVariableValueTests.SetLocalPrimitiveTypeVariableOutOfRange - Browser not ready [was Oct 7, 2022
@radical radical changed the title [was [wasm] add support for retrying debugger tests when chrome launch times out Oct 7, 2022
radical added a commit to radical/runtime that referenced this issue Nov 15, 2022
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Nov 15, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Nov 16, 2022
@radical
Copy link
Member

radical commented Nov 21, 2022

Re-opening because #78357 didn't work. I will test in a new PR.

@radical radical reopened this Nov 21, 2022
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 21, 2022
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Nov 21, 2022
@ghost ghost removed in-pr There is an active PR which will close this issue when it is merged untriaged New issue has not been triaged by the area owner labels Nov 21, 2022
@radical radical removed the Known Build Error Use this to report build issues in the .NET Helix tab label Nov 21, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Dec 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Debugger-mono
Projects
None yet
2 participants