Skip to content

Conversation

@davidwengier
Copy link
Member

@davidwengier davidwengier commented May 26, 2023

To help see if we can track down the cause of https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1825424

Haven't had any hits on this today, from a quick run through a few things, so I don't think this will be annoying.

If you see this pop up, please debug and see why 😀

@davidwengier davidwengier requested a review from a team as a code owner May 26, 2023 04:34
@davidwengier
Copy link
Member Author

If would be interesting if the integration test failures are caused by the assert. Nice to know we've possibly been muddying our own telemetry :D

await _initializedCompletionSource.Task.ConfigureAwait(false);
var result = await _jsonRpc.InvokeAsync<TResponse>(method, @params).ConfigureAwait(false);
var arguments = new object[] { @params! };
var result = await _jsonRpc.InvokeWithCancellationAsync<TResponse>(method, arguments, cancellationToken).ConfigureAwait(false);
Copy link
Member Author

@davidwengier davidwengier May 29, 2023

Choose a reason for hiding this comment

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

If would be interesting if the integration test failures are caused by the assert.

It was!!

This was a pain to track down, and reproing it is equally painful, but what I think is happening is that during integartion test startup, we're getting a diagnostics request that is subsequently cancelled by the editor. There is logic in CLaSP, however, that is allowing the task cancellation to bring the queue down because it is not the cancellation token it is expecting, so it assumes something terrible has happened.

This manifested as a razor/fault report once per integration test run, I suspect due to the nature of the integration test initialization, where we open a Razor file to verify everything is up and running, and then close it very quickly. In real world usage I never ran into any failures.

@davidwengier davidwengier merged commit 0493d12 into dotnet:main May 29, 2023
@davidwengier davidwengier deleted the DebugAssert branch May 29, 2023 21:29
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.

2 participants