-
Notifications
You must be signed in to change notification settings - Fork 391
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
Bump xunit to 2.9.0 #9457
base: main
Are you sure you want to change the base?
Bump xunit to 2.9.0 #9457
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
The build is timing out while running tests. Here you can see the last thing it did before being cancelled.
Locally, these Locally,
|
I'm not sure how to progress this. The test run hangs, so is killed, and no results are published. We only know which assembly is seeing the hang. @smitpatel @haileymck do either of you know whether there's a way to have |
I've pushed a change that'll increase the log level from |
That didn't give much more of value:
Splitting that out by project:
Those tests all passed in about five seconds. We can see what a full run is supposed to resemble. The following test hangs at the end of this log:
|
I don't think trx will be generated if the test run is terminated. |
@smitpatel. Makes sense. The log says it generated a binlog, but the run says there are no artifacts. Is it available somewhere? If not, can we make a change to capture the binlog even in case of failure like this? |
Our current pipeline is configured to capture logs even when a step fails. It publishes all test results, artifacts. Issue here is that whole job is terminated on timeout so azdo doesn't allow to run any steps after that at all. I am not sure if that is any direct way to achieve it. |
I can repro the hang locally:
Surprisingly, using verbosity
Comparing the successful tests before/after the changes in this PR, we can see that the following tests are not completing in the newer version of xunit: The tests are hanging and these are concurrency-related tests. We recently changed the synchronisation primitive in use (to Regardless, I added timeouts to |
That seems to have fixed the hang. Changing the test fixture to run tests serially rather than in parallel shows there's still a failure (though in only one test now):
The single failure occurs in It's surprising to me that this passes in VS, but not on the command line. We need to be able to run these tests in parallel too, as this code in particular shouldn't require isolation. |
Changing the |
Since #9498, we can try and bump Verify as well. |
Increases package versions. I'm hopeful this will make unit test discovery quicker in the solution.
Also fixes compile issues due to changes in xUnit's APIs, and addresses all diagnostics logged via new capabilities in xUnit's analyzers.
Microsoft Reviewers: Open in CodeFlow