diff --git a/scripts/shadow_scheduler_stats.py b/scripts/shadow_scheduler_stats.py index f3a1165f43..ac2557fdfb 100644 --- a/scripts/shadow_scheduler_stats.py +++ b/scripts/shadow_scheduler_stats.py @@ -16,7 +16,7 @@ import mozci.errors import mozci.push from dateutil.relativedelta import relativedelta -from mozci.task import get_configuration as mozci_get_configuration +from mozci.task import get_configuration from pandas import DataFrame, DatetimeIndex, Series from tqdm import tqdm @@ -47,21 +47,6 @@ ) -def get_configuration(task: dict) -> str: - # mozci reads the test variants from "test-settings", but the task graph - # calls it "test-setting", so variants (e.g. "-swr") would be lost. - extra = task["task"]["extra"] - if "test-setting" in extra and "test-settings" not in extra: - task = { - **task, - "task": { - **task["task"], - "extra": {**extra, "test-settings": extra["test-setting"]}, - }, - } - return mozci_get_configuration(task) - - # Granularities at which tasks, rather than groups, are evaluated: # - "non_group": test tasks which don't run test groups (e.g. gtest); # - "build": builds.