Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 4400f67

Browse files
committed
load the configurations as Configurations instead of dicts
1 parent c328450 commit 4400f67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/scripts/config_extractor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def normalize_index_union(indices) -> list[list[str]]:
9595

9696
from CPAC.pipeline import ALL_PIPELINE_CONFIGS
9797
from CPAC.utils.configuration.configuration import Configuration, Preconfiguration
98-
98+
9999
with open("nodeblock_index.json") as f:
100100
nbs = json.load(f)
101101
configs: dict[str, Configuration] = {config: Preconfiguration(config, skip_env_check=True) for config in ALL_PIPELINE_CONFIGS}
@@ -130,7 +130,7 @@ def _any_true_in_config(config, multi_index_union):
130130

131131
configs_with_this_enabled = []
132132
for config_name, config in configs.items():
133-
if _any_true_in_config(config, paths):
133+
if all(config.switch_is_on(switch) for switch in paths):
134134
configs_with_this_enabled.append(config_name)
135135

136136
nb["workflows"] = configs_with_this_enabled

0 commit comments

Comments
 (0)