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

[AWS] Stat file before downloading it when doing binary cache lookup. #568

Conversation

AenBleidd
Copy link
Contributor

Currently when downloading file while doing binary caching lookup fails with an error because there is a cache miss, msbuild interprets this as an error and fails the build step. Also, this adds a fatal error message in the log that is usually not ok because cache miss is a normal and expected situation.

This PR adds a stat operation before actual file download on cache lookup to eliminate fatal error and prettify log a little.

Signed-off-by: Vitalii Koshura [email protected]

Currently when downloading file while doing binary caching lookup fails with an error because there is a cache miss, msbuild interprets this as an error and fails the build step. Also, this adds a fatal error message in the log that is usually not ok because cache miss is a normal and expected situation.

This PR adds a stat operation before actual file download on cache lookup to eliminate fatal error and prettify log a little.

Signed-off-by: Vitalii Koshura <[email protected]>
@AenBleidd
Copy link
Contributor Author

@BillyONeal, please review

@BillyONeal
Copy link
Member

@dave-juicelabs @mathisloge Tagging you since you were involved in #293 . Are you interested in review? This looks fine as far as vcpkg is concerned but all the impacts here seem to be related to AWS specifics with which I have no experience.

@dave-juicelabs
Copy link
Contributor

Looks good to me

@BillyONeal BillyONeal merged commit 5a44517 into microsoft:main May 31, 2022
@AenBleidd AenBleidd deleted the vko_aws_binarycache_stat_file_before_download branch May 31, 2022 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants