Skip to content

fix: reducing space consumption in GitHub runners #3900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
May 8, 2025
Merged
Changes from 2 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
eb327e1
feat: add disk space usage reporting and cleanup steps in local testi…
germa89 May 7, 2025
a7bafbf
feat: add disk space cleanup step before build in local testing workflow
germa89 May 7, 2025
1c9746d
chore: adding changelog file 3900.fixed.md [dependabot-skip]
pyansys-ci-bot May 7, 2025
7e6c2ba
feat: enhance disk space reporting in local testing workflow
germa89 May 7, 2025
0e6e683
Merge branch 'fix/reducing-space-consumption-in-github-runners' of ht…
germa89 May 7, 2025
7f52e41
fix: update disk usage reporting to show current directory size
germa89 May 7, 2025
c052c99
fix: improve disk usage reporting with error handling in local testin…
germa89 May 7, 2025
e3a04ea
fix: remove redundant disk usage checks and streamline reporting in l…
germa89 May 7, 2025
b194467
fix: replace cp with mv for log file handling in local and remote scr…
germa89 May 7, 2025
c88cb46
fix: update log file handling to create directories before moving fil…
germa89 May 7, 2025
e949dcc
Merge branch 'main' into fix/reducing-space-consumption-in-github-run…
germa89 May 7, 2025
23323c4
fix: update tar command to remove files after compression in log coll…
germa89 May 8, 2025
14ffadd
fix: update pytest arguments to exclude logs on passed tests in local…
germa89 May 8, 2025
34ed6fd
fix: add disk usage checks for runner directories in local testing wo…
germa89 May 8, 2025
2fb273f
Merge branch 'main' into fix/reducing-space-consumption-in-github-run…
germa89 May 8, 2025
1731c67
fix: add disk usage check for CodeQL directory in local testing workflow
germa89 May 8, 2025
a1b2591
Merge branch 'fix/reducing-space-consumption-in-github-runners' of ht…
germa89 May 8, 2025
28ccacc
fix: remove CodeQL directory after disk usage check in local testing …
germa89 May 8, 2025
a943ba6
fix: enhance disk usage reporting and cleanup for CodeQL directory in…
germa89 May 8, 2025
cfa510d
fix: streamline disk usage reporting and cleanup for CodeQL directory…
germa89 May 8, 2025
e5a848d
chore: Update .ci/collect_mapdl_logs_remote.sh
germa89 May 8, 2025
42cbf76
chore: adding changelog file 3900.fixed.md [dependabot-skip]
pyansys-ci-bot May 8, 2025
d92ab8d
fix: add pre-test and post-test disk space reporting and cleanup for …
germa89 May 8, 2025
a17d39f
Merge branch 'fix/reducing-space-consumption-in-github-runners' of ht…
germa89 May 8, 2025
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
53 changes: 53 additions & 0 deletions .github/workflows/test-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,20 @@ jobs:
password: ${{ secrets.token }}

steps:
- name: Free Disk Space Before Build
run: |
echo "Disk space before cleanup:"
df -h
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/lib/android/sdk/ndk
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo apt-get clean
echo "Disk space after cleanup:"
df -h

- name: "Install Git and checkout project"
uses: actions/checkout@v4.2.2
with:
Expand Down Expand Up @@ -288,4 +302,43 @@ jobs:
with:
name: ${{ inputs.file-name }}.xml
path: ./${{ inputs.file-name }}.xml

- name: "Show space consumption"
shell: bash
run: |
echo "Disk space:"
df -h
echo ""
echo "Disk usage"
echo "=========="
echo "Disk usage in current directory:"
du -sh *

echo "Disk usage in /home:"
du -sh /home/*

echo "Disk usage root /:"
du -sh /*

echo "Disk usage in /usr:"
du -sh /usr/*

echo "Disk usage in /tmp:"
du -sh /tmp/*

echo "Disk usage in /var/tmp:"
du -sh /var/tmp/*

- name: Free Disk Space Before Build
run: |
echo "Disk space before cleanup:"
df -h
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/lib/android/sdk/ndk
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo apt-get clean
echo "Disk space after cleanup:"
df -h
Loading