# Copyright 2024 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. perfetto_repo_files = [ "LICENSE", "protos/perfetto/trace/perfetto_trace.proto", ] core.workflow( name = "default", description = "Imports files from the perfetto repo", origin = git.origin( url = "https://android.googlesource.com/platform/external/perfetto", ref = "main", ), destination = git.gerrit_destination( url = "https://pigweed.googlesource.com/pigweed/pigweed", fetch = "main", push_to_refs_for = "main%message=No%2dDocs%2dUpdate%2dReason%3a_copybara_import", labels = ["Commit-Queue+1"], checker = leakr.disable_check("Syncing between OSS projects"), ), origin_files = glob(perfetto_repo_files), # Exclude BUILD.gn files to keep Pigweed's versions. destination_files = glob(["third_party/perfetto/repo/**"], exclude = ["**/BUILD.gn"]), authoring = authoring.pass_thru("Fuchsia Authors "), transformations = [ core.move("", "third_party/perfetto/repo"), # Show all commits but exclude the author to reduce line length. metadata.squash_notes( "third_party/perfetto: Copybara import\n\n", show_author = False, ), ], )