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

The build is broken in Windows because of testhost connection #1154

Closed
martintmk opened this issue Apr 24, 2023 · 4 comments
Closed

The build is broken in Windows because of testhost connection #1154

martintmk opened this issue Apr 24, 2023 · 4 comments
Assignees
Labels
CI/build v8 Issues related to the new version 8 of the Polly library.
Milestone

Comments

@martintmk
Copy link
Contributor

martintmk commented Apr 24, 2023

Summary:

Any windows build fails with the following error:

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
vstest.console process failed to connect to testhost process after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout.
Data collector 'Blame' message: The specified inactivity time of 10 seconds has elapsed. Collecting hang dumps from testhost and its child processes.
Data collector 'Blame' message: Dumping 4816 - testhost.
Data collector 'Blame' message: All tests finished running, Sequence file will not be generated.

Seems to be a problem with nuget cache:
microsoft/vstest#2108

We might disable this in Windows in the meantime to unblock.

@martincostello

@martintmk martintmk added the v8 Issues related to the new version 8 of the Polly library. label Apr 24, 2023
@martintmk martintmk added this to the v8.0.0 milestone Apr 24, 2023
@martintmk martintmk self-assigned this Apr 24, 2023
@martincostello
Copy link
Member

Happy for you to turn off the package caching as part of #1153 if it's causing issues.

@martintmk
Copy link
Contributor Author

Thanks, that would help :)

@martintmk
Copy link
Contributor Author

@martincostello, I believe this problem is undeterministic as I was able to merge the PR above. However the builds will be unstable until we fix this.

martincostello added a commit that referenced this issue Apr 25, 2023
martincostello added a commit that referenced this issue Apr 25, 2023
@martintmk
Copy link
Contributor Author

@martincostello

After too many build failures I gave this thread a quick read:
microsoft/vstest#2952

And there was a mention of --blame-hand-timeout that I knew we added recently (around that time this instability started)

So I commented this piece in the cake build:

// Commented, because it causes random crashes on Windows
// ArgumentCustomization = args => args.Append($"--blame-hang-timeout 10s")

'And now, the Windows build is finally passing. I quess we have to live without the command-line option above or just disable it on windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/build v8 Issues related to the new version 8 of the Polly library.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants