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

[vcpkg] Disable timeout (default 10s) in vcpkg_acquire_msys #13086

Merged
merged 12 commits into from
Aug 28, 2020

Conversation

jgehw
Copy link
Contributor

@jgehw jgehw commented Aug 22, 2020

Default timeout is 10s, and MSYS2 servers are rather slow. When additional being on a slow internet connection, installation of MSYS2 fails. Fix by disabling timeout.

@cenit
Copy link
Contributor

cenit commented Aug 22, 2020

we use the same scripts in the CI system, where a timeout is necessary to avoid a stalled machine waiting for nothing
Maybe increasing it might be better, than just removing it?

@BillyONeal
Copy link
Member

I agree, no timeout whatsoever is a problem but we can set a longer value than 10s... even if the tool itself can't do that the _execute_process call has TIMEOUT

@PhoebeHui PhoebeHui added the category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly label Aug 24, 2020
@jgehw
Copy link
Contributor Author

jgehw commented Aug 24, 2020

As pacman only allows to disable the timeout (or use a custom command), I set a timeout via _execute_process as @BillyONeal suggested, and extended vcpkg_execute_required_process accordingly to pass a timeout forward to _execute_process.

@jgehw
Copy link
Contributor Author

jgehw commented Aug 24, 2020

Made the timeout in the last case (install the packages) in vcpkg_acquire_msys() configurable as someone may want to install many packages and thus needs a longer timeout.

@BillyONeal
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@PhoebeHui PhoebeHui changed the title Disable timeout (default 10s) in vcpkg_acquire_msys [vcpkg] Disable timeout (default 10s) in vcpkg_acquire_msys Aug 28, 2020
@PhoebeHui PhoebeHui added the info:reviewed Pull Request changes follow basic guidelines label Aug 28, 2020
@BillyONeal BillyONeal merged commit c278ca5 into microsoft:master Aug 28, 2020
@BillyONeal
Copy link
Member

Thanks for your contribution!

@jgehw jgehw deleted the fix-acquire-msys2-timeout branch August 28, 2020 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants