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

Fix a Race in Installer Test Infrastructure #38143

Merged
3 commits merged into from
Jun 23, 2020
Merged

Conversation

swaroop-sridhar
Copy link
Contributor

@swaroop-sridhar swaroop-sridhar commented Jun 19, 2020

This PR contains the following changes:

Fixes #33675
Fixes #38013

StaticHostTest used the StaticHostApp (which is effectively a copy of StandaloneApp) as a work-around for synchronization problems.
Remove this work-around.
@swaroop-sridhar swaroop-sridhar added this to the 5.0.0 milestone Jun 19, 2020
@swaroop-sridhar swaroop-sridhar self-assigned this Jun 19, 2020
@ghost
Copy link

ghost commented Jun 19, 2020

Tagging subscribers to this area: @vitek-karas, @swaroop-sridhar
Notify danmosemsft if you want to be subscribed.

@swaroop-sridhar
Copy link
Contributor Author

CC: @safern @ViktorHofer @VSadov

@@ -67,25 +69,26 @@ public virtual void Dispose()
_copies.Clear();
}

private static readonly object pathCountLock = new object();
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
private static readonly object pathCountLock = new object();
private static readonly object _pathCountLock = new object();

Add locking around GetNewTestArtifactPath() so that multiple threads attempting to create new copies of a TextFixture don't collide and work on the same path.
@ghost
Copy link

ghost commented Jun 23, 2020

Hello @swaroop-sridhar!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit a755e74 into dotnet:master Jun 23, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
This pull request was closed.
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.

Enable Apphost.Bundle.Test Bundle_can_be_renamed() Bundle_extraction_is_reused failed in CI
2 participants