Skip to content

Conversation

@nohwnd
Copy link
Member

@nohwnd nohwnd commented Oct 3, 2025

  • combining sync and async apis to talk with the server does not work. probably some flag for the connection is not set.
    e.g. if we do discoveryAsync, and then do RunTests (sync), we get stuck.
  • capture the output but use task factory to get the output and await closing the process with async to ensure the streams are dumped.

// todo: report standard error on timeout
await Task.WhenAny(_communicationManager.AcceptClientAsync(), Task.Delay(clientConnectionTimeout)).ConfigureAwait(false);

_handShakeSuccessful = await HandShakeWithVsTestConsoleAsync().ConfigureAwait(false);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is completely broken. We are waiting for console to connect here, but we did not return from this method, so the port was never given to the code that starts the console. So there is no process that would ever call us back.

Comment on lines +6 to +7
"DOTNET_ThreadPool_ForceMinWorkerThreads": "1",
"DOTNET_ThreadPool_ForceMaxWorkerThreads": "1"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forces us to single threadpool thread to make sure we don't get blocked when running, and don't block threadpool threads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant