Skip to content

Commit

Permalink
Feature 2597 disk space (#2598)
Browse files Browse the repository at this point in the history
* Adding free disk space script

* Added lines for free disk space

* Take 2 Adding to each job instead of job_controls

* Added fake space as to include ci-run-unit in this commit message

* Added fake space as to include ci-run-unit in this commit message and to resolve syntax error

* Added fake space as to include ci-run-unit in this commit message and to resolve syntax error

* Copied and pasted from METplus to resolve syntax error ci-run-unit

* Added extra space to trigger tests ci-run-unit

* Added extra space to trigger tests and attempted to fix all syntax error ci-run-unit

* Removing free disk space from check for differences

* Added bogus space ci-run-unit

* Removing unnecessary spaces
  • Loading branch information
jprestop authored Jul 3, 2023
1 parent 839aead commit e4ba356
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/jobs/free_disk_space.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#! /bin/bash

echo Checking disk usage before cleanup
df -h

printf "\nRemoving files as suggested by https://github.com/actions/virtual-environments/issues/2840"

sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"

printf "\nChecking disk usage after cleanup"

df -h
23 changes: 22 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Testing

# Compile MET for feature branches
# Run unit tests for pull requests
# Run unit tests for pull requests

on:

Expand Down Expand Up @@ -138,6 +138,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Free disk space
run: .github/jobs/free_disk_space.sh

- name: Run Unit Tests in Docker
run: .github/jobs/run_unit_docker.sh
env:
Expand Down Expand Up @@ -173,6 +176,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Free disk space
run: .github/jobs/free_disk_space.sh

- name: Run Unit Tests in Docker
run: .github/jobs/run_unit_docker.sh
env:
Expand Down Expand Up @@ -209,6 +215,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Free disk space
run: .github/jobs/free_disk_space.sh

- name: Run Unit Tests in Docker
run: .github/jobs/run_unit_docker.sh
env:
Expand Down Expand Up @@ -243,6 +252,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Free disk space
run: .github/jobs/free_disk_space.sh

- name: Download ref_config_leads output from artifact
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -286,6 +298,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Free disk space
run: .github/jobs/free_disk_space.sh

- name: Download 1a output from artifact
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -329,6 +344,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Free disk space
run: .github/jobs/free_disk_space.sh

- name: Download 1a output from artifact
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -403,6 +421,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Free disk space
run: .github/jobs/free_disk_space.sh

- name: Download data from previous jobs
uses: actions/download-artifact@v3

Expand Down

0 comments on commit e4ba356

Please sign in to comment.