Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1387533e authored by Julien Desprez's avatar Julien Desprez
Browse files

Report optimized targets when nothing has to be built

Change-Id: I3485d70f1ebfdfcd1b8d74427f75e245eb6e7514
Test: presubmit
Bug: 385339697
parent f1c1a844
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -129,6 +129,10 @@ class BuildPlanner:
        build_targets.add(target)
        get_metrics_agent().report_unoptimized_target(target, 'Required build target.')
        continue
      # If nothing is discovered without error, that means nothing is needed.
      if not test_discovery_zip_regexes:
        get_metrics_agent().report_optimized_target(target)
        continue

      regex = r'\b(%s.*)\b' % re.escape(target)
      for opt in test_discovery_zip_regexes: