mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
[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: Jenny Li <jing.li@zilliz.com>
This commit is contained in:
parent
8f52e5b6c7
commit
2256e94ea8
8
.github/workflows/main.yaml
vendored
8
.github/workflows/main.yaml
vendored
@ -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: |
|
||||
|
Loading…
Reference in New Issue
Block a user