Skip to content
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

[release/7.0] Don't re-use XmlSchemaSet - it's not threadsafe. #74564

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 25, 2022

Backport of #74524 to release/7.0

/cc @karelz @StephenMolloy

Customer Impact

Blocks clean CI - test-only change.

Fixes #74370

These new tests use a few simple collections of schemas grouped in XmlSchemaSet. They were ported from NetFx, where apparently the test environment ran each test one at a time. (Seems that is also the case "on my machine" and in whatever pipelines were run to allow the tests to get checked in.) But XmlSchemaSet is not thread safe, so parallel execution of tests using a static XmlSchemaSet could be problematic. This change builds a new XmlSchemaSet per test instead of re-using a single instance.

Testing

CI

Risk

Low - test only change

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@karelz karelz requested a review from mconnew August 25, 2022 10:04
@karelz karelz added this to the 7.0.0 milestone Aug 25, 2022
@carlossanlop
Copy link
Member

@HeathAr are you the right person to approve this 7.0 backport?

@carlossanlop
Copy link
Member

Oh nevermind. This is only a test change.

@carlossanlop carlossanlop merged commit 71b27a5 into release/7.0 Aug 25, 2022
@carlossanlop carlossanlop deleted the backport/pr-74524-to-release/7.0 branch August 25, 2022 15:58
@ghost ghost locked as resolved and limited conversation to collaborators Sep 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants