From ac2bd57b7ba216516de7a81981ad5a37ea9213cf Mon Sep 17 00:00:00 2001 From: Jonathan Metzman Date: Sun, 29 Dec 2024 13:42:31 -0500 Subject: [PATCH] Revert "Correctly fetch batch regions in fuzz task (#4569)" This reverts commit 8d7b9ab724c5f1f4c757ea48f97a137eac8c11c8. --- src/clusterfuzz/_internal/cron/schedule_fuzz.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/clusterfuzz/_internal/cron/schedule_fuzz.py b/src/clusterfuzz/_internal/cron/schedule_fuzz.py index dede66c2c2..44c4b8278b 100644 --- a/src/clusterfuzz/_internal/cron/schedule_fuzz.py +++ b/src/clusterfuzz/_internal/cron/schedule_fuzz.py @@ -182,15 +182,8 @@ def get_fuzz_tasks(available_cpus: int) -> [tasks.Task]: def get_batch_regions(batch_config): - fuzz_subconf_names = { - subconf['name'] for subconf in batch_config.get( - 'mapping.LINUX-PREEMPTIBLE-UNPRIVILEGED.subconfigs') - } - subconfs = batch_config.get('subconfigs') - return list( - set(subconfs[subconf]['region'] - for subconf in subconfs - if subconf in fuzz_subconf_names)) + mapping = batch_config.get('mapping') + return list(set(config['gce_region'] for config in mapping.values())) def schedule_fuzz_tasks() -> bool: