ci: fix nightly (#3431)

ci: fix nightly and show logs for nightly sync tests

Signed-off-by: Andrei Aaron <andreifdaaron@gmail.com>
This commit is contained in:
Andrei Aaron
2025-10-05 22:58:04 +03:00
committed by GitHub
parent 86af38abfc
commit 3dcd7d1683
+12 -3
View File
@@ -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