sapling/.github/workflows/mononoke-integration_linux.yml
Lukasz Piatkowski e8098beff0 mononoke/integration tests: fix issue with missing dulwich for hggit ext (#59)
Summary: Pull Request resolved: https://github.com/facebookexperimental/eden/pull/59

Reviewed By: farnz

Differential Revision: D23783095

Pulled By: lukaspiatkowski

fbshipit-source-id: cb6a72ae3d8856a92945c28e4162c1808539206a
2020-09-19 05:47:30 -07:00

131 lines
3.9 KiB
YAML

name: Mononoke Integration Tests Linux
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- 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"
docker rmi $(docker image ls -aq)
df -h
- name: Check space
run: df -h
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
toolchain: 1.44.0
default: true
profile: minimal
- name: Install Python 2.7
uses: actions/setup-python@v2
with:
python-version: '2.7'
- name: Install Python 2 dependencies
run: |
python -m pip install --upgrade pip
pip install "dulwich==0.18.6"
- name: Install Apt-get dependencies
run: |
sudo apt-get install nmap tree
- name: Install system deps
run: sudo python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive eden_scm
- name: Build eden_scm dependencies
run: >-
python3 build/fbcode_builder/getdeps.py build
--allow-system-packages
--scratch-path /tmp/build
--only-deps
--src-dir=.
eden_scm
- name: Build eden_scm
run: >-
python3 build/fbcode_builder/getdeps.py build
--allow-system-packages
--scratch-path /tmp/build
--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 eden_scm_lib_edenapi_tools
run: >-
python3 build/fbcode_builder/getdeps.py build
--allow-system-packages
--scratch-path /tmp/build
--no-deps
--src-dir=.
eden_scm_lib_edenapi_tools
- name: Check space before cleanup
run: df -h
- name: Clean up eden_scm_lib_edenapi_tools build
run: |
rm -rf /tmp/build/build/eden_scm_lib_edenapi_tools/*
df -h
- name: Build mononoke dependencies
run: >-
python3 build/fbcode_builder/getdeps.py build
--allow-system-packages
--scratch-path /tmp/build
--only-deps
--src-dir=.
mononoke
- name: Build mononoke
run: >-
python3 build/fbcode_builder/getdeps.py build
--allow-system-packages
--scratch-path /tmp/build
--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:
python-version: '3.7'
- name: Install Python 3 dependencies
run: |
python -m pip install --upgrade pip
pip install click
- name: Check space before running tests
run: df -h
- name: Run Monononke integration tests
run: >-
PYTHONPATH="$PYTHONPATH:/opt/hostedtoolcache/Python/2.7.18/x64/lib/python2.7/site-packages"
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;
PYTHONPATH="$PYTHONPATH:/opt/hostedtoolcache/Python/2.7.18/x64/lib/python2.7/site-packages"
python3
eden/mononoke/tests/integration/run_tests_getdeps.py
/tmp/build/installed /tmp/build/build/mononoke_integration_test
--rerun-failed