From 72782033c827399ca19e0686864b66962ee73e44 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 12 Jul 2025 01:05:20 +0000 Subject: [PATCH 01/22] ci: This PR is to trigger periodic CI testing --- tests/callback_plugins/dump_packages.py | 64 +++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 tests/callback_plugins/dump_packages.py diff --git a/tests/callback_plugins/dump_packages.py b/tests/callback_plugins/dump_packages.py new file mode 100644 index 0000000..433fe54 --- /dev/null +++ b/tests/callback_plugins/dump_packages.py @@ -0,0 +1,64 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2023, Red Hat, Inc. +# SPDX-License-Identifier: MIT + +from __future__ import absolute_import, division, print_function + +__metaclass__ = type + +DOCUMENTATION = """ + author: Rich Megginson + name: dump_packages + type: aggregate + short_description: dump arguments to package module + description: + - Dump arguments to package module to get list of packages. + - Used in conjunction with CI testing to get the packages used + - with all combinations of: distribution/version/role arguments + - Used to generate lists of packages for ostree image builds. + requirements: + - None +""" + +from ansible.plugins.callback import CallbackBase # noqa: E402 + + +class CallbackModule(CallbackBase): + """ + Dump packages. + """ + + CALLBACK_VERSION = 2.0 + CALLBACK_TYPE = "aggregate" + CALLBACK_NAME = "dump_packages" + # needed for 2.9 compatibility + CALLBACK_NEEDS_WHITELIST = False # wokeignore:rule=whitelist + CALLBACK_NEEDS_ENABLED = False + + def __init__(self, *args, **kwargs): + super(CallbackModule, self).__init__(*args, **kwargs) + + def v2_runner_on_ok(self, result): + fields = result._task_fields + if ( + fields["action"] in ["package", "dnf", "yum"] + and fields["args"].get("state") != "absent" + ): + packages = set() + if "invocation" in result._result: + results = [result._result] + elif "results" in result._result and isinstance( + result._result["results"], list + ): + results = result._result["results"] + for item in results: + pkgs = item["invocation"]["module_args"]["name"] + if isinstance(pkgs, list): + for ii in pkgs: + packages.add(ii) + else: + packages.add(pkgs) + # tell python black that this line is ok + # fmt: off + self._display.display("lsrpackages: " + " ".join(sorted(list(packages)))) + # fmt: on From c95f7ba1d1a91a107970030e0424eceada01cf0a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 19 Jul 2025 11:20:14 +0000 Subject: [PATCH 02/22] ci: This PR is to trigger periodic CI testing From 48cc70081bd9e4eb03bc8fca104c2e7ee4b41d58 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 26 Jul 2025 11:20:29 +0000 Subject: [PATCH 03/22] ci: This PR is to trigger periodic CI testing From d43ae73b4c10136f19327caeed10686885a2862e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 2 Aug 2025 11:20:43 +0000 Subject: [PATCH 04/22] ci: This PR is to trigger periodic CI testing From f295967311860c7d2763e0238e4942f2ad566a77 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 9 Aug 2025 11:19:31 +0000 Subject: [PATCH 05/22] ci: This PR is to trigger periodic CI testing From 4f80f2eb3efaac3a692e2323ca12f23d3bf88b4f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 16 Aug 2025 11:18:14 +0000 Subject: [PATCH 06/22] ci: This PR is to trigger periodic CI testing From 42507e17e8d771a08df7d58971d9543a82d3f09e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 23 Aug 2025 11:17:28 +0000 Subject: [PATCH 07/22] ci: This PR is to trigger periodic CI testing From cf2199d9168e8f10842b9a92e4f0555e043059af Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 30 Aug 2025 11:16:43 +0000 Subject: [PATCH 08/22] ci: This PR is to trigger periodic CI testing From 2eaabc66c5c1860c8e13ee98aa0ecd8537f28fad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 6 Sep 2025 11:15:44 +0000 Subject: [PATCH 09/22] ci: This PR is to trigger periodic CI testing From 74fd08317a7a9c6402163bf3989471d5af644606 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 13 Sep 2025 11:16:07 +0000 Subject: [PATCH 10/22] ci: This PR is to trigger periodic CI testing From 7e70a44f4395e234189c6d76e48321e2c39e7b25 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 20 Sep 2025 11:16:47 +0000 Subject: [PATCH 11/22] ci: This PR is to trigger periodic CI testing From e8ea48683d4818e18ef4a250a3f17bfd4de203eb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 27 Sep 2025 11:16:13 +0000 Subject: [PATCH 12/22] ci: This PR is to trigger periodic CI testing From 74f871d976001742abdbadf21d37d23c828b444c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 4 Oct 2025 11:16:08 +0000 Subject: [PATCH 13/22] ci: This PR is to trigger periodic CI testing From 1c0722763e92f070662b91c189f9b666ada33c28 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 11 Oct 2025 11:16:29 +0000 Subject: [PATCH 14/22] ci: This PR is to trigger periodic CI testing From 9ad7ffb9da06ba08016ce06caa10cffa6911a3e3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 Oct 2025 11:17:09 +0000 Subject: [PATCH 15/22] ci: This PR is to trigger periodic CI testing From 9ec602bd6d75e3eb45626ebb0d318515e5d22186 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Oct 2025 11:17:13 +0000 Subject: [PATCH 16/22] ci: This PR is to trigger periodic CI testing From ddbae60c2386b18d41db1d5c9654abbdf2833a52 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 1 Nov 2025 11:17:22 +0000 Subject: [PATCH 17/22] ci: This PR is to trigger periodic CI testing From ca647cb6dbfc5a3e278328d4bc879d9edd779905 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 8 Nov 2025 11:17:47 +0000 Subject: [PATCH 18/22] ci: This PR is to trigger periodic CI testing From df9de586bae400f4223c357a88c3f48826ea01d6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 15 Nov 2025 11:17:47 +0000 Subject: [PATCH 19/22] ci: This PR is to trigger periodic CI testing From 52bd8d579805ca508df4c7d9bd0915fbda374990 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 22 Nov 2025 11:17:34 +0000 Subject: [PATCH 20/22] ci: This PR is to trigger periodic CI testing From d9fcb13d8f20146ea6e6354ffe64fd854a77d873 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 29 Nov 2025 11:18:51 +0000 Subject: [PATCH 21/22] ci: This PR is to trigger periodic CI testing From c93be05588b07f8b8048e37a785b84799ddcaab5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 6 Dec 2025 11:18:54 +0000 Subject: [PATCH 22/22] ci: This PR is to trigger periodic CI testing