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][debugger] Firefox tests cancelled or throwing KeyNotFoundException - test files cannot be found #70983

Closed
4 tasks
ilonatommy opened this issue Jun 20, 2022 · 1 comment · Fixed by #70990
Closed
4 tasks
Assignees
Labels
arch-wasm WebAssembly architecture area-Debugger-mono
Milestone

Comments

@ilonatommy
Copy link
Member

ilonatommy commented Jun 20, 2022

Sample Run.

Around 80 tests on Firefox failing on CI and locally. There are different messages:

  • Test file not found, failing assert: e.g. MiscTests.CheckThatAllSourcesAreSent
Assert.Contains() Failure
Not found: dotnet://debugger-test.dll/debugger-test.cs
In value:  ValueCollection<String, String> ["debugger-driver.html", "debugger-driver.html", "debugger-driver.html", "debugger-driver.html", "debugger-driver.html", ...]
  • Test not found, throwing exception, e.g. DebuggerTests.ArrayTests.InspectGenericValueTypeArrayLocals
System.Collections.Generic.KeyNotFoundException : The given key 'dotnet://debugger-test.dll/debugger-array-test.cs' was not present in the dictionary.
  • Cannot set a breakpoint = test cancelled, e.g DebuggerTests.SteppingTests.BreakOnAwaitThenResumeToNextBreakpoint
 Failed DebuggerTests.AsyncTests.AsyncLocalsInNestedContinueWithStaticBlock [30 ms]
  Error Message:
   System.Threading.Tasks.TaskCanceledException : A task was canceled.
  Stack Trace:
     at DebuggerTests.DebuggerTestFirefox.SetBreakpointInMethod(String assembly, String type, String method, Int32 lineOffset, Int32 col, String condition) in /_/src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestFirefox.cs:line 388
   at DebuggerTests.DebuggerTestBase.CheckInspectLocalsAtBreakpointSite(String type, String method, Int32 line_offset, String bp_function_name, String eval_expression, Func`2 locals_fn, Func`2 wait_for_event_fn, Boolean use_cfo, String assembly, Int32 col) in /_/src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestBase.cs:line 231
   at DebuggerTests.AsyncTests.AsyncLocalsInNestedContinueWithStaticBlock() in /_/src/mono/wasm/debugger/DebuggerTestSuite/AsyncTests.cs:line 66
  • CallToEvaluateLocal name missmatch. e.g. InspectLocalsUsingClassFromLibraryUsingDebugTypeFull
  Failed DebuggerTests.MiscTests.InspectLocalsUsingClassFromLibraryUsingDebugTypeFull
  Error Message:
   [_debugger_test__DebugTypeFull_CallToEvaluateLocal]

Expected: CallToEvaluateLocal
Actual:   _debugger_test__DebugTypeFull_CallToEvaluateLocal

Introduced by #69072 and resetting before 56e58d3 fixes the issue.

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jun 20, 2022
@ghost
Copy link

ghost commented Jun 20, 2022

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Sample Run.

Around 80 tests on Firefox failing on CI and locally. There are different messages:

  • Test file not found, failing assert: e.g. MiscTests.CheckThatAllSourcesAreSent
Assert.Contains() Failure
Not found: dotnet://debugger-test.dll/debugger-test.cs
In value:  ValueCollection<String, String> ["debugger-driver.html", "debugger-driver.html", "debugger-driver.html", "debugger-driver.html", "debugger-driver.html", ...]
  • Test not found, throwing exception, e.g. DebuggerTests.ArrayTests.InspectGenericValueTypeArrayLocals
System.Collections.Generic.KeyNotFoundException : The given key 'dotnet://debugger-test.dll/debugger-array-test.cs' was not present in the dictionary.
  • Cannot set a breakpoint = test cancelled, e.g DebuggerTests.SteppingTests.BreakOnAwaitThenResumeToNextBreakpoint
 Failed DebuggerTests.AsyncTests.AsyncLocalsInNestedContinueWithStaticBlock [30 ms]
  Error Message:
   System.Threading.Tasks.TaskCanceledException : A task was canceled.
  Stack Trace:
     at DebuggerTests.DebuggerTestFirefox.SetBreakpointInMethod(String assembly, String type, String method, Int32 lineOffset, Int32 col, String condition) in /_/src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestFirefox.cs:line 388
   at DebuggerTests.DebuggerTestBase.CheckInspectLocalsAtBreakpointSite(String type, String method, Int32 line_offset, String bp_function_name, String eval_expression, Func`2 locals_fn, Func`2 wait_for_event_fn, Boolean use_cfo, String assembly, Int32 col) in /_/src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestBase.cs:line 231
   at DebuggerTests.AsyncTests.AsyncLocalsInNestedContinueWithStaticBlock() in /_/src/mono/wasm/debugger/DebuggerTestSuite/AsyncTests.cs:line 66

Introduced by #69072 and resetting before 56e58d3 fixes the issue.

Author: ilonatommy
Assignees: thaystg
Labels:

arch-wasm, area-Debugger-mono, blocking-clean-ci-staging

Milestone: -

@ilonatommy ilonatommy added this to the 7.0.0 milestone Jun 20, 2022
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Jun 20, 2022
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jun 20, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jun 20, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jul 21, 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