diff --git a/test/scripts/configure-generators b/test/scripts/configure-generators index c30fabe2a9..77c6c243ee 100755 --- a/test/scripts/configure-generators +++ b/test/scripts/configure-generators @@ -6,6 +6,7 @@ import sys import imgtestlib as testlib ARCHITECTURES = ["x86_64", "aarch64"] +MANIFEST_ONLY_ARCHES = ["ppc64le", "s390x"] BASE_CONFIG = """ @@ -90,6 +91,19 @@ image-build-ostree-trigger-{distro}-{arch}: """ +MANIFEST_GEN_TEMPLATE = """ +generate-manifests-{distro}-{arch}: + stage: gen + extends: .terraform + variables: + RUNNER: aws/fedora-39-x86_64 + INTERNAL_NETWORK: "true" + script: + - sudo ./test/scripts/install-dependencies + - go run ./cmd/gen-manifests --arches {arch} --distros {distro} --workers 10 +""" + + def main(): config_path = sys.argv[1] images = testlib.list_images(arches=ARCHITECTURES) @@ -112,6 +126,16 @@ def main(): ostree_gen_stage.append(OSTREE_GEN_TEMPLATE.format(distro=img["distro"], arch=img["arch"], cache=cache)) ostree_trigger_stage.append(OSTREE_TRIGGER_TEMPLATE.format(distro=img["distro"], arch=img["arch"], cache=cache)) + man_only_images = testlib.list_images(arches=MANIFEST_ONLY_ARCHES) + man_gen_stage = [] + for img in man_only_images: + combo = (img["distro"], img["arch"]) + if combo in combos: + continue + + combos.add(combo) + man_gen_stage.append(MANIFEST_GEN_TEMPLATE.format(distro=img["distro"], arch=img["arch"])) + with open(config_path, "w", encoding="utf-8") as config_file: config_file.write(BASE_CONFIG) config_file.write(testlib.BASE_CONFIG) @@ -119,6 +143,7 @@ def main(): config_file.write("\n".join(trigger_stage)) config_file.write("\n".join(ostree_gen_stage)) config_file.write("\n".join(ostree_trigger_stage)) + config_file.write("\n".join(man_gen_stage)) if __name__ == "__main__":