Skip to content

Commit f5b3e71

Browse files
authored
Clean up disk space and restore ubuntu 22.04 runner (#373)
* try cleaning up disk space * reuse ubuntu22.04 * check os * minor fix * minor update for message * update command
1 parent eea1eb2 commit f5b3e71

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/actions/test/action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,18 @@ runs:
2424

2525
- name: clean up
2626
run: |
27-
echo "cleaning up wheel files..."
27+
echo "cleaning up disk space..."
2828
find . -type f -name '*.whl' -exec rm -rf {} \;
29+
python -m pip cache purge
30+
sudo rm -rf /usr/local/.ghcup
31+
sudo rm -rf /opt/hostedtoolcache/CodeQL
32+
sudo rm -rf /usr/local/lib/android/sdk/ndk
33+
sudo rm -rf /usr/share/dotnet
34+
sudo rm -rf /opt/ghc
35+
sudo rm -rf /usr/local/share/boost
36+
if [[ "$(cat /etc/issue)" =~ Ubuntu ]]; then
37+
sudo apt-get clean
38+
fi
2939
df -h
3040
shell: bash
3141

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ jobs:
135135
whl: ${{ inputs.whl }}
136136
test_status: ${{ steps.test.outputs.status }}
137137

138-
139138
- name: copy results to GCP
140139
run: |
141140
gcloud storage cp test-results/report.xml ${{ secrets.GCP_BUILD_ML_ASSETS2 }}/${{ github.run_id }}/test-results/report-${{ inputs.test_label }}.xml

.github/workflows/trigger-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
gitref: ${{ inputs.gitref || 'main' }}
3434
push_to_pypi: ${{ (github.event.schedule == '30 0 * * *') || inputs.push_to_pypi || false }}
3535
test_configs: '[{"python":"3.11.4","label":"ubuntu-24.04","timeout":"40"},
36-
{"python":"3.10.12","label":"ubuntu-24.04","timeout":"40"},
36+
{"python":"3.10.12","label":"ubuntu-22.04","timeout":"40"},
3737
{"python":"3.9.17","label":"k8s-h100-solo","timeout":"40"},
3838
{"python":"3.12.6","label":"k8s-a100-duo","timeout":"40"}]'
3939

0 commit comments

Comments
 (0)