Skip to content

Commit

Permalink
mononoke/integration CI: try to free up some space before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspiatkowski committed Sep 14, 2020
1 parent 7a4ea42 commit c9b1c49
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/mononoke-integration_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Check space
- name: Check space before cleanup
run: df -h
- name: Clean space as per https://github.com/actions/virtual-environments/issues/709
run: sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check space
run: df -h
run: |
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
docker rmi $(docker image ls -aq)
df -h
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -50,6 +52,12 @@ jobs:
--no-deps
--src-dir=.
eden_scm
- name: Check space before cleanup
run: df -h
- name: Clean up eden_scm build
run: |
rm -rf /tmp/build/build/eden_scm/*
df -h
- name: Build mononoke dependencies
run: >-
python3 build/fbcode_builder/getdeps.py build
Expand All @@ -66,6 +74,12 @@ jobs:
--no-deps
--src-dir=.
mononoke
- name: Check space before cleanup
run: df -h
- name: Clean up mononoke build
run: |
rm -rf /tmp/build/build/mononoke/*
df -h
- name: Install Python 3.7
uses: actions/setup-python@v2
with:
Expand All @@ -74,12 +88,14 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install click
- name: Check space
- name: Check space before running tests
run: df -h
- name: Run Monononke integration tests
run: |
python3 eden/mononoke/tests/integration/run_tests_getdeps.py /tmp/build/installed /tmp/build/build/mononoke_integration_test
continue-on-error: true
- name: Check space after running tests
run: df -h
- name: Rerun failed Monononke integration tests (reduce flakiness)
run: |
cat eden/mononoke/tests/integration/.test* || true
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/mononoke_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Check space
- name: Check space before cleanup
run: df -h
- name: Clean space as per https://github.com/actions/virtual-environments/issues/709
run: sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check space
run: df -h
run: |
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
docker rmi $(docker image ls -aq)
df -h
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
Expand All @@ -31,11 +33,15 @@ jobs:
run: python3 build/fbcode_builder/getdeps.py build --allow-system-packages --only-deps --src-dir=. mononoke
- name: Build mononoke
run: python3 build/fbcode_builder/getdeps.py build --allow-system-packages --no-deps --src-dir=. mononoke
- name: Check space
- name: Check space before cleanup
run: df -h
- name: Clean up mononoke build
run: |
rm -rf /tmp/build/build/mononoke/*
df -h
- name: Test mononoke
run: python3 build/fbcode_builder/getdeps.py test --allow-system-packages --src-dir=. mononoke
- name: Check space
- name: Check space after running tests
run: df -h
- name: Install Rust Beta
uses: actions-rs/toolchain@v1
Expand All @@ -55,5 +61,5 @@ jobs:
- name: Test mononoke with nightly toolchain
run: python3 build/fbcode_builder/getdeps.py test --allow-system-packages --src-dir=. mononoke
continue-on-error: true
- name: Check space
- name: Check space at the end
run: df -h

0 comments on commit c9b1c49

Please sign in to comment.