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] Add experimental x-azblob binary provider #13626

Merged
merged 24 commits into from Nov 18, 2020

Conversation

ras0219
Copy link
Contributor

@ras0219 ras0219 commented Sep 20, 2020

This PR adds an experimental binary provider backed by Azure Blob Storage.

@JackBoosY JackBoosY added category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed info:internal This PR or Issue was filed by the vcpkg team. labels Sep 22, 2020
toolsrc/src/vcpkg/base/downloads.cpp Outdated Show resolved Hide resolved
static void clean_prepare_dir(Files::Filesystem& fs, const fs::path& dir)
{
fs.remove_all(dir, VCPKG_LINE_INFO);
bool created_last = fs.create_directories(dir, VCPKG_LINE_INFO);
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
bool created_last = fs.create_directories(dir, VCPKG_LINE_INFO);
bool created_last = fs.create_directory(dir, VCPKG_LINE_INFO);

create_directories is really expensive and we should have already created the parents before we get here?

toolsrc/src/vcpkg/binarycaching.cpp Show resolved Hide resolved
toolsrc/src/vcpkg/binarycaching.cpp Outdated Show resolved Hide resolved
toolsrc/src/vcpkg/binarycaching.cpp Show resolved Hide resolved
scripts/azure-pipelines/windows/azure-pipelines.yml Outdated Show resolved Hide resolved
toolsrc/include/vcpkg/base/downloads.h Show resolved Hide resolved
toolsrc/include/vcpkg/base/lockguarded.h Show resolved Hide resolved
toolsrc/include/vcpkg/binarycaching.h Outdated Show resolved Hide resolved
toolsrc/include/vcpkg/base/util.h Show resolved Hide resolved
toolsrc/src/vcpkg/base/downloads.cpp Outdated Show resolved Hide resolved
toolsrc/src/vcpkg/base/downloads.cpp Outdated Show resolved Hide resolved
toolsrc/src/vcpkg/binarycaching.cpp Outdated Show resolved Hide resolved
toolsrc/src/vcpkg/binarycaching.cpp Outdated Show resolved Hide resolved
@ras0219-msft
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ras0219 ras0219 marked this pull request as ready for review November 18, 2020 19:49
@strega-nil strega-nil merged commit 5c48bee into microsoft:master Nov 18, 2020
strega-nil pushed a commit to strega-nil/vcpkg that referenced this pull request May 5, 2021
* [vcpkg] Add experimental x-azblob binary provider

* [vcpkg] Test azblob storage provider in CI

* [vcpkg] Address some CR comments from microsoft#13639

* [vcpkg] Fixup azure-pipelines

* [vcpkg] Fix regression where the downloaded package is purged before decompressing

* [vcpkg] Further refactor vcpkg::Downloads

* [vcpkg] Enable OSX for x-azblob testing

* [vcpkg] Reduce diff against master

* [vcpkg] Extract Downloads::details::split_uri_view

* [vcpkg] Address PR comments

* [vcpkg] Add testing and metrics for x-azblob

* [vcpkg] Add docs for x-azblob

This includes a note that it is currently experimental

* [vcpkg] Address CR comments

* [vcpkg] Revert pipeline changes except OSX to minimize disruption

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed info:internal This PR or Issue was filed by the vcpkg team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants