Skip to content

Commit

Permalink
Dump more info
Browse files Browse the repository at this point in the history
  • Loading branch information
tehampson committed Oct 11, 2023
1 parent 7fc505a commit bdd2f05
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions scripts/dump_diskspace_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,27 @@
# limitations under the License.
#

set -e
# This script is meant to run in github CI to dump information related to
# disk space usage. Currently there is a heisenbug related to running out
# of disk space. Dumping information below might help us get a better
# understanding of how disk space is used in github CI.

df -h
echo "Disk Space Usage:"
df -h

listOfDirectories=("third_party/" ".environment/" "out/")

pipCacheDir=$(python -m pip cache dir)
exitcode=$?

if [ $exitcode -eq 0 ]; then
listOfDirectories+=($pipCacheDir)
fi


echo "Storage Space Used By Key Directories:"
for directory in ${listOfDirectories[@]}; do
if [ -d "$directory" ]; then
du -d1 -h $directory
fi
done

0 comments on commit bdd2f05

Please sign in to comment.