Skip to content

[wasm][debugger][tests] DebuggerTests.MiscTests.GetSourceUsingSourceLink failing #62551

@radical

Description

@radical
[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:

  1. SourceFile.GetDataAsync fails to fetch the source file from SourceLinkUri: https://raw.githubusercontent.com/dotnet/runtime/9943350b43caf055588a4ec38d316c25a450f27c/src/mono/wasm/debugger/tests/debugger-test- with-source-link/test.cs.

  2. SourceFile also has file:///_/src/mono/wasm/debugger/tests/debugger-test-with-source-link/test.cs but that doesn't resolve as the proxy looks for the path under the test directory.

  3. Thays pointed out that it works fine with her PR branches, and it uses thaystg/runtime/.. for that.

  4. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions