Hi everyone, This patch adds preserving of mock configuration timestamps, so mock root cache is not rebuilt unnecessarily, shaving off about a minute of CI run time.
Nick
>From 0451699b7b7fb7a92151c00867f4036fc8feca8b Mon Sep 17 00:00:00 2001 From: Nikolai Kondrashov <[email protected]> Date: Wed, 3 Sep 2014 11:18:05 +0300 Subject: [PATCH 1/1] CI: Preserve mock config timestamps Preserve timestamps of mock configuration files when customizing them in CI to avoid unnecessary cache rebuilds. This reduces CI run time. --- contrib/ci/run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/ci/run b/contrib/ci/run index 519ab77..379b99f 100755 --- a/contrib/ci/run +++ b/contrib/ci/run @@ -148,8 +148,10 @@ function mock_privileged_conf() conf_dir=`mktemp --tmpdir --directory mock-config.XXXXXXXX` trap 'trap - RETURN; rm -R "$conf_dir";' RETURN - cp -r /etc/mock/* "$conf_dir"/ + # Preserve timestamps to avoid unnecessary cache rebuilds + cp -r --preserve=timestamps /etc/mock/* "$conf_dir"/ cat >> "${conf_dir}/${chroot}.cfg" + touch --reference="/etc/mock/${chroot}.cfg" "${conf_dir}/${chroot}.cfg" mock_privileged --configdir="$conf_dir" --root="$chroot" "$@" } -- 2.1.0
_______________________________________________ sssd-devel mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
