Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions scripts/shadow_scheduler_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down