Repository navigation
Use a single dataset cache for all the runner OSes - #4772
Conversation
|
This is ready @alejoe91 Ok, as you know the caching mechanism only lets a run restore caches from its own branch or from the default branch: There is no I tested it on a branch instead, where the cron job and One cache built on Linux, restored and used everywhere else. An important change to make this work is the introduction of a new environment variable that lets the CI specify the location of the testing dataset: This is a good thing in itself as it will allow our power users (like moi : P) to point to other directories. |
alejoe91
left a comment
There was a problem hiding this comment.
Thanks @h-mayorquin !!! Amazing!
I am still trying to figure out what exactly is failing on the caching cron job. It looks like multiple fetch requests are being denied on gin. While I think about a better solution that makes less fetch requests, one big thing we can do is reduce our cache footprint by using the same cache for all the OSes which will in turn reduce or requests. To do this we can use the new CI feature called
enableCrossOsArchivewhich was released inactions/cachev3.2.3 in January 2023:https://github.com/actions/cache/releases/tag/v3.2.3
I have been using it on neuroconv successfully for over a year now:
catalystneuro/neuroconv#1385
So this PR builds the cache once on Linux and shares it with macOS and Windows. I also made the hash step exit when
git ls-remotecomes back empty. Right now it silently produces the keydatasets-, guarantees a miss and forces the full download that gin just refused.I will be watching the first run to check for annex symlink behavior.