From d8482e6c458334c4323a58234ae8c02f31800cc6 Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Fri, 29 Mar 2024 13:28:53 -0700 Subject: [PATCH] Fix the `clangd` builders, and make Linux non-bringup. (flutter/engine#51765) Further work towards https://github.com/flutter/flutter/issues/141641. I could imagine making things `presubmit: false` if we think it's not worth the presubmit capacity. Removed `:copy_dart_sdk` which seems (a) not to work and (b) not needed to use the pre-builts. --- engine/src/flutter/.ci.yaml | 6 ++++-- .../ci/builders/linux_unopt_debug_no_rbe.json | 13 ++++++++++--- .../flutter/ci/builders/mac_unopt_debug_no_rbe.json | 13 ++++++++++--- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/engine/src/flutter/.ci.yaml b/engine/src/flutter/.ci.yaml index 314883c8dd..65e5d9a78a 100644 --- a/engine/src/flutter/.ci.yaml +++ b/engine/src/flutter/.ci.yaml @@ -279,7 +279,6 @@ targets: - name: Linux clangd recipe: engine_v2/engine_v2 - bringup: true properties: config_name: linux_unopt_debug_no_rbe @@ -369,8 +368,11 @@ targets: - os=Mac-13 - name: Mac clangd - recipe: engine_v2/engine_v2 bringup: true + recipe: engine_v2/engine_v2 + # Avoid using a Mac orchestrator to save ~5 minutes of Mac host time. + drone_dimensions: + - os=Linux properties: config_name: mac_unopt_debug_no_rbe diff --git a/engine/src/flutter/ci/builders/linux_unopt_debug_no_rbe.json b/engine/src/flutter/ci/builders/linux_unopt_debug_no_rbe.json index 566ece3c5f..38ee6cbd60 100644 --- a/engine/src/flutter/ci/builders/linux_unopt_debug_no_rbe.json +++ b/engine/src/flutter/ci/builders/linux_unopt_debug_no_rbe.json @@ -1,7 +1,11 @@ { "_comment": [ "This build is only used to generate compile_commands.json for clangd ", - "and should not be used for any other purpose." + "and should not be used for any other purpose.", + "", + "Note the `flutter/tools/font_subset` target is only used because if no ", + "targets are specified, the build will fail, and if an empty list of ", + "targets are specified, all targets are built (wasteful/slow)" ], "builds": [ { @@ -11,13 +15,16 @@ "debug", "--unoptimized", "--prebuilt-dart-sdk", + "--no-lto", "--no-rbe", - "--no-goma" + "--no-goma", + "--target-dir", + "linux_unopt_debug_no_rbe" ], "name": "linux_unopt_debug_no_rbe", "ninja": { "config": "linux_unopt_debug_no_rbe", - "targets": ["flutter/build/dart:copy_dart_sdk"] + "targets": ["flutter/tools/font_subset"] }, "tests": [ { diff --git a/engine/src/flutter/ci/builders/mac_unopt_debug_no_rbe.json b/engine/src/flutter/ci/builders/mac_unopt_debug_no_rbe.json index 2c8c5eddab..af2acdd195 100644 --- a/engine/src/flutter/ci/builders/mac_unopt_debug_no_rbe.json +++ b/engine/src/flutter/ci/builders/mac_unopt_debug_no_rbe.json @@ -1,7 +1,11 @@ { "_comment": [ "This build is only used to generate compile_commands.json for clangd ", - "and should not be used for any other purpose." + "and should not be used for any other purpose.", + "", + "Note the `flutter/tools/font_subset` target is only used because if no ", + "targets are specified, the build will fail, and if an empty list of ", + "targets are specified, all targets are built (wasteful/slow)" ], "builds": [ { @@ -16,14 +20,17 @@ "debug", "--unoptimized", "--prebuilt-dart-sdk", + "--no-lto", "--no-rbe", "--no-goma", - "--xcode-symlinks" + "--xcode-symlinks", + "--target-dir", + "mac_unopt_debug_no_rbe" ], "name": "mac_unopt_debug_no_rbe", "ninja": { "config": "mac_unopt_debug_no_rbe", - "targets": ["flutter/build/dart:copy_dart_sdk"] + "targets": ["flutter/tools/font_subset"] }, "tests": [ {