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

Option to downloading cirrus cache to local #461

Open
lygstate opened this issue Mar 22, 2022 · 2 comments
Open

Option to downloading cirrus cache to local #461

lygstate opened this issue Mar 22, 2022 · 2 comments

Comments

@lygstate
Copy link

For example, I have a cache at

windows_msys2
https://github.com/msys2/msys2-installer/releases/download/2022-03-19/msys2-base-x86_64-20220319.sfx.exe
0
 diffutils git grep make pkg-config sed mingw-w64-x86_64-python mingw-w64-x86_64-python-sphinx mingw-w64-x86_64-toolchain mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_image mingw-w64-x86_64-gtk3 mingw-w64-x86_64-glib2 mingw-w64-x86_64-ninja mingw-w64-x86_64-jemalloc mingw-w64-x86_64-lzo2 mingw-w64-x86_64-zstd mingw-w64-x86_64-libjpeg-turbo mingw-w64-x86_64-pixman mingw-w64-x86_64-libgcrypt mingw-w64-x86_64-libpng mingw-w64-x86_64-libssh mingw-w64-x86_64-snappy mingw-w64-x86_64-libusb mingw-w64-x86_64-usbredir mingw-w64-x86_64-libtasn1 mingw-w64-x86_64-nettle mingw-w64-x86_64-cyrus-sasl mingw-w64-x86_64-curl mingw-w64-x86_64-gnutls mingw-w64-x86_64-libnfs 
Cache miss for msys2-686fe5e4c5e97e7239784da55b28657b021782a1155326ab061f430d4bcfff48! Populating...
    Directory: C:\tools\archive
Mode                LastWriteTime         Length Name                         

How to downloading it?

@lygstate lygstate added the bug label Mar 22, 2022
@fkorotkov
Copy link
Contributor

At the moment there is no such option to download a cache. I'll convert this issue to a feature request.

@fkorotkov fkorotkov removed the bug label Mar 22, 2022
@fkorotkov fkorotkov changed the title How to downloading cirrus cache to local? Option to downloading cirrus cache to local Mar 22, 2022
@fkorotkov fkorotkov self-assigned this Oct 24, 2022
@fkorotkov fkorotkov transferred this issue from cirruslabs/cirrus-ci-docs Nov 3, 2022
@fkorotkov
Copy link
Contributor

Similar to how we have a link for downloading log entries:

https://api.cirrus-ci.com/v1/task/5135387839430656/logs/node_modules.log

There is now a REST endpoint to download the cache entry:

https://api.cirrus-ci.com/v1/task/5135387839430656/caches/node_modules-b35b50792b902e6896c6546a4071295c87f257c968b3a0e44f8477dca2f3dcae.tar.gz

I think it will make sense to add an option to download the cache entry from within UI

Screenshot 2022-11-03 at 7 33 19 AM

In order to get the node_modules-b35b50792b902e6896c6546a4071295c87f257c968b3a0e44f8477dca2f3dcae key for node_modules instruction, one can task's execution info and find a key that starts with node_modules-. No need to try to parse logs.

ikatemart pushed a commit to ikatemart/cirrus-ci-web that referenced this issue Nov 9, 2022
ikatemart pushed a commit to ikatemart/cirrus-ci-web that referenced this issue Nov 9, 2022
fkorotkov pushed a commit that referenced this issue Nov 11, 2022
* Downloading cirrus cache to local (#461)

* tooltip

* cache key retrieval update

* update action buttons

* move the find hit logic out of cacheURL function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants