diff options
author | 2024-12-14 17:44:18 -0800 | |
---|---|---|
committer | 2024-12-16 08:49:05 -0800 | |
commit | 1075a6be063043a8e3c446c2428216ae8eb4ba14 (patch) | |
tree | 0156e0cbe559058421b0ca2e92c281bfd4c38726 /ci/build_test_suites.py | |
parent | 81f12b92083adc02a615725bb51396d856be3261 (diff) |
Report required build target as such in metrics
Those are the targets that should never be removed
Change-Id: Ifcba91d044bafc9d8be717e0d8871b6b96e86439
Test: presubmit
Bug: 383118767
Diffstat (limited to 'ci/build_test_suites.py')
-rw-r--r-- | ci/build_test_suites.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ci/build_test_suites.py b/ci/build_test_suites.py index 443e872c80..88630ba32b 100644 --- a/ci/build_test_suites.py +++ b/ci/build_test_suites.py @@ -112,6 +112,9 @@ class BuildPlanner: if optimization_rationale: get_metrics_agent().report_unoptimized_target(target, optimization_rationale) continue + if target in REQUIRED_BUILD_TARGETS: + get_metrics_agent().report_unoptimized_target(target, 'Required build target.') + continue try: regex = r'\b(%s.*)\b' % re.escape(target) if any(re.search(regex, opt) for opt in test_discovery_zip_regexes): @@ -154,6 +157,7 @@ class BuildPlanner: for target in self.args.extra_targets: if target in REQUIRED_BUILD_TARGETS: build_targets.add(target) + get_metrics_agent().report_unoptimized_target(target, 'Required build target.') continue regex = r'\b(%s.*)\b' % re.escape(target) |