deep_qa icon indicating copy to clipboard operation
deep_qa copied to clipboard

Investigate using cache better in CircleCI

Open matt-gardner opened this issue 8 years ago • 3 comments

Looks like our build scripts for CircleCI intentionally clear the cache before building the docs, which makes things take longer than they probably need to. It didn't use to matter much, because Travis was always way slower, but now sometimes CircleCI finishes after Travis. I don't know why clearing the cache is necessary; @nelson-liu, any particular reason you put that in there?

matt-gardner avatar Apr 29 '17 18:04 matt-gardner

yes.

we use a conda environment to build the docs, so rm -rf ~/.pyenv && rm -rf ~/virtualenvs is just to prevent any PATH conflicting things from inadvertently happening.

iirc to render math, I had to remove the binaries for tex-live and install it through that long command below; i'll look into alternatives.

to clarify: the line of code you linked does not remove anything that is cached that we use. I think the only thing we cache is the miniconda download, so caching apt-get stuff might help.

nelson-liu avatar Apr 29 '17 18:04 nelson-liu

in fact, 'texlive-binaries' isn't even installed by default in circle, so that command shouldn't really affect us; i'm guessing its the fact that we have to install those tex packages from apt-get...so caching those might help.

nelson-liu avatar Apr 29 '17 18:04 nelson-liu

Ok, thanks. This isn't super high priority, and we can fix it, so don't worry about it unless you really want to. I was just looking for some more context.

matt-gardner avatar Apr 29 '17 18:04 matt-gardner