INNER CODE UNIT · Python
_matrix_includes_from
trinodb/trino · .github/bin/build-matrix-schedule-aware.py:145
def _matrix_includes_from(
self, module_sets: list[list[str]]
) -> list[dict[str, str | list[str]]]:
includes = []
for module_set, profile in itertools.product(
module_sets, self.profiles or [None]
):
include: dict[str, str | list[str]] = {"modules": ",".join(module_set)}
if profile:
include["profile"] = profile
if self.runners:
include["runners"] = self.runners
if self.notify_channels:
include["notify-channels"] = self.notify_channels
if self.matrix_properties:
include.update(self.matrix_properties)
include["name"] = build_test_name(
module_set, profile, self.matrix_properties