Repository navigation
Bug 10452 - Page Load Time Test Runner - #11107
Conversation
|
Heads up! This PR modifies the following files:
|
|
cc @autrilla |
| print("Running test:") | ||
| print(test_cmd) | ||
| print("Timeout:{}".format(timeout)) | ||
| log = "" |
There was a problem hiding this comment.
Why aren't you simply returning subprocess.check_output here?
|
I skimmed this and I'd like to make some review comments in a few days when my final projects are turned in. |
|
New code was committed to pull request. |
|
@autrilla I'm updating the README and runner in this patch. I might now merge it back to the servo-perf repo right now, so check here for updates. |
|
New code was committed to pull request. |
|
@aneeshusa r? |
|
@aneeshusa Do you have feedback on this? Otherwise, I'm going to land it and we can follow up with any changes you'd like. |
| @@ -0,0 +1,9 @@ | |||
| page_load_test/* | |||
There was a problem hiding this comment.
No need to include this file here.
|
Sorry about the long delay. Can you update this to include your new changes from the servo-perf repository? |
| except subprocess.CalledProcessError as e: | ||
| print("Unexpected Fail:") | ||
| print(e) | ||
| print("You man want to re-run the test manually:\n{}".format(test_cmd)) |
|
It looks like some of my review comments have already been taken care of in the servo-perf repo (like replacing median with the stdlib version), so I'll hold off on more review until you update this. |
|
|
||
| echo "Running tests" | ||
| python3 runner.py --runs 3 $MANIFEST $PERF_FILE | ||
| python3 runner.py $engine --runs 3 $MANIFEST $PERF_FILE |
There was a problem hiding this comment.
Running runner.py twice with different arguments seems like a bug.
|
I think a rebase (you can squash as well) will take care of the tidy failure. Also, take a look at the linting being added in #12295 and please make sure the scripts conform to it as I expect that to be merged soon. |
| ;; | ||
| esac | ||
|
|
||
| source venv/bin/activate |
There was a problem hiding this comment.
When we run this on the builders we'll likely either already be inside the virtualenv from mach or have system-wide-installed libraries available, so please remove this line. Probably would be good to update the docs to mention this.
Add python3 licence check template <!-- Please describe your changes on the following line: --> Add a python3 license template. #11107 uses python3 exclusively so we need this. --- <!-- 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 covered by test-tidy self test <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12650) <!-- Reviewable:end -->
|
Why is python3 required for this? Can't we use python2.7 with |
|
@metajack I don't expect to run this in the build process in the near future. Checking this into the tree is for people to run on their own computer, so I believe this won't impact our CI very much. We actually migrated from 2.7 to 3 because of previous review comments, so may we land this first and discuss the CI integration later? |
|
@shinglyu That sounds fine. |
|
It looks to me like this has been fully reviewed and is ready to go except for license issues reported by tidy: |
|
Just rebased to the latest master and clean up all the tidy errors. |
|
@shinglyu Why did you manually merge this? |
|
Oh no! I subconsciously click the merge button. Is there any way to revert this? |
|
I'm so sorry, I hope I didn't break any Ci stuff. |
|
If master is still green, I think it's fine to let this stand. If we have broken the three we should revert this or quickly fix in a followup. |
|
This does not touch any servo code, its some self-contained python code in the |
|
Ok, no harm done then since this had already been reviewed. We're looking into ways to prevent accidental merges like this. It seems GitHub may have added some new things since we last tried to do this. |
This is a minimal test runner for bug #10452 .
The main entry point is
test_all.sh, which will triggerrunner.py(run the performance test), then runsubmit_to_perfherder.py(push performance data to perfherder)There are also some utility script scattered around.
You can also check
README.mdfor detail.This change is