From 2cb27b8e4525c580c63d2fb4809d206bddfe6515 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 14 Mar 2026 23:51:29 +0000 Subject: [PATCH 01/21] 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 5a73ac48cfe454033766df95fbfed798b17e6ec2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 21 Mar 2026 23:49:10 +0000 Subject: [PATCH 02/21] ci: This PR is to trigger periodic CI testing From a08b701279a3dc43aeed24db75147aa7048c5269 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 28 Mar 2026 23:55:59 +0000 Subject: [PATCH 03/21] ci: This PR is to trigger periodic CI testing From 15659b38f76fcfb871d0edc17c4e33307d140b3d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 4 Apr 2026 23:56:19 +0000 Subject: [PATCH 04/21] ci: This PR is to trigger periodic CI testing From 91f29c40cfd2df9ba3591944632445543dec5a65 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 11 Apr 2026 23:59:24 +0000 Subject: [PATCH 05/21] ci: This PR is to trigger periodic CI testing From 6d2859447c47c7ec5ef7eab1eab402e4d3335740 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 01:24:55 +0000 Subject: [PATCH 06/21] ci: This PR is to trigger periodic CI testing From ddea662225b70595102bafffa1a54d8ce8193a58 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 26 Apr 2026 00:04:16 +0000 Subject: [PATCH 07/21] ci: This PR is to trigger periodic CI testing From a684ccb5e5d42a2ef1af88398dae046eb1b9b303 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 3 May 2026 00:08:25 +0000 Subject: [PATCH 08/21] ci: This PR is to trigger periodic CI testing From d789159e0f1983772bc7374c71adcf261ef4efbb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 10 May 2026 00:12:29 +0000 Subject: [PATCH 09/21] ci: This PR is to trigger periodic CI testing From 32ba568e19fc1c67b15db2e07b49d71065157c7b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 17 May 2026 01:24:12 +0000 Subject: [PATCH 10/21] ci: This PR is to trigger periodic CI testing From aa55c0b55f0f4344ec4e008837838aa6ef68866b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 24 May 2026 01:29:41 +0000 Subject: [PATCH 11/21] ci: This PR is to trigger periodic CI testing From e049564cb5a6800f87f5c655ee55e0daaac41cbc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 01:34:48 +0000 Subject: [PATCH 12/21] ci: This PR is to trigger periodic CI testing From aede5128eb3a51355e3c85814d8d7209fe732a62 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 7 Jun 2026 01:37:55 +0000 Subject: [PATCH 13/21] ci: This PR is to trigger periodic CI testing From a43cf1b70a5df26290adc8ebe0d9c892af563a79 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 01:55:14 +0000 Subject: [PATCH 14/21] ci: This PR is to trigger periodic CI testing From 5d6b81d7bd6e952fc81005041f025ed0ae285b8a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 21 Jun 2026 01:59:11 +0000 Subject: [PATCH 15/21] ci: This PR is to trigger periodic CI testing From e509e7a84c87bc9bfc849f141a7e58abd231fbad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 28 Jun 2026 01:33:43 +0000 Subject: [PATCH 16/21] ci: This PR is to trigger periodic CI testing From 67a7dc59c28203f532c5da96e38b1e34d3682c1d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 01:16:09 +0000 Subject: [PATCH 17/21] ci: This PR is to trigger periodic CI testing From 27c5b1b421b3bc80fcde53f6d127f4aae466c4da Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 12 Jul 2026 01:05:23 +0000 Subject: [PATCH 18/21] ci: This PR is to trigger periodic CI testing From 4eb7b83ed4745ff32f6d8729a151d005749c2fed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 19 Jul 2026 01:01:56 +0000 Subject: [PATCH 19/21] ci: This PR is to trigger periodic CI testing From 93107697bad9ec0c3c041bc2d4b4765e59d85bb7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 26 Jul 2026 01:07:35 +0000 Subject: [PATCH 20/21] ci: This PR is to trigger periodic CI testing From cc5e8f99aa864682c443733f09de85fb69829b10 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 2 Aug 2026 01:07:02 +0000 Subject: [PATCH 21/21] ci: This PR is to trigger periodic CI testing