diff options
author | 2024-12-17 17:03:57 -0800 | |
---|---|---|
committer | 2024-12-17 17:03:57 -0800 | |
commit | e387933eaf4f3a8e1eb5bfaa15650202763f522d (patch) | |
tree | f9188c0cf30b87743107cfb5393d244b3cf22a9a /ci/build_test_suites.py | |
parent | b3a5c380665b94bd3653e02dd8b864ea9ce041fa (diff) |
patch up a bit of reporting metric logic
Ensure we stop updating the optimized status for the metrics
once we come of a decision.
Change-Id: I14d74ea71cc79f22170d2cf10ca299f5dd2f3c1d
Test: presubmit
Bug: 383118767
Diffstat (limited to 'ci/build_test_suites.py')
-rw-r--r-- | ci/build_test_suites.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ci/build_test_suites.py b/ci/build_test_suites.py index addad15d0b..7602c64fe0 100644 --- a/ci/build_test_suites.py +++ b/ci/build_test_suites.py @@ -166,13 +166,15 @@ class BuildPlanner: if re.search(regex, opt): get_metrics_agent().report_unoptimized_target(target, 'Test artifact used.') build_targets.add(target) - continue + # proceed to next target evaluation + break get_metrics_agent().report_optimized_target(target) except Exception as e: # In case of exception report as unoptimized build_targets.add(target) get_metrics_agent().report_unoptimized_target(target, f'Error in parsing test discovery output for {target}: {repr(e)}') logging.error(f'unable to parse test discovery output: {repr(e)}') + break return build_targets |