Details
Description
Whenever bin/deploy is ran, it will attempt to reinstall a conda environment even if that exact conda environment is already deployed. On jenkins workers for linux, this is really slow because the transactions are very slow over networked file systems due to the large amount of small files.
Some kind of fast path could probably be created - particularly when we are using lock files. Simply verifying an existing environment has the same conda list --explicit output that the environment we are asking to install should be enough to bypass the extra step.
From my understanding, especially in Jenkins, nothing is going to change the environment.
Therefore, we could just check if the environment exists, and avoid re-deploying in case it is.
Or we could add a flag to force: do not redeploy if it exists, so we keep the current behavior as default.