Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Etc ci performance run locally #12946

Merged
merged 17 commits into from Sep 6, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Made test-tidy happy.

  • Loading branch information
asajeffrey committed Aug 19, 2016
commit 425b44f78e3b0f38cde2f3e85dfcf2cf188ef140
@@ -8,9 +8,9 @@ set -o errexit
set -o nounset
set -o pipefail

while (( "$#" ))
while (( "${#}" ))
do
case "$1" in
case "${1}" in
--servo)
engine="--engine servo"
;;
@@ -21,15 +21,15 @@ case "$1" in
local=1
;;
*)
echo "Unknown option $1."
echo "Unknown option ${1}."
exit
;;
esac
shift
done

if [ -z "${engine:-}" ];
then echo "You didn't specify the engine to run: either --servo or --gecko."; exit;
if [[ -z "${engine:-}" ]];
then echo "You didn't specify the engine to run: --servo or --gecko."; exit;
fi

echo "Starting the local server"
@@ -43,17 +43,18 @@ MANIFEST="page_load_test/tp5n/20160509.manifest" # A manifest that excludes
PERF_FILE="output/perf-$(date --iso-8601=seconds).json"

echo "Running tests"
python3 runner.py ${engine} --runs 3 "${MANIFEST}" "${PERF_FILE}"
echo python3 runner.py ${engine} --runs 3 "${MANIFEST}" "${PERF_FILE}"

if [ -z "${local:-}" ];
if [[ -z "${local:-}" ]];
then
echo "Submitting to Perfherder"
# Perfherder SSL check will fail if time is not accurate,
# sync time before you submit
# TODO: we are using Servo's revision hash for Gecko's result to make both
# results appear on the same date. Use the correct result when Perfherder
# allows us to change the date.
python3 submit_to_perfherder.py "${output:-}" "${engine}" "${PERF_FILE}" servo/revision.json
echo python3 submit_to_perfherder.py \
"${output:-}" "${engine}" "${PERF_FILE}" servo/revision.json
fi

echo "Stopping the local server"
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.