-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Swallow MSDTC availability exceptions for CI test reliability #77023
Conversation
Tagging subscribers to this area: @roji |
// We don't want this to make our CI flaky, so we swallow the exception and skip all subsequent tests. | ||
s_isTestSuiteDisabled = true; | ||
|
||
return; |
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.
@stephentoub do we have a standard way to detect CI, so that this can continue throwing when run locally (e.g. GetEnvironmentVariable("CI") or something)?
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.
I'm not aware of a method we call anywhere to ask whether we're running in CI, but we do have an attribute we apply to suppress a test when in CI:
[Trait(XunitConstants.Category, XunitConstants.IgnoreForCI)]
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.
Thanks, I'll take a look at how that's implemented.
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.
Here's the implementation you're looking for:
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.
Thank you!
@roji Is there anything blocking this from being reviewed/merged? The failure noise in AzDO pipelines from these tests is quite annoying. |
Sorry, I've been busy with other things - will give this my priority. |
ae2bd25
to
e56c14b
Compare
Fixes #76836
/cc @ajcvickers