From 7e8e2222cd38737b20d9ddf912a6bc4ac18ef867 Mon Sep 17 00:00:00 2001 From: Jonas Termansen Date: Mon, 9 Nov 2020 20:01:49 +0000 Subject: [PATCH] [benchmark] Build dart2js platforms in try_benchmarks. This change synchronizes the try_benchmarks script with the commands currently used to build for benchmarking and adds a test that the IsolateSpawn benchmark continues to work. Change-Id: I37066fb8a246e0003bdccd7c4dbb5b84060b30f6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/170982 Reviewed-by: Martin Kustermann --- tools/bots/test_matrix.json | 4 ++++ tools/bots/try_benchmarks.sh | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/bots/test_matrix.json b/tools/bots/test_matrix.json index f8cbe1d62b1..dfe661f22d8 100644 --- a/tools/bots/test_matrix.json +++ b/tools/bots/test_matrix.json @@ -3200,6 +3200,8 @@ "--arch=ia32", "create_sdk", "runtime", + "dart2js_platform.dill", + "dart2js_nnbd_strong_platform.dill", "kernel-service.dart.snapshot" ] }, @@ -3234,6 +3236,8 @@ "runtime", "gen_snapshot", "dart_precompiled_runtime", + "dart2js_platform.dill", + "dart2js_nnbd_strong_platform.dill", "kernel-service.dart.snapshot", "dartdevc_test" ] diff --git a/tools/bots/try_benchmarks.sh b/tools/bots/try_benchmarks.sh index 8407171937d..ea827b41634 100755 --- a/tools/bots/try_benchmarks.sh +++ b/tools/bots/try_benchmarks.sh @@ -75,7 +75,7 @@ for command; do rm -f linux-x64_profile.tar.gz elif [ "$command" = linux-ia32-build ]; then # NOTE: These are duplicated in tools/bots/test_matrix.json, keep in sync. - ./tools/build.py --mode=release --arch=ia32 create_sdk runtime kernel-service.dart.snapshot + ./tools/build.py --mode=release --arch=ia32 create_sdk runtime dart2js_platform.dill dart2js_nnbd_strong_platform.dill kernel-service.dart.snapshot elif [ "$command" = linux-ia32-archive ]; then strip -w \ -K 'kDartVmSnapshotData' \ @@ -148,6 +148,7 @@ for command; do out/ReleaseIA32/dart-sdk \ out/ReleaseIA32/dart \ out/ReleaseIA32/gen_snapshot \ + out/ReleaseIA32/dart2js_nnbd_strong_platform.dill \ out/ReleaseIA32/kernel-service.dart.snapshot \ out/ReleaseIA32/run_vm_tests \ sdk \ @@ -195,7 +196,7 @@ EOF rm -rf tmp elif [ "$command" = linux-x64-build ]; then # NOTE: These are duplicated in tools/bots/test_matrix.json, keep in sync. - ./tools/build.py --mode=release --arch=x64 create_sdk runtime gen_snapshot dart_precompiled_runtime kernel-service.dart.snapshot dartdevc_test + ./tools/build.py --mode=release --arch=x64 create_sdk runtime gen_snapshot dart_precompiled_runtime dart2js_platform.dill dart2js_nnbd_strong_platform.dill kernel-service.dart.snapshot dartdevc_test elif [ "$command" = linux-x64-archive ]; then strip -w \ -K 'kDartVmSnapshotData' \ @@ -287,6 +288,7 @@ EOF out/ReleaseX64/dart-sdk \ out/ReleaseX64/dart \ out/ReleaseX64/gen_snapshot \ + out/ReleaseX64/dart2js_nnbd_strong_platform.dill \ out/ReleaseX64/kernel-service.dart.snapshot \ out/ReleaseX64/run_vm_tests \ third_party/d8/linux/x64 \ @@ -357,6 +359,7 @@ EOF out/ReleaseX64/run_vm_tests --dfe=out/ReleaseX64/kernel-service.dart.snapshot --sound-null-safety --enable-experiment=non-nullable UseDartApi out/ReleaseX64/dart --profile-period=10000 --packages=.packages benchmarks/Example/dart2/Example.dart out/ReleaseX64/dart --sound-null-safety --enable-experiment=non-nullable --profile-period=10000 --packages=.packages benchmarks/Example/dart/Example.dart + out/ReleaseX64/dart --profile-period=10000 --packages=.packages benchmarks/IsolateSpawn/dart2/IsolateSpawn.dart cd .. rm -rf tmp else