Skip to content

Commit

Permalink
[wasm][debugger] Debug CI (#83266)
Browse files Browse the repository at this point in the history
Increase timeout
wait until the runtime is ready when receive dotnet.runtests command.
  • Loading branch information
thaystg committed Mar 16, 2023
1 parent 7a3b4f6 commit 8560ea9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,9 @@ protected override async Task<bool> AcceptCommand(MessageId id, JObject parms, C
case "DotnetDebugger.runTests":
{
SendResponse(id, Result.OkFromObject(new { }), token);
if (await IsRuntimeAlreadyReadyAlready(id, token))
await RuntimeReady(id, token);
while (!await IsRuntimeAlreadyReadyAlready(id, token)) //retry on debugger-tests until the runtime is ready
await Task.Delay(1000, token);
await RuntimeReady(id, token);
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public Task<Result> SendCommand(string method, JObject args, CancellationToken t

public virtual Task<Result> SendCommand(SessionId sessionId, string method, JObject args, CancellationToken token)
{
int id = ++next_cmd_id;
int id = Interlocked.Increment(ref next_cmd_id);
if (args == null)
args = new JObject();

Expand Down
4 changes: 2 additions & 2 deletions src/mono/wasm/debugger/Wasm.Debugger.Tests/wasm.helix.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<NeedsToRunOnBrowser>true</NeedsToRunOnBrowser>
<WorkItemPrefix>$(DebuggerHost)-</WorkItemPrefix>
<UseDotNetCliVersionFromGlobalJson>true</UseDotNetCliVersionFromGlobalJson>
<_DebuggerTestsWorkItemTimeout Condition="'$(Scenario)' == 'WasmDebuggerTests'">00:30:00</_DebuggerTestsWorkItemTimeout>
<_DebuggerTestsWorkItemTimeout Condition="'$(Scenario)' == 'WasmDebuggerTests' and '$(BrowserHost)' == 'windows'">00:40:00</_DebuggerTestsWorkItemTimeout>
<_DebuggerTestsWorkItemTimeout Condition="'$(Scenario)' == 'WasmDebuggerTests'">00:50:00</_DebuggerTestsWorkItemTimeout>
<_DebuggerTestsWorkItemTimeout Condition="'$(Scenario)' == 'WasmDebuggerTests' and '$(BrowserHost)' == 'windows'">00:50:00</_DebuggerTestsWorkItemTimeout>

<HelixExtensionTargets>$(HelixExtensionTargets);_AddWorkItemsForWasmDebuggerTests</HelixExtensionTargets>
</PropertyGroup>
Expand Down

0 comments on commit 8560ea9

Please sign in to comment.