Skip to content

Revert "Merge pull request #62854 from CyrusNajmabadi/renameOOP5"#63196

Merged
dibarbet merged 1 commit intodotnet:mainfrom
dibarbet:revert_rename_oop_changes
Aug 4, 2022
Merged

Revert "Merge pull request #62854 from CyrusNajmabadi/renameOOP5"#63196
dibarbet merged 1 commit intodotnet:mainfrom
dibarbet:revert_rename_oop_changes

Conversation

@dibarbet
Copy link
Copy Markdown
Member

@dibarbet dibarbet commented Aug 4, 2022

This reverts commit 28a9bc8, reversing
changes made to 8909116.

I believe this to be the cause of the failing rename integration tests, currently seeing (though not limited to)

Roslyn.VisualStudio.IntegrationTests.VisualBasic.BasicRename.VerifyAttributeCapitalizedRename
Roslyn.VisualStudio.IntegrationTests.VisualBasic.BasicRename.VerifyAttributeNotCapitalizedRename
Roslyn.VisualStudio.IntegrationTests.CSharp.CSharpRename.VerifyAttributeRename
Roslyn.VisualStudio.IntegrationTests.CSharp.CSharpRename.VerifyAttributeRenameWhileRenameClasss
Roslyn.VisualStudio.IntegrationTests.CSharp.CSharpRename.VerifyRenameCancellation

all start failing occasionally beginning with the build from #62854. The symptom is a timeout in waiting for the rename async operation to complete. These failures appear to occur only in builds with this change and errors in these tests before that are entirely different and less frequent, so I'm quite confident this is the cause.

https://dev.azure.com/dnceng/public/_build/results?buildId=1918864&view=ms.vss-test-web.build-test-results-tab&runId=49719056&resultId=100362

Server stack trace: 
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Threading.ManualResetEventSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.SpinThenBlockingWait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.InternalWait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Roslyn.Hosting.Diagnostics.Waiters.TestWaitingService.WaitForTask(Task task, CancellationToken cancellationToken) in /_/src/VisualStudio/IntegrationTest/TestUtilities/InProcess/TestWaitingService.cs:line 84
   at Roslyn.Hosting.Diagnostics.Waiters.TestWaitingService.WaitForAsyncOperations(TimeSpan timeout, String featureName, Boolean waitForWorkspaceFirst) in /_/src/VisualStudio/IntegrationTest/TestUtilities/InProcess/TestWaitingService.cs:line 46
   at Microsoft.VisualStudio.IntegrationTest.Utilities.InProcess.VisualStudioWorkspace_InProc.WaitForAsyncOperations(TimeSpan timeout, String featuresToWaitFor, Boolean waitForWorkspaceFirst) in /_/src/VisualStudio/IntegrationTest/TestUtilities/InProcess/VisualStudioWorkspace_InProc.cs:line 79
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.VisualStudio.IntegrationTest.Utilities.InProcess.VisualStudioWorkspace_InProc.WaitForAsyncOperations(TimeSpan timeout, String featuresToWaitFor, Boolean waitForWorkspaceFirst)
   at Microsoft.VisualStudio.IntegrationTest.Utilities.OutOfProcess.VisualStudioWorkspace_OutOfProc.WaitForAsyncOperations(TimeSpan timeout, String featuresToWaitFor, Boolean waitForWorkspaceFirst) in /_/src/VisualStudio/IntegrationTest/TestUtilities/OutOfProcess/VisualStudioWorkspace_OutOfProc.cs:line 35
   at Microsoft.VisualStudio.IntegrationTest.Utilities.OutOfProcess.InlineRenameDialog_OutOfProc.Invoke() in /_/src/VisualStudio/IntegrationTest/TestUtilities/OutOfProcess/InlineRenameDialog_OutOfProc.cs:line 23
   at Roslyn.VisualStudio.IntegrationTests.CSharp.CSharpRename.VerifyRenameCancellation() in /_/src/VisualStudio/IntegrationTest/IntegrationTests/CSharp/CSharpRename.cs:line 466

image

@dibarbet dibarbet requested a review from a team as a code owner August 4, 2022 01:28
@ghost ghost added the Area-IDE label Aug 4, 2022
@dibarbet
Copy link
Copy Markdown
Member Author

dibarbet commented Aug 4, 2022

already mentioned to @CyrusNajmabadi offline

@dibarbet
Copy link
Copy Markdown
Member Author

dibarbet commented Aug 4, 2022

One failure that looks entirely unrelated (for investigation another day). Going to re-run, but otherwise this looks like it resolves the rename hang
image

@dibarbet dibarbet merged commit 8c1eb8e into dotnet:main Aug 4, 2022
@dibarbet dibarbet deleted the revert_rename_oop_changes branch August 4, 2022 17:31
@ghost ghost added this to the Next milestone Aug 4, 2022
@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

Sorry!!

@dibarbet dibarbet modified the milestones: Next, 17.4 P2 Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants