-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[wasm][debugger][tests] DebuggerTests.MiscTests.GetSourceUsingSourceLink failing #62551
Copy link
Copy link
Closed
Labels
Description
[xUnit.net 00:00:04.28] DebuggerTests.MiscTests.GetSourceUsingSourceLink [FAIL]
Failed DebuggerTests.MiscTests.GetSourceUsingSourceLink [769 ms]
Error Message:
Failed to getScriptSource: [Result: IsOk: False, IsErr: True, Value: , Error: {
"code": -32000,
"message": "No script for id: dotnet://2_0"
} ]
Investigating this with @thaystg, we found:
-
SourceFile.GetDataAsyncfails to fetch the source file fromSourceLinkUri: https://raw.githubusercontent.com/dotnet/runtime/9943350b43caf055588a4ec38d316c25a450f27c/src/mono/wasm/debugger/tests/debugger-test- with-source-link/test.cs. -
SourceFilealso hasfile:///_/src/mono/wasm/debugger/tests/debugger-test-with-source-link/test.csbut that doesn't resolve as the proxy looks for the path under the test directory. -
Thays pointed out that it works fine with her PR branches, and it uses
thaystg/runtime/..for that. -
But I'm running the tests locally, and on helix with a branch HEAD that isn't pushed anywhere at all
If this works fine with PR branches in a user's fork
- then we don't have to fix anything. But when the test fails, we should add a message pointing out that it might be due to the above case.
- else we need to figure out a better way to do this test
Reactions are currently unavailable