Skip to content

Commit 0808177

Browse files
committed
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.
1 parent f85dfbc commit 0808177

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

container-images/tcib/base/os/tempest/run_tempest.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ function run_tempest {
349349

350350
upload_extra_images
351351

352+
if [[ -n "${TEMPEST_TIMING_DATA_URL:-}" ]]; then
353+
curl -L "${TEMPEST_TIMING_DATA_URL}" | tar -xz --strip-components=1 -C "${TEMPEST_DIR}/.stestr"
354+
fi
355+
352356
mkdir -p "${TEMPEST_LOGS_DIR}"
353357

354358
discover_tempest_config ${TEMPESTCONF_ARGS} ${TEMPESTCONF_OVERRIDES} \
@@ -444,7 +448,7 @@ function save_config_files {
444448
cp -f "${TEMPEST_DIR}/etc/"*.{conf,ini,txt,yaml} "${TEMPEST_LOGS_DIR}/etc"
445449

446450
cp -f "${TEMPEST_DIR}/.stestr.conf" "${TEMPEST_LOGS_DIR}/stestr.conf"
447-
cp -rf "${TEMPEST_DIR}/.stestr" "${TEMPEST_LOGS_DIR}/stestr"
451+
tar -czf "${TEMPEST_LOGS_DIR}/stestr.tar.gz" -C "${TEMPEST_DIR}" .stestr
448452
}
449453

450454

0 commit comments

Comments
 (0)