Skip to content

Conversation

@JoshLozensky
Copy link
Contributor

@JoshLozensky JoshLozensky commented Sep 28, 2024

According to this guidance from XUnit, using ConfigureAwait(false) in tests can lead to issues with synchronization and parallelization. In local testing removing ConfigureAwait seemed to work as I could repro flakiness locally in about 1-3 attempts but post-fix there was no observed flakiness locally after 14 attempts.

That doesn't guarantee it fixes the build pipeline, but it looks promising so far. There is a risk of recurrence in the build pipeline even if this method is successful as I only edited tests that were observed as flaky in the last two weeks. Therefore, if a test still using ConfigureAwait(false) triggers flakiness but hasn't been failing itself, it would still be capable of breaking the build.

@JoshLozensky JoshLozensky requested a review from a team as a code owner September 28, 2024 00:45
Copy link
Collaborator

@jennyf19 jennyf19 left a comment

Choose a reason for hiding this comment

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

Awesome. Thanks @JoshLozensky Please open an issue and attach to the PR for ease in tracking.
:shipit:

@JoshLozensky JoshLozensky linked an issue Sep 30, 2024 that may be closed by this pull request
@JoshLozensky JoshLozensky merged commit 070153c into master Sep 30, 2024
5 checks passed
@JoshLozensky JoshLozensky deleted the lozensky/EnableAwaitConfiguration branch September 30, 2024 16:15
This was referenced Oct 28, 2025
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.

Flaky unit tests

4 participants