From fa8ea481f043a46d710c0b96ed726fa069f3c434 Mon Sep 17 00:00:00 2001 From: Blake Friedman Date: Mon, 17 Jun 2024 04:30:47 -0700 Subject: [PATCH] Add more disk visibility on GHA Android builds (#45005) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45005 We've had failures owing to running out of disk space, however this isn't a stable failure. Adding more data about disk availability and utilisation to help debug these issues. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D58667190 fbshipit-source-id: 3d5f7cc985ac71044818f7b5663ef7400ad691b5 --- .github/workflows/test-all.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index a3d027e5e62..75f87d27bea 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -836,6 +836,16 @@ jobs: run: | cd packages/react-native-codegen yarn run build + - name: Monitor Disk utilization (before build) + shell: bash + if: always() + run: | + echo "On Runner:" + df -h + echo "Root:" + du -hs * + echo "Projects folder:" + du -hs projects/* - name: Build the Helloworld application for ${{ matrix.flavor }} with Architecture set to ${{ matrix.architecture }}, and using the ${{ matrix.jsengine }} JS engine. shell: bash run: | @@ -851,13 +861,16 @@ jobs: args+=(--prod) fi yarn build android "${args[@]}" -P reactNativeArchitectures="$TARGET_ARCHITECTURE" - - name: Monitor Disk utilization + - name: Monitor Disk utilization (after build) shell: bash + if: always() run: | - echo "On Runner:\n==========" + echo "On Runner:" df -h - echo "In Project:\n===========" + echo "Root:" du -hs * + echo "Projects folder:" + du -hs projects/* - name: Upload artifact uses: actions/upload-artifact@v4.3.1 with: