Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print disk usage in 2.0-dev branch #177

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 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,22 @@ 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: Clean Docker Image Build Cache
if: ${{ always() }}
run: |
sudo docker builder prune -f -a;
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 +111,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 +167,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 +199,24 @@ 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: Clean Docker Image Build Cache
if: ${{ always() }}
run: |
sudo docker builder prune -f -a;
echo "===========================================";
sudo docker system df -v;

- name: Clone test-tool repository
uses: actions/checkout@v4
with:
Expand All @@ -179,6 +243,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