Skip to content

Commit ec1b67f

Browse files
committed
fix: output full satellite logs in e2e and add early log capture
The e2e verify step was only showing tail -50 of satellite logs, hiding Zot startup errors. Now captures early startup logs after satellite launch and outputs full logs on failure to diagnose the Zot registry not starting. Also adds JSON_LOGGING=true to satellite container for structured logs. Signed-off-by: Prasanth Baskar <bupdprasanth@gmail.com>
1 parent 664f358 commit ec1b67f

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

taskfiles/e2e.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,16 @@ tasks:
424424
-e TOKEN="$TOKEN" \
425425
-e GROUND_CONTROL_URL="http://gc:8080" \
426426
-e HARBOR_REGISTRY_URL="{{.HARBOR_INTERNAL_URL}}" \
427+
-e JSON_LOGGING=true \
427428
-p 8585:8585 \
428429
satellite:e2e
429430
431+
echo "Waiting for satellite Zot registry to start..."
432+
sleep 5
433+
echo "--- Early satellite logs ---"
434+
docker logs satellite 2>&1 | head -30
435+
echo "---"
436+
430437
verify:
431438
desc: Verify image replication to local Zot
432439
cmds:
@@ -451,7 +458,9 @@ tasks:
451458
sleep 10
452459
done
453460
echo "Timeout waiting for replication"
454-
docker logs satellite 2>&1 | tail -50
461+
echo "--- Full satellite logs ---"
462+
docker logs satellite 2>&1
463+
echo "---"
455464
exit 1
456465
457466
generate-join-token:

0 commit comments

Comments
 (0)