From 08081777cb75f5b64e341d5985dd13c9cbf764f8 Mon Sep 17 00:00:00 2001 From: Katarina Strenkova Date: Thu, 14 Aug 2025 09:04:10 -0400 Subject: [PATCH] Add reusing Tempest stestr timing data This patch aims to help jobs save time when executing Tempest tests. This is done by reusing stestr timing data that are saved during the run. --- container-images/tcib/base/os/tempest/run_tempest.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/container-images/tcib/base/os/tempest/run_tempest.sh b/container-images/tcib/base/os/tempest/run_tempest.sh index 8554a17c..5fc3e313 100644 --- a/container-images/tcib/base/os/tempest/run_tempest.sh +++ b/container-images/tcib/base/os/tempest/run_tempest.sh @@ -349,6 +349,10 @@ function run_tempest { upload_extra_images + if [[ -n "${TEMPEST_TIMING_DATA_URL:-}" ]]; then + curl -L "${TEMPEST_TIMING_DATA_URL}" | tar -xz --strip-components=1 -C "${TEMPEST_DIR}/.stestr" + fi + mkdir -p "${TEMPEST_LOGS_DIR}" discover_tempest_config ${TEMPESTCONF_ARGS} ${TEMPESTCONF_OVERRIDES} \ @@ -444,7 +448,7 @@ function save_config_files { cp -f "${TEMPEST_DIR}/etc/"*.{conf,ini,txt,yaml} "${TEMPEST_LOGS_DIR}/etc" cp -f "${TEMPEST_DIR}/.stestr.conf" "${TEMPEST_LOGS_DIR}/stestr.conf" - cp -rf "${TEMPEST_DIR}/.stestr" "${TEMPEST_LOGS_DIR}/stestr" + tar -czf "${TEMPEST_LOGS_DIR}/stestr.tar.gz" -C "${TEMPEST_DIR}" .stestr }