servo: Merge #19820 - Run servo-warc-tests as part of test-perf (from asajeffrey:test-perf-run-warc-tests); r=jdm

<!-- Please describe your changes on the following line: -->

Run the servo-warc-tests as part of performance testing.

Depends on https://github.com/servo/servo-warc-tests/pull/1

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because this is adding more test infrastructure

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 2024ef56b00d4fce0c173f4d47474d97d767379d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4398dd8ef8162dade4a0404b091e207cc9a2e814
This commit is contained in:
Alan Jeffrey 2018-01-23 17:48:07 -06:00
Родитель c84d12a090
Коммит 846ab0c3c8
2 изменённых файлов: 16 добавлений и 1 удалений

1
servo/etc/ci/performance/.gitignore поставляемый
Просмотреть файл

@ -4,6 +4,7 @@ output/*
.cache/*
page_load_test/tp5n/*
page_load_test/tp5n.zip
servo-warc-tests/*
venv/*
__pycache__/

Просмотреть файл

@ -26,13 +26,27 @@ else
echo "Found existing test cases, skipping download and unzip."
fi
WARC_DIR="./servo-warc-tests"
WARC_REPO="git@github.com:servo/servo-warc-tests.git"
# Clone the warc tests if they don't exist
if [[ ! -d ${WARC_DIR} ]]; then
git clone ${WARC_REPO}
fi
# Make sure we're running with an up-to-date warc test repo
git -C ${WARC_DIR} pull
virtualenv venv --python="$(which python3)"
PS1="" source venv/bin/activate
# `PS1` must be defined before activating virtualenv
pip install "boto3>=1.4.0"
pip install \
"boto3>=1.4.0" \
git+https://github.com/ikreymer/pywb.git
mkdir -p servo
mkdir -p output # Test result will be saved to output/perf-<timestamp>.json
./git_log_to_json.sh > servo/revision.json
./test_all.sh --servo ${*}
SERVO_DIR="../../.." ${WARC_DIR}/run-warc-tests.sh