diff options
author | Eric Anholt <[email protected]> | 2020-06-02 16:14:36 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-09 18:28:18 +0000 |
commit | 3d5429d646136cdd3b8abe10f4b8d1f261472414 (patch) | |
tree | 39dab0d0207aec438751d58b65749e7c02232c65 /.gitlab-ci | |
parent | 9e11cce5178c48856a5ea846ee4ee9435d040980 (diff) |
ci: Use rsync for initial nfsroot population on cheza.
rm -rf and then copying over all the contents again is a waste of time
when we'll almost always be using the same rootfs. Saves about 30s of job
time.
Closes: #3065
Reviewed-by: Christian Gmeiner <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5266>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/bare-metal/cros-servo.sh | 2 | ||||
-rwxr-xr-x | .gitlab-ci/bare-metal/fastboot.sh | 6 | ||||
-rw-r--r-- | .gitlab-ci/bare-metal/rootfs-setup.sh | 4 | ||||
-rw-r--r-- | .gitlab-ci/container/arm_test-base.sh | 1 |
4 files changed, 7 insertions, 6 deletions
diff --git a/.gitlab-ci/bare-metal/cros-servo.sh b/.gitlab-ci/bare-metal/cros-servo.sh index 6caff73bb93..0b978df73a3 100755 --- a/.gitlab-ci/bare-metal/cros-servo.sh +++ b/.gitlab-ci/bare-metal/cros-servo.sh @@ -49,7 +49,7 @@ set -ex # Create the rootfs in the NFS directory. rm to make sure it's in a pristine # state, since it's volume-mounted on the host. -rm -rf /nfs/* +rsync -a --delete $BM_ROOTFS/ /nfs/ mkdir -p /nfs/results . $BM/rootfs-setup.sh /nfs diff --git a/.gitlab-ci/bare-metal/fastboot.sh b/.gitlab-ci/bare-metal/fastboot.sh index f7db884c9f0..72d38b4d718 100755 --- a/.gitlab-ci/bare-metal/fastboot.sh +++ b/.gitlab-ci/bare-metal/fastboot.sh @@ -47,8 +47,10 @@ fi set -ex -# Create the rootfs in a temp dir -mkdir rootfs +# Copy the rootfs to a temporary for our setup, as I believe changes to the +# container can end up impacting future runs. +cp -Rp $BM_ROOTFS/ rootfs + . .gitlab-ci/bare-metal/rootfs-setup.sh rootfs # Finally, pack it up into a cpio rootfs. Skip the vulkan CTS since none of diff --git a/.gitlab-ci/bare-metal/rootfs-setup.sh b/.gitlab-ci/bare-metal/rootfs-setup.sh index 1187971a190..0181a4e8fac 100644 --- a/.gitlab-ci/bare-metal/rootfs-setup.sh +++ b/.gitlab-ci/bare-metal/rootfs-setup.sh @@ -2,9 +2,7 @@ rootfs_dst=$1 -# Copy the rootfs to a temporary for our setup, as I believe changes to the -# container can end up impacting future runs. -cp -Rp $BM_ROOTFS/. $rootfs_dst +mkdir -p $rootfs_dst/results # Set up the init script that brings up the system. cp $BM/init.sh $rootfs_dst/init diff --git a/.gitlab-ci/container/arm_test-base.sh b/.gitlab-ci/container/arm_test-base.sh index 1454d51996d..5f5be0464fe 100644 --- a/.gitlab-ci/container/arm_test-base.sh +++ b/.gitlab-ci/container/arm_test-base.sh @@ -30,6 +30,7 @@ apt-get install -y --no-remove \ python3.7 \ pkg-config \ procps \ + rsync \ u-boot-tools \ unzip |