-
Notifications
You must be signed in to change notification settings - Fork 279
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
Clarify asset caching output #1409
Clarify asset caching output #1409
Conversation
Seems to be very spammy to print this every time something is downloaded
I would prefer |
Could we make the output look something like this? Asset Caching Enabled (that means x-azurl) Downloading file:///Users/javiermatos/dev/asset-cache/26aab0163965f3d560dfd6b1f72c5e77192338237ebe286099fd62f243f1bbd4857b9193118386b801c00dc5cfbc5bc8af84814692fcfadcf56c7d2faab52533 (asset cache URI for https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz ) -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz Scenario: x-block-origin disabled, x-azurl Asset Cache Miss! Downloading file:///Users/javiermatos/dev/asset-cache/26aab0163965f3d560dfd6b1f72c5e77192338237ebe286099fd62f243f1bbd4857b9193118386b801c00dc5cfbc5bc8af84814692fcfadcf56c7d2faab52533 (asset cache URI for https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz ) -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz Scenario: x-block-origin enabled, x-azurl Asset Cache Miss! Downloading file:///Users/javiermatos/dev/asset-cache/26aab0163965f3d560dfd6b1f72c5e77192338237ebe286099fd62f243f1bbd4857b9193118386b801c00dc5cfbc5bc8af84814692fcfadcf56c7d2faab52533 (asset cache URI for https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz ) -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz Scenario: x-block-origin enabled, x-azurl Asset Caching Disabled Can't download https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz because no asset caches are configured and fetching the original is prohibited by x-block-origin Scenario: x-block-origin disabled, no asset cache configured Downloading https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz Scenario: x-script Asset Cache Hit! Using script to downloads https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz Scenario: x-block-origin disabled, x-script Asset Cache Miss! ???????? Do we try to download https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz anyway??? I don't know what we do. Scenario: x-block-origin enabled, x-script Asset Cache Miss! Using script to downloads https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz |
I've updated the output to include some of the information you've suggested here. It's not one for one but I think it gets the point across. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't agree with the design change here to hide more things behind --debug
No longer hidden behind |
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2049386
The output is changed such that, without
--debug
enabled:Scenario: asset cache hit!
Before:
After:
Scenario: asset cache miss (configured), x-block-origin disabled
Before:
After:
Scenario: asset cache miss (configured), x-block-origin enabled
Before:
After:
Scenario: asset cache miss (not configured), x-block-origin enabled
Before:
After:
Scenario: asset cache miss (not configured), x-block-origin disabled
Before:
After:
** When
--debug
the following promise is printed:**Asset caching not enabled, x-block-origin disabled
Asset caching enabled, x-block-origin enabled