Open oliversalzburg opened 9 years ago
Related to #19
@knownasilya Can you shed some light on how the module caching works? I see two types of caches, one for the hash of the current set and one for the branch. Why do both exist?
This should be fixed with the latest version of strider-node. The dirkeeper was working incorrectly.
Hashes are from the initiated jobs, while the others are from manual triggers.
Looks like we don't use dirkeeper, and we need to implement a deleting strategy..
I would propose something simple as appending the branch name after the md5 hash. When a change is detected that triggers npm install
, first delete any existing hash-branchname
.
Could be done in the cachier after the update: https://github.com/Strider-CD/strider-simple-runner/blob/master/lib/cachier.js#L23 or locally here https://github.com/Strider-CD/strider-node/blob/master/worker.js#L62
I just noticed that I have multiple cached node_modules for several projects on our build system.
I'm not quite sure this many caches should exist.
Was: https://github.com/Strider-CD/strider/issues/853