Skip to content

Commit

Permalink
Maximize build spaces of all workflows by manually removing unnecessa…
Browse files Browse the repository at this point in the history
…ry resources (apache#5437)

(cherry picked from commit 951ce58)
  • Loading branch information
style95 authored and mtt-merz committed Oct 22, 2023
1 parent 01b357d commit 75cdda9
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/0-on-demand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ jobs:
uses: actions/checkout@v3
- name: "Setup"
run: ./tools/github/setup.sh
- name: Maximize free space
run: >
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/.ghcup
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check free space
run: df -h
- id: tests
name: Run Tests
run: "./tools/github/run${{ env.TEST_SUITE }}Tests.sh"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/1-unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ jobs:
uses: actions/checkout@v3
- name: "Setup"
run: ./tools/github/setup.sh
- name: Maximize free space
run: >
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/.ghcup
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check free space
run: df -h
- id: tests
name: Run Tests
run: "./tools/github/run${{ env.TEST_SUITE }}Tests.sh"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/2-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ jobs:
uses: actions/checkout@v3
- name: "Setup"
run: ./tools/github/setup.sh
- name: Maximize free space
run: >
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/.ghcup
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check free space
run: df -h
- id: tests
name: Run Tests
run: "./tools/github/run${{ env.TEST_SUITE }}Tests.sh"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/3-multi-runtime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ jobs:
uses: actions/checkout@v3
- name: "Setup"
run: ./tools/github/setup.sh
- name: Maximize free space
run: >
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/.ghcup
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check free space
run: df -h
- id: tests
name: Run Tests
run: "./tools/github/run${{ env.TEST_SUITE }}Tests.sh"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/4-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ jobs:
uses: actions/checkout@v3
- name: "Setup"
run: ./tools/github/setup.sh
- name: Maximize free space
run: >
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/.ghcup
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check free space
run: df -h
- id: tests
name: Run Tests
run: "./tools/github/run${{ env.TEST_SUITE }}Tests.sh"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/5-scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ jobs:
uses: actions/checkout@v3
- name: "Setup"
run: ./tools/github/setup.sh
- name: Maximize free space
run: >
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/.ghcup
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check free space
run: df -h
- id: tests
name: Run Tests
run: "./tools/github/run${{ env.TEST_SUITE }}Tests.sh"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/6-performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ jobs:
uses: actions/checkout@v3
- name: "Setup"
run: ./tools/github/setup.sh
- name: Maximize free space
run: >
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/.ghcup
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check free space
run: df -h
- run: ./tests/performance/preparation/deploy.sh
- run: TERM=dumb ./tests/performance/wrk_tests/latency.sh "https://172.17.0.1:10001" "$(cat ansible/files/auth.guest)" ./tests/performance/preparation/actions/noop.js 2m
continue-on-error: true
Expand Down

0 comments on commit 75cdda9

Please sign in to comment.