Skip to content

Commit

Permalink
print disk usage for compose (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
guguducken committed Nov 7, 2024
1 parent 68353ca commit 5a0cc47
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/e2e-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ jobs:

- name: Print run attempt
run: echo "run attempt is ${{ github.run_attempt }}"

- name: Print Disk Usage Before Container Start
if: ${{ always() }}
run: |
set +e;
sudo df -h /*;
echo "===========================================";
sudo du -hs /var/lib/docker;
echo "===========================================";
sudo docker system df -v;
- name: docker compose launch-multi-cn
timeout-minutes: 10
Expand Down Expand Up @@ -55,6 +65,16 @@ jobs:
done
docker ps
- name: Print Disk Usage After Container Start
if: ${{ always() }}
run: |
set +e;
sudo df -h /*;
echo "===========================================";
sudo du -hs /var/lib/docker;
echo "===========================================";
sudo docker system df -v;
- name: Clone test-tool repository
# Node.js 12 actions are deprecated.
# For more information see:
Expand Down Expand Up @@ -85,6 +105,16 @@ jobs:
./run.sh -n -g -o -p $GITHUB_WORKSPACE/test/distributed/cases -s /test/distributed/resources -e pessimistic_transaction 2>&1
- name: Print Disk Usage Before Container Shutdown
if: ${{ always() }}
run: |
set +e;
sudo df -h /*;
echo "===========================================";
sudo du -hs /var/lib/docker;
echo "===========================================";
sudo docker system df -v;
- name: export log
if: ${{ failure() || cancelled()}}
run: |
Expand Down Expand Up @@ -131,6 +161,16 @@ jobs:
- name: Print run attempt
run: echo "run attempt is ${{ github.run_attempt }}"

- name: Print Disk Usage Before Container Start
if: ${{ always() }}
run: |
set +e;
sudo df -h /*;
echo "===========================================";
sudo du -hs /var/lib/docker;
echo "===========================================";
sudo docker system df -v;
- name: docker compose launch-multi-cn
timeout-minutes: 10
run: |
Expand All @@ -153,6 +193,17 @@ jobs:
sleep 1
done
docker ps
- name: Print Disk Usage After Container Start
if: ${{ always() }}
run: |
set +e;
sudo df -h /*;
echo "===========================================";
sudo du -hs /var/lib/docker;
echo "===========================================";
sudo docker system df -v;
- name: Clone test-tool repository
uses: actions/checkout@v4
with:
Expand All @@ -179,6 +230,17 @@ jobs:
echo "============================="
./run.sh -n -g -o -p $GITHUB_WORKSPACE/test/distributed/cases -s /test/distributed/resources -e optimistic 2>&1
- name: Print Disk Usage Before Container Shutdown
if: ${{ always() }}
run: |
set +e;
sudo df -h /*;
echo "===========================================";
sudo du -hs /var/lib/docker;
echo "===========================================";
sudo docker system df -v;
- name: export log
if: ${{ failure() || cancelled()}}
run: |
Expand Down

0 comments on commit 5a0cc47

Please sign in to comment.