build-image
build-image copied to clipboard
`test-tools/test-build.sh` doesn't call `cache_artifacts`
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.
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.