From e31df55438c0e14b24b7b5d07051678453f48728 Mon Sep 17 00:00:00 2001 From: Derek Xu Date: Fri, 27 Jan 2023 13:24:53 -0500 Subject: [PATCH] Handle proto deps that were added to the Dart SDK (flutter/engine#39098) --- DEPS | 15 ++- .../flutter/ci/licenses_golden/excluded_files | 121 ++++++++++++++++++ .../flutter/ci/licenses_golden/tool_signature | 2 +- .../src/flutter/tools/licenses/lib/paths.dart | 11 ++ 4 files changed, 147 insertions(+), 2 deletions(-) diff --git a/DEPS b/DEPS index 5505c460ec..78073af9f5 100644 --- a/DEPS +++ b/DEPS @@ -59,6 +59,9 @@ vars = { 'dart_clock_rev': '65e8a13ddf26c9d21884ccc8f8532725697d40df', 'dart_collection_rev': '85e987cf1b8aaba60bdc8b16dd1ee6233436549f', 'dart_devtools_rev': 'c7a81f64dabb4b9f2cae0cf2c9411ef8bb805191', + 'dart_libprotobuf_rev': '24487dd1045c7f3d64a21f38a3f0c06cc4cf2edb', + 'dart_perfetto_rev': 'b8da07095979310818f0efde2ef3c69ea70d62c5', + 'dart_protobuf_gn_rev': 'b9517855b24624ec4edf4a11c1b7060f4ef237e6', 'dart_protobuf_rev': 'cc0f287fb6a8680e431eb9210225f1d0ac33c047', 'dart_pub_rev': '0cbaf7a2fb8c8ca543c6f222bf25d5f5c63abbf3', 'dart_root_certificates_rev': '692f6d6488af68e0121317a9c2c9eb393eb0ee50', @@ -236,7 +239,7 @@ allowed_hosts = [ ] deps = { - 'src': 'https://github.com/flutter/buildroot.git' + '@' + 'abada33190daa7914938ec56d59032012fcf12f7', + 'src': 'https://github.com/flutter/buildroot.git' + '@' + 'c77cac9502fb108be6a1ed4e0e4e1c65649b3a35', # Fuchsia compatibility # @@ -292,6 +295,16 @@ deps = { 'src/third_party/boringssl/src': 'https://boringssl.googlesource.com/boringssl.git' + '@' + Var('dart_boringssl_rev'), + 'src/third_party/perfetto': + Var('fuchsia_git') + "/third_party/android.googlesource.com/platform/external/perfetto" + + '@' + Var('dart_perfetto_rev'), + + 'src/third_party/protobuf': + Var('fuchsia_git') + '/third_party/protobuf' + '@' + Var('dart_libprotobuf_rev'), + + 'src/build/secondary/third_party/protobuf': + Var('fuchsia_git') + '/protobuf-gn' + '@' + Var('dart_protobuf_gn_rev'), + 'src/third_party/dart': Var('dart_git') + '/sdk.git' + '@' + Var('dart_revision'), diff --git a/engine/src/flutter/ci/licenses_golden/excluded_files b/engine/src/flutter/ci/licenses_golden/excluded_files index 1b0ce14b51..4de048a90e 100644 --- a/engine/src/flutter/ci/licenses_golden/excluded_files +++ b/engine/src/flutter/ci/licenses_golden/excluded_files @@ -2341,6 +2341,126 @@ ../../../third_party/libwebp/webp_js ../../../third_party/libxml ../../../third_party/ocmock +../../../third_party/perfetto/.clang-format +../../../third_party/perfetto/.clang-tidy +../../../third_party/perfetto/.git +../../../third_party/perfetto/.gitattributes +../../../third_party/perfetto/.github +../../../third_party/perfetto/.gitignore +../../../third_party/perfetto/.gn +../../../third_party/perfetto/.style.yapf +../../../third_party/perfetto/CHANGELOG +../../../third_party/perfetto/DIR_METADATA +../../../third_party/perfetto/METADATA +../../../third_party/perfetto/OWNERS +../../../third_party/perfetto/PRESUBMIT.py +../../../third_party/perfetto/README.chromium +../../../third_party/perfetto/README.md +../../../third_party/perfetto/WORKSPACE +../../../third_party/perfetto/bazel/deps.bzl +../../../third_party/perfetto/bazel/proto_gen.bzl +../../../third_party/perfetto/bazel/rules.bzl +../../../third_party/perfetto/bazel/standalone/README.md +../../../third_party/perfetto/bazel/standalone/perfetto_cfg.bzl +../../../third_party/perfetto/buildtools/.gitignore +../../../third_party/perfetto/buildtools/README.md +../../../third_party/perfetto/codereview.settings +../../../third_party/perfetto/debian +../../../third_party/perfetto/docs/.gitignore +../../../third_party/perfetto/docs/README.md +../../../third_party/perfetto/examples +../../../third_party/perfetto/gn/standalone/build_tool_wrapper.py +../../../third_party/perfetto/gn/standalone/cp.py +../../../third_party/perfetto/gn/standalone/protoc.py +../../../third_party/perfetto/gn/standalone/toolchain/linux_find_llvm.py +../../../third_party/perfetto/gn/standalone/toolchain/llvm-strip.py +../../../third_party/perfetto/gn/standalone/toolchain/mac_find_llvm.py +../../../third_party/perfetto/gn/standalone/toolchain/win_find_msvc.py +../../../third_party/perfetto/gn/write_buildflag_header.py +../../../third_party/perfetto/include/README.md +../../../third_party/perfetto/include/perfetto/README.md +../../../third_party/perfetto/include/perfetto/profiling/OWNERS +../../../third_party/perfetto/include/perfetto/test +../../../third_party/perfetto/include/perfetto/trace_processor/OWNERS +../../../third_party/perfetto/include/perfetto/tracing/OWNERS +../../../third_party/perfetto/infra +../../../third_party/perfetto/meson.build +../../../third_party/perfetto/protos +../../../third_party/perfetto/python/README.md +../../../third_party/perfetto/python/example.py +../../../third_party/perfetto/python/perfetto/__init__.py +../../../third_party/perfetto/python/perfetto/batch_trace_processor/__init__.py +../../../third_party/perfetto/python/perfetto/batch_trace_processor/api.py +../../../third_party/perfetto/python/perfetto/batch_trace_processor/platform.py +../../../third_party/perfetto/python/perfetto/common/repo_utils.py +../../../third_party/perfetto/python/perfetto/experimental/slice_breakdown/__init__.py +../../../third_party/perfetto/python/perfetto/experimental/slice_breakdown/breakdown.py +../../../third_party/perfetto/python/perfetto/prebuilts/manifests/trace_processor_shell.py +../../../third_party/perfetto/python/perfetto/prebuilts/manifests/tracebox.py +../../../third_party/perfetto/python/perfetto/prebuilts/manifests/traceconv.py +../../../third_party/perfetto/python/perfetto/prebuilts/perfetto_prebuilts.py +../../../third_party/perfetto/python/perfetto/trace_processor +../../../third_party/perfetto/python/perfetto/trace_uri_resolver/path.py +../../../third_party/perfetto/python/perfetto/trace_uri_resolver/registry.py +../../../third_party/perfetto/python/perfetto/trace_uri_resolver/resolver.py +../../../third_party/perfetto/python/perfetto/trace_uri_resolver/util.py +../../../third_party/perfetto/python/run_tests.py +../../../third_party/perfetto/python/setup.py +../../../third_party/perfetto/python/test +../../../third_party/perfetto/python/tools/batch_trace_processor_shell.py +../../../third_party/perfetto/python/tools/cpu_profile.py +../../../third_party/perfetto/python/tools/heap_profile.py +../../../third_party/perfetto/python/tools/record_android_trace.py +../../../third_party/perfetto/python/tools/slice_breakdown.py +../../../third_party/perfetto/python/tools/trace_processor.py +../../../third_party/perfetto/python/tools/tracebox.py +../../../third_party/perfetto/python/tools/traceconv.py +../../../third_party/perfetto/src/android_internal/README.md +../../../third_party/perfetto/src/base/test +../../../third_party/perfetto/src/ipc +../../../third_party/perfetto/src/profiling/OWNERS +../../../third_party/perfetto/src/profiling/memory +../../../third_party/perfetto/src/protozero/test +../../../third_party/perfetto/src/tools +../../../third_party/perfetto/src/trace_processor +../../../third_party/perfetto/src/traced +../../../third_party/perfetto/src/tracing +../../../third_party/perfetto/test +../../../third_party/perfetto/tools/add_tp_diff_test.py +../../../third_party/perfetto/tools/analyze_profiling_sampling_distribution.py +../../../third_party/perfetto/tools/check_sql_metrics.py +../../../third_party/perfetto/tools/compat.py +../../../third_party/perfetto/tools/diff_test_trace_processor.py +../../../third_party/perfetto/tools/download_changed_screenshots.py +../../../third_party/perfetto/tools/export_power_profiles.py +../../../third_party/perfetto/tools/find_scan_roots.py +../../../third_party/perfetto/tools/gen_amalgamated_sql.py +../../../third_party/perfetto/tools/gen_cc_proto_descriptor.py +../../../third_party/perfetto/tools/gn_utils.py +../../../third_party/perfetto/tools/measure_tp_performance.py +../../../third_party/perfetto/tools/print_descriptor.py +../../../third_party/perfetto/tools/proto_utils.py +../../../third_party/perfetto/tools/protoc_helper.py +../../../third_party/perfetto/tools/pull_ftrace_format_files.py +../../../third_party/perfetto/tools/run_buildtools_binary.py +../../../third_party/perfetto/tools/serialize_test_trace.py +../../../third_party/perfetto/tools/setup_all_configs.py +../../../third_party/perfetto/tools/test_gen_amalgamated.py +../../../third_party/perfetto/tools/touch_file.py +../../../third_party/perfetto/tools/write_version_header.py +../../../third_party/perfetto/ui/.clang-format +../../../third_party/perfetto/ui/.eslintrc.js +../../../third_party/perfetto/ui/.gitignore +../../../third_party/perfetto/ui/OWNERS +../../../third_party/perfetto/ui/PRESUBMIT.py +../../../third_party/perfetto/ui/README.md +../../../third_party/perfetto/ui/config/.gitignore +../../../third_party/perfetto/ui/package.json +../../../third_party/perfetto/ui/release/OWNERS +../../../third_party/perfetto/ui/release/build_all_channels.py +../../../third_party/perfetto/ui/src/assets/.gitignore +../../../third_party/perfetto/ui/src/base/utils/package.json +../../../third_party/perfetto/ui/src/test ../../../third_party/pkg/archive ../../../third_party/pkg/equatable ../../../third_party/pkg/file @@ -2352,6 +2472,7 @@ ../../../third_party/pkg/process_runner ../../../third_party/pkg/quiver ../../../third_party/pkg/vector_math +../../../third_party/protobuf ../../../third_party/pyyaml ../../../third_party/rapidjson/.git ../../../third_party/rapidjson/.gitattributes diff --git a/engine/src/flutter/ci/licenses_golden/tool_signature b/engine/src/flutter/ci/licenses_golden/tool_signature index 55e23e2453..7d300f7b83 100644 --- a/engine/src/flutter/ci/licenses_golden/tool_signature +++ b/engine/src/flutter/ci/licenses_golden/tool_signature @@ -1,2 +1,2 @@ -Signature: ccf8317fb6539998c8f4ff0a96d7f698 +Signature: 90df0faca032ae220230aef5e61ca020 diff --git a/engine/src/flutter/tools/licenses/lib/paths.dart b/engine/src/flutter/tools/licenses/lib/paths.dart index 18a02134c9..5e136a1107 100644 --- a/engine/src/flutter/tools/licenses/lib/paths.dart +++ b/engine/src/flutter/tools/licenses/lib/paths.dart @@ -132,6 +132,17 @@ final Set skippedPaths = { r'third_party/libwebp/webp_js', r'third_party/libxml', // dependency of the testing system that we don't actually use r'third_party/ocmock', // only used for tests + r'third_party/perfetto/debian', // contains nothing that ends up in the binary executable + r'third_party/perfetto/infra', // contains nothing that ends up in the binary executable + r'third_party/perfetto/protos', // contains nothing that ends up in the binary executable + r'third_party/perfetto/python/perfetto/trace_processor', // contains nothing that ends up in the binary executable + r'third_party/perfetto/src/ipc', // contains nothing that ends up in the binary executable + r'third_party/perfetto/src/profiling/memory', // contains nothing that ends up in the binary executable + r'third_party/perfetto/src/tools', // contains nothing that ends up in the binary executable + r'third_party/perfetto/src/trace_processor', // contains nothing that ends up in the binary executable + r'third_party/perfetto/src/traced', // contains nothing that ends up in the binary executable + r'third_party/perfetto/src/tracing', // contains nothing that ends up in the binary executable + r'third_party/protobuf', // build-time dependency only r'third_party/pkg/archive', // contains nothing that ends up in the binary executable r'third_party/pkg/equatable', r'third_party/pkg/file',