INNER CODE UNIT · Python
build_matrix_json
trinodb/trino · .github/bin/build-matrix-schedule-aware.py:397
def build_matrix_json(
configs: list[ScheduleConfigItem],
impacted_modules: set[str],
github_context: dict[str, Any],
) -> dict[str, Any]:
includes = []
for config_item in configs:
when = config_item.when
if config_item.matches_event(github_context):
# Still filter to impacted when impact data exists, so we don't include jobs whose
# own Maven Install step will see the same GIB data and skip installing the module.
if impacted_modules and (when is None or when.impacted):
includes.extend(
config_item.build_impacted_matrix_includes(impacted_modules)
)
else:
includes.extend(config_item.build_matrix_includes())
else: