aboutsummaryrefslogtreecommitdiff
path: root/cros_utils
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2023-02-01 19:24:26 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-02-02 19:46:06 +0000
commit0be0ba564cc676c1ac8735d755b75e1d760de14c (patch)
tree3bcf8254f9f799b77b280a98f7a02cf69396f14d /cros_utils
parent028ba04b7d1aadae0dac3919d14f4555408b565d (diff)
downloadtoolchain-utils-0be0ba564cc676c1ac8735d755b75e1d760de14c.tar.gz
add android component to cros_utils; use it in rust_watch
This makes rust_watch's bug filing bits a bit more generic and more easily attributed to us, since Android would like these bugs, as well. cl/506479306 adds this well-known component to the internal bug filer. BUG=b:267548169 TEST=unittests Change-Id: Id9da9061e196c4a7df00a425b408e9b948d98544 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/4215319 Commit-Queue: George Burgess <gbiv@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: Bob Haarman <inglorion@chromium.org>
Diffstat (limited to 'cros_utils')
-rwxr-xr-xcros_utils/bugs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cros_utils/bugs.py b/cros_utils/bugs.py
index 43e0e553..9a84ac40 100755
--- a/cros_utils/bugs.py
+++ b/cros_utils/bugs.py
@@ -16,11 +16,14 @@ from typing import Any, Dict, List, Optional
X20_PATH = "/google/data/rw/teams/c-compiler-chrome/prod_bugs"
+# These constants are sourced from
+# //google3/googleclient/chrome/chromeos_toolchain/bug_manager/bugs.go
class WellKnownComponents(enum.IntEnum):
"""A listing of "well-known" components recognized by our infra."""
CrOSToolchainPublic = -1
CrOSToolchainPrivate = -2
+ AndroidRustToolchain = -3
def _WriteBugJSONFile(object_type: str, json_object: Dict[str, Any]):