From 77d8d90cd3de275b91a94ae38c0af0bc95175e1e Mon Sep 17 00:00:00 2001 From: Vitaliy Potyarkin Date: Wed, 15 Jan 2025 10:57:58 +0300 Subject: [PATCH] Gather debug information from CI environment Signed-off-by: Vitaliy Potyarkin --- .forgejo/workflows/tests.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml index d3219d850..09c452ba4 100644 --- a/.forgejo/workflows/tests.yml +++ b/.forgejo/workflows/tests.yml @@ -48,21 +48,30 @@ jobs: run: |- podman-service.sh podman info - + mkdir /config printf "[TestFrostFS]\ntype = frostfs\nendpoint = localhost:8080\nwallet = /config/wallet.json\nplacement_policy = REP 1\nrequest_timeout = 20s\nconnection_timeout = 21s" > /config/rclone.conf - + echo "run frostfs aio container" docker run -d --net=none --name aio $AIO_IMAGE:$AIO_VERSION --restart always -p 8080:8080 + docker logs -f aio & echo "issue creds" docker exec aio /usr/bin/issue-creds.sh native echo "copy wallet" docker cp aio:/config/user-wallet.json /config/wallet.json - + echo "wait for frostfs to start" until docker exec aio curl --fail http://localhost:8083 > /dev/null 2>&1; do sleep 0.2; done; go test -v github.com/rclone/rclone/backend/frostfs - docker remove aio --force \ No newline at end of file + docker remove aio --force + + - name: Gather debug information + if: failure() + shell: /bin/bash -x "{0}" + run: |- + ss -tnlp + docker ps -a + docker inspect aio