Skip to content

Wasm.Build.Tests failing with 'No such file or directory' when launching dotnet process #122316

@elinor-fung

Description

@elinor-fung

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1221884
Build error leg or test failing: Wasm.Build.Tests.Blazor.SimpleRunTests.BlazorBuildRunTest
Pull request: #122212

Expected 0 exit code but got 1: /root/helix/work/workitem/e/dotnet-latest/dotnet run -c Debug --no-build

[] Unhandled exception: An error occurred trying to start process '/root/helix/work/workitem/e/dotnet-latest/dotnet' with working directory '/root/helix/work/workitem/e/wbt artifacts/blazor_Debug_False_smukhqi3_rme_鿀蜒枛遫䡫煉/App/bin/Debug/net10.0/AppBundle'. No such file or directory
   at Wasm.Build.Tests.CommandResult.EnsureExitCode(Int32 expectedExitCode, String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 51
   at Wasm.Build.Tests.CommandResult.EnsureSuccessful(String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 28
   at Wasm.Build.Tests.BrowserRunner.StartServerAndGetUrlAsync(ToolCommand cmd, String args, Action`1 onServerMessage) in /_/src/mono/wasm/Wasm.Build.Tests/BrowserRunner.cs:line 101
   at Wasm.Build.Tests.BrowserRunner.RunAsync(ToolCommand cmd, String args, Boolean headless, String locale, Action`2 onConsoleMessage, Action`1 onServerMessage, Action`1 onError, Func`2 modifyBrowserUrl) in /_/src/mono/wasm/Wasm.Build.Tests/BrowserRunner.cs:line 166
   at Wasm.Build.Tests.WasmTemplateTestsBase.BrowserRunTest(String runArgs, String workingDirectory, RunOptions runOptions) in /_/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTestsBase.cs:line 361
   at Wasm.Build.Tests.WasmTemplateTestsBase.BrowserRunTest(String runArgs, String workingDirectory, RunOptions runOptions) in /_/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTestsBase.cs:line 386
   at Wasm.Build.Tests.WasmTemplateTestsBase.BrowserRun(RunOptions runOptions) in /_/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTestsBase.cs:line 316
   at Wasm.Build.Tests.WasmTemplateTestsBase.RunForBuildWithDotnetRun(RunOptions runOptions) in /_/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTestsBase.cs:line 304
   at Wasm.Build.Tests.BlazorWasmTestBase.RunForBuildWithDotnetRun(RunOptions runOptions) in /_/src/mono/wasm/Wasm.Build.Tests/Blazor/BlazorWasmTestBase.cs:line 199
   at Wasm.Build.Tests.Blazor.SimpleRunTests.BlazorBuildRunTest(Configuration config) in /_/src/mono/wasm/Wasm.Build.Tests/Blazor/SimpleRunTests.cs:line 32
--- End of stack trace from previous location ---

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorPattern": ["BlazorWasmTestBase.RunForBuildWithDotnetRun", "An error occurred trying to start process '.*dotnet' with working directory"],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1221884
Error message validated: [BlazorWasmTestBase.RunForBuildWithDotnetRun An error occurred trying to start process '.*dotnet' with working directory]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 12/8/2025 11:10:12 PM UTC

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-Build-monoblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions