From 3dcd7d168364f8c91fef86d26e8805df9894d26f Mon Sep 17 00:00:00 2001 From: Andrei Aaron Date: Sun, 5 Oct 2025 22:58:04 +0300 Subject: [PATCH] ci: fix nightly (#3431) ci: fix nightly and show logs for nightly sync tests Signed-off-by: Andrei Aaron --- test/blackbox/sync_harness.bats | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/test/blackbox/sync_harness.bats b/test/blackbox/sync_harness.bats index d684d0a9..24036c88 100644 --- a/test/blackbox/sync_harness.bats +++ b/test/blackbox/sync_harness.bats @@ -91,13 +91,22 @@ EOF } EOF zot_serve ${ZOT_MINIMAL_PATH} ${zot_minimal_config_file} - wait_zot_reachable ${zot_sync_per_cfg_port} + wait_zot_reachable ${zot_minimal_port} } function teardown_file() { zot_stop_all } +function teardown() { + local zot_minimal_log_file="${BATS_FILE_TMPDIR}/zot-minimal/zot.log" + local zot_sync_log_file="${BATS_FILE_TMPDIR}/zot-per/zot.log" + echo "zot minimal logs" + cat ${zot_minimal_log_file} + echo "zot sync logs" + cat ${zot_sync_log_file} +} + # sync zb images @test "run zb benchmark and let zot sync all repos" { zot_sync_per_cfg_port=`cat ${BATS_FILE_TMPDIR}/zot_sync.port` @@ -108,11 +117,11 @@ function teardown_file() { local zot_minimal_root_dir=${BATS_FILE_TMPDIR}/zot-minimal local ZOT_LOG_FILE=${zot_sync_per_root_dir}/zot.log - zb_run "http://127.0.0.1:${zot_sync_per_cfg_port}" + zb_run "http://127.0.0.1:${zot_minimal_port}" # start zot sync server zot_serve ${ZOT_PATH} ${zot_sync_per_config_file} - wait_zot_reachable ${zot_minimal_port} + wait_zot_reachable ${zot_sync_per_cfg_port} start=`date +%s` echo "waiting for sync to finish" >&3