diff --git a/engine/src/flutter/.ci.yaml b/engine/src/flutter/.ci.yaml index e9dadecb33..7879c56776 100644 --- a/engine/src/flutter/.ci.yaml +++ b/engine/src/flutter/.ci.yaml @@ -319,6 +319,22 @@ targets: # at https://github.com/flutter/flutter/issues/152186. cores: "8" + - name: Linux linux_host_engine_test + recipe: engine_v2/engine_v2 + # TODO(matanlurey): https://github.com/flutter/flutter/issues/161406. + bringup: true + timeout: 120 + properties: + config_name: linux_host_engine_test + dependencies: >- + [ + {"dependency": "goldctl", "version": "git_revision:720a542f6fe4f92922c3b8f0fdcc4d2ac6bb83cd"} + ] + # Do not remove(https://github.com/flutter/flutter/issues/144644) + # Scheduler will fail to get the platform + drone_dimensions: + - os=Linux + - name: Linux linux_host_desktop_engine recipe: engine_v2/engine_v2 timeout: 120 diff --git a/engine/src/flutter/ci/builders/linux_host_engine_test.json b/engine/src/flutter/ci/builders/linux_host_engine_test.json new file mode 100644 index 0000000000..9d36f79bdd --- /dev/null +++ b/engine/src/flutter/ci/builders/linux_host_engine_test.json @@ -0,0 +1,157 @@ +{ + "_comment": [ + "The builds defined in this file should only contain tests, ", + "and the file should not contain builds that produce artifacts. " + ], + "builds": [ + { + "drone_dimensions": [ + "device_type=none", + "os=Linux" + ], + "gclient_variables": { + "download_android_deps": false, + "download_jdk": false, + "use_rbe": true + }, + "gn": [ + "--target-dir", + "ci/host_debug_test", + "--runtime-mode", + "debug", + "--prebuilt-dart-sdk", + "--build-embedder-examples", + "--rbe", + "--no-goma" + ], + "name": "ci/host_debug_test", + "description": "Builds host-side unit tests for Linux.", + "ninja": { + "config": "ci/host_debug_test", + "targets": [ + "flutter:unittests" + ] + }, + "tests": [ + { + "language": "python3", + "name": "Host Tests for host_debug", + "script": "flutter/testing/run_tests.py", + "parameters": [ + "--variant", + "ci/host_debug_test", + "--type", + "dart,dart-host", + "--engine-capture-core-dump" + ] + } + ] + }, + { + "drone_dimensions": [ + "device_type=none", + "os=Linux" + ], + "gclient_variables": { + "download_android_deps": false, + "download_jdk": false, + "use_rbe": true + }, + "gn": [ + "--target-dir", + "ci/host_profile_test", + "--runtime-mode", + "profile", + "--no-lto", + "--prebuilt-dart-sdk", + "--build-embedder-examples", + "--rbe", + "--no-goma" + ], + "name": "ci/host_profile_test", + "description": "Builds host-side unit tests for Linux.", + "ninja": { + "config": "ci/host_profile_test", + "targets": [ + "flutter:unittests" + ] + } + }, + { + "drone_dimensions": [ + "device_type=none", + "os=Linux" + ], + "dependencies": [ + { + "dependency": "goldctl", + "version": "git_revision:720a542f6fe4f92922c3b8f0fdcc4d2ac6bb83cd" + } + ], + "gclient_variables": { + "download_android_deps": false, + "download_jdk": false, + "use_rbe": true + }, + "gn": [ + "--target-dir", + "ci/host_release_test", + "--runtime-mode", + "release", + "--prebuilt-dart-sdk", + "--build-embedder-examples", + "--rbe", + "--no-goma" + ], + "name": "ci/host_release_test", + "description": "Builds host-side unit tests and benchmarks for Linux.", + "ninja": { + "config": "ci/host_release_test", + "targets": [ + "flutter:unittests", + "flutter/build/archives:flutter_patched_sdk", + "flutter/display_list:display_list_benchmarks", + "flutter/display_list:display_list_builder_benchmarks", + "flutter/display_list:display_list_region_benchmarks", + "flutter/display_list:display_list_transform_benchmarks", + "flutter/fml:fml_benchmarks", + "flutter/impeller/geometry:geometry_benchmarks", + "flutter/lib/ui:ui_benchmarks", + "flutter/shell/common:shell_benchmarks", + "flutter/third_party/txt:txt_benchmarks" + ] + }, + "tests": [ + { + "language": "python3", + "name": "Host Tests for host_release", + "script": "flutter/testing/run_tests.py", + "parameters": [ + "--variant", + "ci/host_release_test", + "--type", + "dart,dart-host,engine,benchmarks", + "--engine-capture-core-dump" + ] + }, + { + "language": "bash", + "name": "Generate metrics test", + "script": "flutter/testing/benchmark/generate_metrics.sh", + "parameters": [ + "ci/host_release_test" + ] + }, + { + "language": "bash", + "name": "Upload metrics dry-run", + "script": "flutter/testing/benchmark/upload_metrics.sh", + "parameters": [ + "ci/host_release_test", + "--no-upload" + ] + } + ] + } + ] +} diff --git a/engine/src/flutter/testing/run_tests.py b/engine/src/flutter/testing/run_tests.py index d2cf7b0267..f3230d3ba2 100755 --- a/engine/src/flutter/testing/run_tests.py +++ b/engine/src/flutter/testing/run_tests.py @@ -1372,13 +1372,7 @@ Flutter Wiki page on the subject: https://github.com/flutter/flutter/wiki/Testin run_benchmark_tests(build_dir) run_engine_benchmarks(build_dir, engine_filter) - variants_to_skip = ['host_release', 'host_profile'] - - def should_skip(variant): - matches = [variant for variant in variants_to_skip if variant in args.variant] - return len(matches) > 0 - - if ('engine' in types or 'font-subset' in types) and not should_skip(args.variant): + if ('engine' in types or 'font-subset' in types) and 'debug' in build_dir: cmd = ['python3', 'test.py', '--variant', args.variant] if 'arm64' in args.variant: cmd += ['--target-cpu', 'arm64']