From 141e1b4d517c9bbeef3c7e0aa9bb54fabcf89283 Mon Sep 17 00:00:00 2001 From: Terence Hampson Date: Tue, 17 Oct 2023 19:01:47 -0400 Subject: [PATCH] Use continue-on-error for jobs trying to save space by removing dir (#29827) --- .github/actions/checkout-submodules-and-bootstrap/action.yaml | 3 ++- .github/workflows/full-android.yaml | 1 + .github/workflows/smoketest-android.yaml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/checkout-submodules-and-bootstrap/action.yaml b/.github/actions/checkout-submodules-and-bootstrap/action.yaml index f7db541c9f2140..d60a69ce6d62fd 100644 --- a/.github/actions/checkout-submodules-and-bootstrap/action.yaml +++ b/.github/actions/checkout-submodules-and-bootstrap/action.yaml @@ -33,8 +33,9 @@ runs: # there is roughly 1.4GB that remains in this cache that is useless from # this point onwards. shell: bash + continue-on-error: true run: | - du -sh $HOME/.cipd-cache-dir/ || true + du -sh $HOME/.cipd-cache-dir/ rm -rf $HOME/.cipd-cache-dir/ || echo "Removing cipd cache dir failed" - name: Dump disk info after checkout submodule & Bootstrap shell: bash diff --git a/.github/workflows/full-android.yaml b/.github/workflows/full-android.yaml index 73eff529be6576..319cce82a3c217 100644 --- a/.github/workflows/full-android.yaml +++ b/.github/workflows/full-android.yaml @@ -63,6 +63,7 @@ jobs: # This should not generally be needed, however android CI runs out of space # We do not need pigweed cross compile here because we use android NDK # compilers. Removing this package saves a significant amount of space. + continue-on-error: true run: | du -sh .environment/cipd/packages/arm rm -rf .environment/cipd/packages/arm diff --git a/.github/workflows/smoketest-android.yaml b/.github/workflows/smoketest-android.yaml index 456820deecedb3..6b493cbb990627 100644 --- a/.github/workflows/smoketest-android.yaml +++ b/.github/workflows/smoketest-android.yaml @@ -52,6 +52,7 @@ jobs: # This should not generally be needed, however android CI runs out of space # We do not need pigweed cross compile here because we use android NDK # compilers. Removing this package save significant amount of space. + continue-on-error: true run: | du -sh .environment/cipd/packages/arm rm -rf .environment/cipd/packages/arm