5

binarycaching: Add NuGet timeout configuration entry by ekilmer · Pull Request #...

 2 years ago
source link: https://github.com/microsoft/vcpkg-tool/pull/95
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

New issue

binarycaching: Add NuGet timeout configuration entry #95

Merged

ras0219-msft merged 3 commits into

microsoft:main

from

lifting-bits:ek/nuget-increase-push-timeout

on Jul 1, 2021

Merged

binarycaching: Add NuGet timeout configuration entry #95

ras0219-msft merged 3 commits into

microsoft:main

from

lifting-bits:ek/nuget-increase-push-timeout

on Jul 1, 2021

Conversation

Copy link

Contributor

ekilmer commented on Jun 17, 2021

Related to this issue microsoft/vcpkg#18483

As mentioned in the issue, ideally this timeout value could be configurable, but I'm not sure the best way to approach that in this code base. Help would be greatly appreciated!

Needs the extra second due to some potential issue with how NuGet calculates the timeout:
https://jfrog.com/knowledge-base/how-to-resolve-nuget-push-failures-after-5-minutes-even-though-timeout-value-is-set-as-greater-than-5-minutes-300-seconds/

Copy link

Contributor

ras0219-msft commented on Jun 18, 2021

Thanks for the PR!

I think we will eventually want this setting to come through the binary caching configuration string. To preserve our ability to fuse multiple NuGet calls together, I think this means it will need to come from a separate entry:

nuget,<url1>;nuget,<url2>;nugettimeout,3601

Copy link

Contributor

Author

ekilmer commented on Jun 19, 2021

we will eventually want this setting to come through the binary caching configuration string

Just to confirm: You are referencing the valid source strings section and VCPKG_BINARY_SOURCES environment variable/--binarysource CLI option in the documentation on binary caching, and adding a new keyword nugettimeout?

If so, that makes sense to me! Thank you.

Copy link

Contributor

Author

ekilmer commented on Jun 27, 2021

@ras0219-msft I've tried implementing a solution to what you described. I'd appreciate a review when you get a chance. Thank you!

Copy link

Contributor

@ras0219-msft ras0219-msft left a comment

This looks really good to me, thanks for making this PR!

Could you also add the new documentation to docs/users/binarycaching.md?

Copy link

Contributor

Author

ekilmer commented on Jun 30, 2021

edited

Could you also add the new documentation to docs/users/binarycaching.md?

I'd be happy to! Just one question, how does that work? It looks like that file lives in the main vcpkg repo, and a PR to update the doc should also bump the vcpkg-tool to a commit that has this PR merged. But a bump to the vcpkg-tool version look like it requires a release (so that Windows users can download a pre-built executable).


It also looks like there is now a conflict with binarycaching.cpp file. I will try to fix that today at some point.

ekilmer

changed the title binarycaching: Default NuGet push timeout to one hour

binarycaching: Add NuGet timeout configuration entry

on Jun 30, 2021

ras0219-msft

merged commit 78dbb6c into

microsoft:main on Jul 1, 2021

5 checks passed

Copy link

Contributor

ras0219-msft commented on Jul 1, 2021

Ah, you're absolutely right. Sorry for my confusion! Still getting used to the split repos I suppose :)

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Assignees

No one assigned

Labels
None yet
Projects

None yet

Milestone

No milestone

2 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK