-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wait for design mode before closing a solution #32128
Conversation
This change improves integration test reliability by ensuring the debugger is terminated prior to attempting to close a solution.
c316ed3
to
89f6aca
Compare
@sharwell is this good to merge to master ? |
@jinujoseph Yes as soon as it's reviewed. |
@ivanbasov take you review this pls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a product bug to me: the debugging session should be updated synchronously, right @tmat?
@jasonmalinowski It may be a product bug, but it still helped with integration test stability in certain edge cases from the past. |
Ah, I think I remember: if a test related to debugging failed, it could end the test before the debugger terminated. This would lead to a failure to close the solution followed by a cascading failure that impacted all remaining tests, either by causing them to fail or by causing them to just time out. |
@sharwell If that's the case, then you need the TerminateAll line but not any of the other waiting code, correct? |
@jasonmalinowski No, the handling is asynchronous and I'm not aware of a direct waiter for the sequence. |
@sharwell Why are we waiting then? Either we need a waiter or it shouldn't be necessary. What breaks? |
@jasonmalinowski I don't remember what specifically broke. I found it during test hardening work in #28173. |
@sharwell It seems to me then we should either remove the waiting (and leave the "TerminateAll") or debug further. Otherwise this really looks like integration tests are finding an actual bug here, and working around that isn't the way to go (at least not without understanding it!) |
@jasonmalinowski I found the issue. When attempting to fix |
@jasonmalinowski @tmat I moved this back to dev16.0. I cannot proceed with 16.0 integration testing without this change (it blocks an upcoming PR). |
src/VisualStudio/IntegrationTest/TestUtilities/InProcess/SolutionExplorer_InProc.cs
Show resolved
Hide resolved
cb69989
to
c0d2d5f
Compare
Dismissing my block, since "we're doing this to cleanup the potential broken state once the test failed" makes good sense.
Release build passed 👍 |
This change improves integration test reliability by ensuring the debugger is terminated prior to attempting to close a solution.
📝 This pull request builds on #32122. Only the last commit is unique to this pull request.