Skip to content

Commit 57e8fbb

Browse files
authored
build: clean up __pycache__ directories (googleapis#12876)
This PR fixes the `No space left on device` error seen in presubmits in googleapis#12860 The specific failure can be seen in [this presubmit run](https://github.com/googleapis/google-cloud-python/actions/runs/9797847588?pr=12860) I tested the fix in googleapis#12875
1 parent c15664f commit 57e8fbb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/run_single_test.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ case ${TEST_TYPE} in
5757
# `[Errno 28] No space left on device`
5858
# See https://github.com/googleapis/google-cloud-python/issues/12271
5959
rm -rf docs/_build
60-
find . | grep -E "(__pycache__)" | xargs rm -rf
6160
;;
6261
docfx)
6362
nox -s docfx
@@ -68,7 +67,6 @@ case ${TEST_TYPE} in
6867
# `[Errno 28] No space left on device`
6968
# See https://github.com/googleapis/google-cloud-python/issues/12271
7069
rm -rf docs/_build
71-
find . | grep -E "(__pycache__)" | xargs rm -rf
7270
;;
7371
prerelease)
7472
nox -s prerelease_deps-3.12
@@ -105,4 +103,8 @@ case ${TEST_TYPE} in
105103
esac
106104
esac
107105

106+
# Clean up `__pycache__` directories to avoid error `No space left on device`
107+
# seen when running tests in Github Actions
108+
find . | grep -E "(__pycache__)" | xargs rm -rf
109+
108110
exit ${retval}

0 commit comments

Comments
 (0)