jupyterhub / binderhub

Run your code in the cloud, with technology so advanced, it feels like magic!
https://binderhub.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2.54k stars 388 forks source link

ci: minimize risk of caching node/pip dependencies #1491

Closed consideRatio closed 2 years ago

consideRatio commented 2 years ago

There were multiple possible problems with how we cached node and pip installed packages.

  1. We ran different jobs installing different things, but used the same cache key.
  2. We didn't let our key involve the python version
  3. We tried falling back to other caches if we failed, making us restore things no matter what

Like this, we will avoid a lot more issues I think.