未验证 提交 2256e94e 编写于 作者: J Jenny Li 提交者: GitHub

[skip e2e] Get restart count for containers for debug info (#15994)

Restart count for each container is the clue to analysis the reason why ut failed
Signed-off-by: NJenny Li <jing.li@zilliz.com>
上级 8f52e5b6
......@@ -67,6 +67,14 @@ jobs:
CHECK_BUILDER: "1"
run: |
./build/builder.sh /bin/bash -c "make check-proto-product && make codecov"
- name: Get the status & restart count for containers when ut failed
if: ${{ failure() }}
run: |
echo "----show current status for each container---"
docker ps --format "table {{.Names}}\t\t{{.Image}}\t\t{{.Status}}"
for container in $(docker ps --format "table {{.Names}}" | grep -v "NAMES"); do
echo "restart count for ${container} is $(docker inspect ${container} --format '{{json .RestartCount}}')"
done
- name: Get pulsar/minio/etcd logs when ut failed
if: ${{ failure() }}
run: |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册