Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/forest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,6 @@ jobs:
if: always()
uses: jwalton/gh-docker-logs@v2
bootstrap-checks-lotus:
if: false
needs:
- build-ubuntu
name: Bootstrap checks - Lotus
Expand All @@ -585,6 +584,7 @@ jobs:
- uses: actions/download-artifact@v5
with:
name: "forest-${{ runner.os }}"
- run: ./scripts/optimize_disk_space_gh_worker.sh
- name: Run bootstrap tests
run: ./scripts/tests/bootstrapper/test_bootstrapper.sh lotus
timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}
Expand Down Expand Up @@ -646,7 +646,7 @@ jobs:
- local-devnet-check
# - local-devnet-curio-check
- bootstrap-checks-forest
# - bootstrap-checks-lotus
- bootstrap-checks-lotus
name: Integration tests status
runs-on: ubuntu-24.04
steps:
Expand Down
23 changes: 23 additions & 0 deletions scripts/optimize_disk_space_gh_worker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# This script checks the free disk space on a GitHub Actions runner
# and cleans up unnecessary files. To be used as a GitHub Actions workflow step
# when hitting disk space limits.
#
# DO NOT RUN IT LOCALLY as it may mess up your system.

if [[ -z "${GITHUB_ACTIONS}" ]]; then
echo "This script is intended to be run only in GitHub Actions runners."
exit 1
fi
Comment thread
LesnyRumcajs marked this conversation as resolved.

echo "Disk space before cleanup $(df -h)"

sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
sudo docker builder prune -a
Comment thread
LesnyRumcajs marked this conversation as resolved.

echo "Disk space after cleanup $(df -h)"
Loading