From b0888155794af54749b4cca94c67d1fb7f8b6d81 Mon Sep 17 00:00:00 2001 From: helenxie-bit Date: Sun, 29 Sep 2024 10:50:20 -0700 Subject: [PATCH] check memory usage Signed-off-by: helenxie-bit --- .github/workflows/e2e-test-tune-api.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/e2e-test-tune-api.yaml b/.github/workflows/e2e-test-tune-api.yaml index 01245fab0b5..7f3ceea9884 100644 --- a/.github/workflows/e2e-test-tune-api.yaml +++ b/.github/workflows/e2e-test-tune-api.yaml @@ -33,13 +33,32 @@ jobs: echo "Checking disk space usage before e2e test..." df -h # Run 'df' to check free disk space + - name: Monitor Memory Usage Before Run + if: always() + run: free -h + + - name: Monitor Docker Container Memory Usage + if: always() + run: | + docker stats --no-stream + # Step 3: Run e2e test with tune API - name: Run e2e test with tune API + if: always() uses: ./.github/workflows/template-e2e-test with: tune-api: true training-operator: true + - name: Monitor Memory Usage After Run + if: always() + run: free -h + + - name: Monitor Docker Container Memory Usage + if: always() + run: | + docker stats --no-stream + # Step 4: Check Disk Space After Test - name: Check Disk Space After Test if: always() # Run this step even if previous steps fail