From b696253d57252cf8acbb03b9d8c3ccbd7bcb4562 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 4 May 2024 01:15:34 +0000 Subject: [PATCH 01/38] ci: This PR is to trigger periodic CI testing --- tests/callback_plugins/dump_packages.py | 62 +++++++++++++++++++++++++ 1 file changed, 62 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..89a343d --- /dev/null +++ b/tests/callback_plugins/dump_packages.py @@ -0,0 +1,62 @@ +# -*- 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) + + self._display.display("lsrpackages: " + " ".join(sorted(list(packages)))) From e2e7d11fb0ce6601ae88941b95f6b59020c488a1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 11 May 2024 01:16:58 +0000 Subject: [PATCH 02/38] ci: This PR is to trigger periodic CI testing From 0052be274e81039f0e91ee4efb7bb0ba936ff337 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 01:17:55 +0000 Subject: [PATCH 03/38] ci: This PR is to trigger periodic CI testing From a72ea28dc01a914abe269597efe74f09097ffeb2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 May 2024 01:17:56 +0000 Subject: [PATCH 04/38] ci: This PR is to trigger periodic CI testing From d3c176ee13e019eb367812458b113f684795010f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 1 Jun 2024 23:18:24 +0000 Subject: [PATCH 05/38] ci: This PR is to trigger periodic CI testing From 2599d775b5d60240ef29aefa772e428396eadfd0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 8 Jun 2024 23:18:44 +0000 Subject: [PATCH 06/38] ci: This PR is to trigger periodic CI testing From 78b4d99a83c595c4a30e3778376d7fa66f118a85 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 15 Jun 2024 23:17:58 +0000 Subject: [PATCH 07/38] ci: This PR is to trigger periodic CI testing From 9d559afcc2edf1c9fa993c60b4b655bd64df7662 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 22 Jun 2024 23:16:32 +0000 Subject: [PATCH 08/38] ci: This PR is to trigger periodic CI testing From 1e0b0dd8587dc2fdcc191d413b405e3530a6693e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 29 Jun 2024 23:17:53 +0000 Subject: [PATCH 09/38] ci: This PR is to trigger periodic CI testing From e1cbf3ab592647f4e1fb8ff164da4151555e8e53 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 6 Jul 2024 23:16:30 +0000 Subject: [PATCH 10/38] ci: This PR is to trigger periodic CI testing From 8624db392deb3db90637fbce7605ddb1f92322b4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 13 Jul 2024 23:16:41 +0000 Subject: [PATCH 11/38] ci: This PR is to trigger periodic CI testing From 215eba5837218fe95c51a0447ea4c60c3cf2b889 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 20 Jul 2024 23:17:30 +0000 Subject: [PATCH 12/38] ci: This PR is to trigger periodic CI testing From bcbf6779db340794537e7574396981694d6676fb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 28 Jul 2024 02:27:32 +0000 Subject: [PATCH 13/38] ci: This PR is to trigger periodic CI testing From 89e8b5995c092d7808bd12357439ad30ffbdec77 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 3 Aug 2024 23:19:38 +0000 Subject: [PATCH 14/38] ci: This PR is to trigger periodic CI testing --- tests/callback_plugins/dump_packages.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/callback_plugins/dump_packages.py b/tests/callback_plugins/dump_packages.py index 89a343d..433fe54 100644 --- a/tests/callback_plugins/dump_packages.py +++ b/tests/callback_plugins/dump_packages.py @@ -58,5 +58,7 @@ def v2_runner_on_ok(self, result): 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 f7e683abb6fbd2c7a8954e4f6c8338400d3b6269 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 10 Aug 2024 23:19:10 +0000 Subject: [PATCH 15/38] ci: This PR is to trigger periodic CI testing From a6e6439c88f71560e21222c07f0a1985569b2560 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 17 Aug 2024 23:16:57 +0000 Subject: [PATCH 16/38] ci: This PR is to trigger periodic CI testing From c266dc6d090d6f3ea7cea74269f9724cd501e973 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 24 Aug 2024 23:18:09 +0000 Subject: [PATCH 17/38] ci: This PR is to trigger periodic CI testing From 798b925c5d9d1c540976037ab23ffb6acde2f6ff Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 31 Aug 2024 23:17:54 +0000 Subject: [PATCH 18/38] ci: This PR is to trigger periodic CI testing From f3586736074627163bc10846f70d36d030a2282b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 7 Sep 2024 23:17:52 +0000 Subject: [PATCH 19/38] ci: This PR is to trigger periodic CI testing From a852bd77ad72ea56e46e56c76514ff13c499f4a7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 14 Sep 2024 23:17:58 +0000 Subject: [PATCH 20/38] ci: This PR is to trigger periodic CI testing From 2cba2f5e159b748b4a61e6463da16734bd1df48d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 21 Sep 2024 23:18:18 +0000 Subject: [PATCH 21/38] ci: This PR is to trigger periodic CI testing From b256c54f63041d3f05f67644de8b08ed641531b2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 28 Sep 2024 23:19:23 +0000 Subject: [PATCH 22/38] ci: This PR is to trigger periodic CI testing From 55ce790677359ed14481b6034f5eecce32a34f65 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 5 Oct 2024 23:18:40 +0000 Subject: [PATCH 23/38] ci: This PR is to trigger periodic CI testing From a0f2c4907c9b3fb3cb082bfe967c7087a33d90d7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 12 Oct 2024 23:21:16 +0000 Subject: [PATCH 24/38] ci: This PR is to trigger periodic CI testing From d07ae53cd521a3d2db22a70a750f79e506a9f856 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 19 Oct 2024 23:19:07 +0000 Subject: [PATCH 25/38] ci: This PR is to trigger periodic CI testing From 6e5ba64f69c77821e6e082a9589e0449d954a897 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 26 Oct 2024 23:19:34 +0000 Subject: [PATCH 26/38] ci: This PR is to trigger periodic CI testing From 0847ab9b08a29421e2275c4335ebbe8b7d6c8cd8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 2 Nov 2024 23:21:16 +0000 Subject: [PATCH 27/38] ci: This PR is to trigger periodic CI testing From 5c40946b19ebe927e1d58173cb537bb52b98a890 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 10 Nov 2024 02:13:23 +0000 Subject: [PATCH 28/38] ci: This PR is to trigger periodic CI testing From 06c142b94317a9592c868f521f3741a7b0f0f94b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 16 Nov 2024 23:21:00 +0000 Subject: [PATCH 29/38] ci: This PR is to trigger periodic CI testing From 209094dd44f3a708cb112a9a996a25862e7e245a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 23 Nov 2024 23:20:24 +0000 Subject: [PATCH 30/38] ci: This PR is to trigger periodic CI testing From 41f7a535fd969870aa53e7de7a41888f815b4314 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 30 Nov 2024 23:19:41 +0000 Subject: [PATCH 31/38] ci: This PR is to trigger periodic CI testing From d2d30bf0a14f903d7278afccf3ffa1fcebad1a29 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 7 Dec 2024 23:19:35 +0000 Subject: [PATCH 32/38] ci: This PR is to trigger periodic CI testing From 1e704c806e3c1d4e99ded8cb9df3b6dc6bac27f4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 14 Dec 2024 23:19:35 +0000 Subject: [PATCH 33/38] ci: This PR is to trigger periodic CI testing From fa5fcfe5c5d06e1d03c3c4df3d76f961d0d447ed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 21 Dec 2024 23:18:10 +0000 Subject: [PATCH 34/38] ci: This PR is to trigger periodic CI testing From 11be07f3ece1ee62bfff9293aa68665f91ca3c34 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 28 Dec 2024 23:19:04 +0000 Subject: [PATCH 35/38] ci: This PR is to trigger periodic CI testing From 8a0196cc8510fc82d0c93091001d2032dcd42765 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 4 Jan 2025 23:18:59 +0000 Subject: [PATCH 36/38] ci: This PR is to trigger periodic CI testing From 315028497d44e98a5c352d49080c9437aa01c476 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 11 Jan 2025 23:18:30 +0000 Subject: [PATCH 37/38] ci: This PR is to trigger periodic CI testing From 8214fc6528c2c6f28e7ef63185c0ef200cf226c1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2025 23:17:53 +0000 Subject: [PATCH 38/38] ci: This PR is to trigger periodic CI testing