Build successful! π
Build successful! π
Build successful! π
Build successful! π
Build successful! π
Build successful! π
Build successful! π
Build successful! π
Build successful! π
16 | keys: | ||
17 | - rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
18 | - rsp-yarn-{{ .Environment.CACHE_VERSION }}-{{ .Branch }}- | ||
19 | - rsp-yarn-{{ .Environment.CACHE_VERSION }}- |
Does this need to restore the react-spectrum-
cache as well, which is saved below?
this will restore ~/.cache/yarn
react-spectrum-
key will restore source code, which may be different than what was received from checkout
seemed safer to use the checkout code and rebuild what we need
this may be a further optimization down the line if builds start getting longer again, but we'd need to be careful with it
the only reason the key react-spectrum-
exists is because it's the code checked out with postinstall run, so we can now run lint/tests/storybook etc, those steps no longer checkout
the code, they rely on this cache. we could have persisted it to the workspace as well, but I didn't look into the performance differences there yet, future possible optimization
hmm so why to we write to the react-spectrum
cache key then if we don't use it?
you'll also note that there are both a react-spectrum-
and react-spectrum17
cache key, so those downstream jobs can get the code all setup with the right react version
Build successful! π
Login to write a write a comment.
Try to install 17 in such a way that we can cache it for tests and storybook
from ~15min down to ~9min!
cache behavior for yarn described in here https://circleci.com/docs/2.0/caching/#yarn-node
versioned caching here https://circleci.com/docs/2.0/caching/#clearing-cache
Closes
β Pull Request Checklist:
π Test Instructions:
π§’ Your Project: