PRESUBMIT.py: Remove uses of EnsureCQIncludeTrybotsAreAdded.
The functionality was moved to cq.cfg in
https://chromium-review.googlesource.com/c/chromium/src/+/1265735
Bug: 881860
Change-Id: I839784ec7babfa095272ab06c4c21c1e57475216
Reviewed-on: https://chromium-review.googlesource.com/c/1266055
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#600875}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 35bdc0f5358109992dc7f205896267619eafea69
diff --git a/linux/PRESUBMIT.py b/linux/PRESUBMIT.py
deleted file mode 100644
index d23105a..0000000
--- a/linux/PRESUBMIT.py
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 2017 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-def PostUploadHook(cl, change, output_api):
- """git cl upload will call this hook after the issue is created/modified.
-
- This will add extra trybot coverage for non-default Android architectures
- that have a history of breaking with Seccomp changes.
- """
- def affects_seccomp(f):
- seccomp_paths = [
- 'bpf_dsl/',
- 'seccomp-bpf/',
- 'seccomp-bpf-helpers/',
- 'system_headers/',
- 'tests/'
- ]
- # If the file path contains any of the above fragments, it affects
- # the Seccomp implementation.
- affected_any = map(lambda sp: sp in f.LocalPath(), seccomp_paths)
- return reduce(lambda a, b: a or b, affected_any)
-
- if not change.AffectedFiles(file_filter=affects_seccomp):
- return []
-
- return output_api.EnsureCQIncludeTrybotsAreAdded(
- cl,
- [
- 'luci.chromium.try:android_arm64_dbg_recipe',
- 'master.tryserver.chromium.android:android_compile_x64_dbg',
- 'master.tryserver.chromium.android:android_compile_x86_dbg',
- ],
- 'Automatically added Android multi-arch compile bots to run on CQ.')