about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2019-03-20 04:34:06 +0800
committerGitHub <noreply@github.com>2019-03-20 04:34:06 +0800
commitabdb7733f47d2cfe27a1f25275b16b06adb35144 (patch)
treee334871adcf3b8daadf96d9f009869c60ac1dabe /src/libstd/sys/unix/stack_overflow.rs
parent9da8fe4e020e0f9a0ba811cbb742cfaaba946ccf (diff)
parent07aee1df4427bcc2be5e9f6be5c853a0f6987b40 (diff)
downloadrust-abdb7733f47d2cfe27a1f25275b16b06adb35144.tar.gz
rust-abdb7733f47d2cfe27a1f25275b16b06adb35144.zip
Rollup merge of #59253 - kennytm:precise-docker-cache-hash, r=pietroalbini
Calculate Docker cache hash precisely from Dockerfile's dependencies

#58549 changed the Docker cache calculation to include every file under `src/ci/docker`, so that when files under `dist-x86_64-linux` is changed, its dependent image `dist-i686-linux` will also be rebuilt.

However, this ultraconservative solution caused the `dist-i686-linux` to be rebuilt every time an irrelevant Dockerfile (e.g. the PowerPC ones) is changed, which increases the building time beyond 3 hours and forcing a spurious but expected failure.

This commit instead parses the Dockerfile itself and look for the actual dependencies. The scripts needs to be copied into the Docker image, which must be done with the COPY command, so we just need to find all lines with a COPY command and add the source file into the hash calculator.

Note: this script only handles single-lined COPY command in the form `COPY src1 src2 src3 dst`, since these are the only variant used inside this repository.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions