You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get disk space usage and throw an error for low disk space (#693)
This leverages `setup-miniconda` to print out the disk usage and throw an error when the available space is less than a certain amount (3GB)
This PR doesn't attempt to clean up disk space pending some discussion on pytorch/pytorch#84841
if [ "$AVAIL_IN_GB" -lt "$MINIMUM_AVAILABLE_SPACE_IN_GB" ]; then
87
+
echo "There is only $AVAIL free space left in $MOUNT, which is less than the minimum requirement of ${MINIMUM_AVAILABLE_SPACE_IN_GB}Gi. Please help create an issue to PyTorch Release Engineering via https://github.com/pytorch/test-infra/issues and provide the link to the workflow run."
88
+
exit 1;
89
+
else
90
+
echo "There is $AVAIL free space left in $MOUNT, continue"
0 commit comments