diff --git a/engine/src/flutter/ci/builders/linux_host_engine.json b/engine/src/flutter/ci/builders/linux_host_engine.json index 9c2945e1fc..e80f11c248 100644 --- a/engine/src/flutter/ci/builders/linux_host_engine.json +++ b/engine/src/flutter/ci/builders/linux_host_engine.json @@ -224,6 +224,19 @@ "--engine-capture-core-dump" ], "script": "flutter/testing/run_tests.py" + }, + { + "language": "bash", + "name": "Generate metrics test", + "script": "flutter/testing/benchmark/generate_metrics.sh" + }, + { + "language": "bash", + "name": "Upload metrics dry-run", + "parameters": [ + "--no-upload" + ], + "script": "flutter/testing/benchmark/upload_metrics.sh" } ] } diff --git a/engine/src/flutter/testing/benchmark/generate_metrics.sh b/engine/src/flutter/testing/benchmark/generate_metrics.sh index 3886c59587..80761055f9 100644 --- a/engine/src/flutter/testing/benchmark/generate_metrics.sh +++ b/engine/src/flutter/testing/benchmark/generate_metrics.sh @@ -4,14 +4,14 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # -# This script is expected to run from $ENGINE_PATH/src/out/host_release/ -# it is currently used only by automation to collect and upload metrics. +# This script expects $ENGINE_PATH to be set. It is currently used only +# by automation to collect and upload metrics. set -ex -./txt_benchmarks --benchmark_format=json > txt_benchmarks.json -./fml_benchmarks --benchmark_format=json > fml_benchmarks.json -./shell_benchmarks --benchmark_format=json > shell_benchmarks.json -./ui_benchmarks --benchmark_format=json > ui_benchmarks.json -./display_list_builder_benchmarks --benchmark_format=json > display_list_builder_benchmarks.json -./geometry_benchmarks --benchmark_format=json > geometry_benchmarks.json +$ENGINE_PATH/src/out/host_release/txt_benchmarks --benchmark_format=json > $ENGINE_PATH/src/out/host_release/txt_benchmarks.json +$ENGINE_PATH/src/out/host_release/fml_benchmarks --benchmark_format=json > $ENGINE_PATH/src/out/host_release/fml_benchmarks.json +$ENGINE_PATH/src/out/host_release/shell_benchmarks --benchmark_format=json > $ENGINE_PATH/src/out/host_release/shell_benchmarks.json +$ENGINE_PATH/src/out/host_release/ui_benchmarks --benchmark_format=json > $ENGINE_PATH/src/out/host_release/ui_benchmarks.json +$ENGINE_PATH/src/out/host_release/display_list_builder_benchmarks --benchmark_format=json > $ENGINE_PATH/src/out/host_release/display_list_builder_benchmarks.json +$ENGINE_PATH/src/out/host_release/geometry_benchmarks --benchmark_format=json > $ENGINE_PATH/src/out/host_release/geometry_benchmarks.json diff --git a/engine/src/flutter/testing/benchmark/upload_metrics.sh b/engine/src/flutter/testing/benchmark/upload_metrics.sh index a087c947df..c3f66e9e6d 100644 --- a/engine/src/flutter/testing/benchmark/upload_metrics.sh +++ b/engine/src/flutter/testing/benchmark/upload_metrics.sh @@ -5,7 +5,7 @@ # found in the LICENSE file. # This script is currently used only by automation to collect and upload -# metrics. +# metrics and expects $ENGINE_PATH to be set. set -ex @@ -37,14 +37,14 @@ DART="${DART_SDK_DIR}/bin/dart" cd "$SCRIPT_DIR" "$DART" --disable-dart-dev bin/parse_and_send.dart \ - --json ../../../out/host_release/txt_benchmarks.json "$@" + --json $ENGINE_PATH/src/out/host_release/txt_benchmarks.json "$@" "$DART" --disable-dart-dev bin/parse_and_send.dart \ - --json ../../../out/host_release/fml_benchmarks.json "$@" + --json $ENGINE_PATH/src/out/host_release/fml_benchmarks.json "$@" "$DART" --disable-dart-dev bin/parse_and_send.dart \ - --json ../../../out/host_release/shell_benchmarks.json "$@" + --json $ENGINE_PATH/src/out/host_release/shell_benchmarks.json "$@" "$DART" --disable-dart-dev bin/parse_and_send.dart \ - --json ../../../out/host_release/ui_benchmarks.json "$@" + --json $ENGINE_PATH/src/out/host_release/ui_benchmarks.json "$@" "$DART" --disable-dart-dev bin/parse_and_send.dart \ - --json ../../../out/host_release/display_list_builder_benchmarks.json "$@" + --json $ENGINE_PATH/src/out/host_release/display_list_builder_benchmarks.json "$@" "$DART" --disable-dart-dev bin/parse_and_send.dart \ - --json ../../../out/host_release/geometry_benchmarks.json "$@" + --json $ENGINE_PATH/src/out/host_release/geometry_benchmarks.json "$@"