https://github.com/servo/servo/tree/master/etc/ci/performance
- Python3
- Clone the servo repo
- Compile release build
- Run
git_log_to_json.shin the servo repo, save the output asrevision.json
If you want to test the data submission code in submit_to_perfherder.py, you can setup a local treeherder VM. If you don't need to test submit_to_perfherder.py, you can skip this step.
- Add
192.168.33.10 local.treeherder.mozilla.orgto/etc/hosts git clone https://github.com/mozilla/treeherder; cd treeherdervagrant upvagrant ssh./bin/run_gunicorn
- Outside of vm, open
http://local.treeherder.mozilla.organd login to create an account vagrant ssh./manage.py create_credentials slyu [email protected] "description", the email has to match your logged in user. Remember to log-in through the Web UI once before you run this.- Open a file called
credential.json. Copy the clinet secrent to yourcredential.json. You can usecredential.json.exampleas a template.
- Clone this repo
- Download tp5n.zip, extract it to
page_load_test/ - Put your
servobinary,revision.jsonandresourcesfolder inservo/ - Run
prepare_manifest.shto tranform the tp5n manifest to our format python3 -m virtualenv venv; source venv/bin/activate; pip install treeherder-client- Run
test_all.sh - Test results are submitted to https://treeherder.allizom.org/#/jobs?repo=servo
- Install Firefox Aurora in your PATH
- Untar the
servo.tar.gzinfirefox/, make itfirefox/servo - Getting commit message:
- http://ftp.mozilla.org/pub/firefox/releases/
- http://hg.mozilla.org/releases/mozilla-release/
- The first time you run it, you need to use the GUI to setup everything, so enable X11 forwarding if you are running a headless server.
- In
about:config, setxpinstall.signatures.requiredtofalse - Make sure the test addon is ready
- Dismiss the "Set as default browser" dialog
- Close all resumed tabs
- In
- The testcase is from tp5, every testcase will run 20 times, and we take the median.
- Some of the tests will make Servo run forever, it's disabled right now. See servo/servo#11087
- Each testcase is a subtest on Perfherder, and their summary time is the geometric mean of all the subtests.
- Notice that the test is different from the Talos TP5 test we run for Gecko. So you can NOT conclude that Servo is "faster" or "slower" than Gecko from this test.
- We have a
master.cfgfor you to run it in buildbot. You can use theservo-linux1vagrant VM setup from servo/saltfs to run it. - You'll need to setup this repository manully in the VM, check the inline comments in
master.cfgfor detail.
pip install boto3python3 upload_log_to_s3.py <filename>
The following tests can be run by python -m pytest <filename>:
test_runner.pytest_submit_to_perfherder.py