Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Migrate linux unopt to engine_v2. #41658

Merged
merged 17 commits into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,14 @@ targets:
release_build: "true"
config_name: linux_web_engine

- name: Linux linux_unopt
bringup: true
recipe: engine_v2/engine_v2
timeout: 60
properties:
release_build: "true"
config_name: linux_unopt

- name: Linux Web Framework tests
recipe: engine/web_engine_framework
enabled_branches:
Expand Down
122 changes: 122 additions & 0 deletions ci/builders/linux_unopt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"builds": [
{
"drone_dimensions": [
"device_type=none",
"os=Linux"
],
"gclient_variables": {
"download_android_deps": false
},
"gn": [
"--runtime-mode",
"debug",
"--unoptimized",
"--prebuilt-dart-sdk",
"--asan",
"--lsan",
"--dart-debug"
],
"name": "host_debug_unopt",
"ninja": {
"config": "host_debug_unopt",
"targets": [
"flutter/tools/font-subset",
"flutter:unittests",
"flutter/build/dart:copy_dart_sdk",
"flutter/shell/platform/common/client_wrapper:client_wrapper_unittests",
"flutter/shell/platform/common:common_cpp_core_unittests",
"flutter/shell/platform/common:common_cpp_unittests",
"flutter/shell/platform/glfw/client_wrapper:client_wrapper_glfw_unittests",
"flutter/shell/testing",
"sky_engine"
]
},
"tests": [
{
"name": "test:format_and_dart_test",
"script": "flutter/ci/format.sh"
},
{
"language": "python3",
"name": "test: Host_Tests_for_host_debug_unopt",
"parameters": [
"--variant",
"host_debug_unopt",
"--type",
"dart,engine",
"--engine-capture-core-dump",
"--use-sanitizer-suppressions"
],
"script": "flutter/testing/run_tests.py"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this keep the 3x retry and alerting the engine sheriff on a flake? https://flutter.googlesource.com/recipes/+/refs/heads/main/recipes/engine/engine_unopt.py#79

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

},
{
"name": "analyze_dart_ui",
"script": "flutter/ci/analyze.sh"
},
{
"language": "dart",
"name": "test: observatory and service protocol",
"script": "flutter/shell/testing/observatory/test.dart",
"parameters": [
"out/host_debug_unopt/flutter_tester",
"flutter/shell/testing/observatory/empty_main.dart"
]
}
]
},
{
"drone_dimensions": [
"device_type=none",
"os=Linux"
],
"dependencies": [
{
"dependency": "arm_tools",
"version": "last_updated:2023-02-03T15:32:01-0800"
}
],
"gn": [
"--android",
"--unoptimized"
],
"name": "android_debug_unopt",
"ninja": {
"config": "android_debug_unopt",
"targets": [
"flutter/impeller",
"flutter/shell/platform/android:android_jar",
"flutter/shell/platform/android:robolectric_tests"
]
},
"tests": [
{
"language": "python3",
"name": "test: Host Tests for android_debug_unopt",
"parameters": [
"--variant",
"android_debug_unopt",
"--type",
"java",
"--engine-capture-core-dump",
"--android-variant",
"android_debug_unopt"
],
"script": "flutter/testing/run_tests.py"
},
{
"language": "python3",
"name": "malioc diff",
"parameters": [
"--before-relative-to-src",
"flutter/impeller/tools/malioc.json",
"--after-relative-to-src",
"out/android_debug_unopt/gen/malioc",
"--print-diff"
],
"script": "flutter/impeller/tools/malioc_diff.py"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't do anything unless the path to malioc is passed to gn like here https://flutter.googlesource.com/recipes/+/refs/heads/main/recipes/engine/engine_unopt.py#127.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The arm-tool dep is setting up the env variable that gn looks for: https://cs.opensource.google/flutter/recipes/+/main:recipe_modules/flutter_deps/api.py;l=173

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
]
}
]
}