Skip to content

Commit

Permalink
Free up more space on GitHub Actions CI. (#234)
Browse files Browse the repository at this point in the history
* Free up more space on GitHub Actions CI.

This is from GitHub support recommendation:
https://github.community/t5/GitHub-Actions/BUG-Strange-quot-No-space-left-on-device-quot-IOExceptions-on/m-p/47691/highlight/true#M6920

* Trigger fuzzers CI.

* Add more df's to see swap file size.

* Remove unneeded df's, only leave one at end.
  • Loading branch information
inferno-chromium authored Apr 17, 2020
1 parent 2177a4d commit 66ccc64
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def delete_docker_images():
"""Delete docker images."""
# TODO(metzman): Don't delete base-runner/base-builder so it
# doesn't need to be pulled for every target.
result = subprocess.run(['docker', 'images', '-q'],
result = subprocess.run(['docker', 'images', '-a', '-q'],
stdout=subprocess.PIPE,
check=True)
image_names = result.stdout.splitlines()
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/fuzzers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,20 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Clear unnecessary files
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker images -a -q)
df -h
- name: Setup Python environment
uses: actions/[email protected]
with:
python-version: 3.7

- name: Build Benchmarks
run: |
python .github/workflows/build.py $BENCHMARK_TYPE $FUZZER
2 changes: 1 addition & 1 deletion fuzzers/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_initialize_flags_in_environment(environ):


def test_initialize_flags_in_var():
"""Test that CFLAGS and CXXFLAGS are correctly initializedin variable."""
"""Test that CFLAGS and CXXFLAGS are correctly initialized in variable."""
env = {}
utils.initialize_flags(env)
assert env.get('CFLAGS') == ('-pthread -Wl,--no-as-needed -Wl,-ldl -Wl,-lm '
Expand Down

0 comments on commit 66ccc64

Please sign in to comment.