2020-07-16 22:10:30 +03:00
|
|
|
name: Mononoke Integration Tests Mac
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: macOS-latest
|
|
|
|
env:
|
|
|
|
DEVELOPER_DIR: /Applications/Xcode_10.3.app/Contents/Developer
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Check space
|
|
|
|
run: df -h
|
|
|
|
- name: Install Rust Stable
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2020-07-17 10:32:13 +03:00
|
|
|
toolchain: 1.44.0
|
2020-07-16 22:10:30 +03:00
|
|
|
default: true
|
|
|
|
profile: minimal
|
|
|
|
- name: Install Python 2.7
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '2.7'
|
2020-09-09 17:24:44 +03:00
|
|
|
- name: Install Brew dependencies
|
|
|
|
run: |
|
2020-09-10 11:55:22 +03:00
|
|
|
brew install bash coreutils curl-openssl gnu-sed grep jq nmap
|
2020-07-16 22:10:30 +03:00
|
|
|
- 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: Build mononoke dependencies
|
|
|
|
run: >-
|
|
|
|
python3 build/fbcode_builder/getdeps.py build
|
2020-07-17 10:32:13 +03:00
|
|
|
--allow-system-packages
|
2020-07-16 22:10:30 +03:00
|
|
|
--scratch-path /tmp/build
|
|
|
|
--only-deps
|
|
|
|
--src-dir=.
|
|
|
|
mononoke
|
|
|
|
- name: Build mononoke
|
|
|
|
run: >-
|
|
|
|
python3 build/fbcode_builder/getdeps.py build
|
2020-07-17 10:32:13 +03:00
|
|
|
--allow-system-packages
|
2020-07-16 22:10:30 +03:00
|
|
|
--scratch-path /tmp/build
|
|
|
|
--no-deps
|
|
|
|
--src-dir=.
|
|
|
|
mononoke
|
|
|
|
- name: Install Python 3.7
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.7'
|
|
|
|
- name: Install Python dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install click
|
|
|
|
- name: Check space
|
|
|
|
run: df -h
|
|
|
|
- name: Run Monononke integration tests
|
|
|
|
run: |
|
2020-07-24 19:04:37 +03:00
|
|
|
export PATH="/usr/local/opt/curl-openssl/bin:$PATH"
|
2020-07-16 22:10:30 +03:00
|
|
|
python3 eden/mononoke/tests/integration/run_tests_getdeps.py /tmp/build/installed /tmp/build/build/mononoke_integration_test
|
2020-07-28 00:32:57 +03:00
|
|
|
continue-on-error: true
|
|
|
|
- name: Rerun failed Monononke integration tests (reduce flakiness)
|
|
|
|
run: |
|
|
|
|
cat eden/mononoke/tests/integration/.test* || true
|
|
|
|
export PATH="/usr/local/opt/curl-openssl/bin:$PATH"
|
|
|
|
python3 eden/mononoke/tests/integration/run_tests_getdeps.py /tmp/build/installed /tmp/build/build/mononoke_integration_test --rerun-failed
|