build-image icon indicating copy to clipboard operation
build-image copied to clipboard

`test-tools/test-build.sh` doesn't call `cache_artifacts`

Open ylemkimon opened this issue 3 years ago • 1 comments

From README.md:

Testing locally with cache

If you'd like to run a debugging build using our caching mechanisms, with verbose shell output, you can replace steps 2 and 3 above with the following command:

./test-tools/test-build.sh path/to/site/repo 'your build command'

I've expected test-build.sh to run cache_artifacts after the build command, but it doesn't and artifacts are not cached.

ylemkimon avatar Aug 03 '20 12:08 ylemkimon

I wonder if this is maybe due to how slow it is?

I tried with:

T=tmp/tmp.XXXXX ./test-tools/test-build.sh /path/to/my/repo 'yarn build; cache_artifacts'

And it was extremely slow. Probably due to it copying the files uncompressed between the docker container and my local files.

keegan-lillo avatar Sep 09 '20 04:09 keegan-lillo