From 9c782f68315884fa1e1a8500444b205c6dad3f28 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 7 Oct 2023 07:07:28 +0000 Subject: [PATCH 01/53] ci: This PR is to trigger periodic CI testing --- tests/callback_plugins/dump_packages.py | 48 +++++++++++++++++++++++++ 1 file changed, 48 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..3ec9cf1 --- /dev/null +++ b/tests/callback_plugins/dump_packages.py @@ -0,0 +1,48 @@ +# -*- 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"] == "package" and fields["args"].get("state") != "absent": + if isinstance(fields["args"]["name"], list): + packages = " ".join(fields["args"]["name"]) + else: + packages = fields["args"]["name"] + self._display.display("lsrpackages: " + packages) From f3353ac20f50b11c3cac410d34530b8679d1319e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 22:59:47 +0000 Subject: [PATCH 02/53] ci: This PR is to trigger periodic CI testing --- tests/callback_plugins/dump_packages.py | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tests/callback_plugins/dump_packages.py b/tests/callback_plugins/dump_packages.py index 3ec9cf1..15aa6db 100644 --- a/tests/callback_plugins/dump_packages.py +++ b/tests/callback_plugins/dump_packages.py @@ -41,8 +41,19 @@ def __init__(self, *args, **kwargs): def v2_runner_on_ok(self, result): fields = result._task_fields if fields["action"] == "package" and fields["args"].get("state") != "absent": - if isinstance(fields["args"]["name"], list): - packages = " ".join(fields["args"]["name"]) - else: - packages = fields["args"]["name"] - self._display.display("lsrpackages: " + packages) + 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 0ae332d898174847b8ee334999d16a3d1f8b8079 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 14 Oct 2023 07:07:32 +0000 Subject: [PATCH 03/53] ci: This PR is to trigger periodic CI testing From 3d37b7bea9aee94c85f971fdf7fd1396775dc9b4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 21 Oct 2023 07:07:40 +0000 Subject: [PATCH 04/53] ci: This PR is to trigger periodic CI testing From a2ba1013ea10357234d1d73abc35eb4b02db683c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 28 Oct 2023 07:08:08 +0000 Subject: [PATCH 05/53] ci: This PR is to trigger periodic CI testing From 055d0777d44ed578c0103a43054fa71a48b929d8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 4 Nov 2023 07:08:30 +0000 Subject: [PATCH 06/53] ci: This PR is to trigger periodic CI testing From e90c2d8b6eb6a563d711e09bab807feb6eefe367 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 11 Nov 2023 07:07:45 +0000 Subject: [PATCH 07/53] ci: This PR is to trigger periodic CI testing --- tests/callback_plugins/dump_packages.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/callback_plugins/dump_packages.py b/tests/callback_plugins/dump_packages.py index 15aa6db..89a343d 100644 --- a/tests/callback_plugins/dump_packages.py +++ b/tests/callback_plugins/dump_packages.py @@ -40,7 +40,10 @@ def __init__(self, *args, **kwargs): def v2_runner_on_ok(self, result): fields = result._task_fields - if fields["action"] == "package" and fields["args"].get("state") != "absent": + if ( + fields["action"] in ["package", "dnf", "yum"] + and fields["args"].get("state") != "absent" + ): packages = set() if "invocation" in result._result: results = [result._result] From 1a140dd2c10f1476d7b92d00ce9f9deda410fdf1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 Nov 2023 07:08:00 +0000 Subject: [PATCH 08/53] ci: This PR is to trigger periodic CI testing From acf4a912c99f76c85f639247d114b21c17d492ec Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 07:08:52 +0000 Subject: [PATCH 09/53] ci: This PR is to trigger periodic CI testing From 8acf84464239004bc651692bfa5ebf235845b9e2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 2 Dec 2023 07:07:53 +0000 Subject: [PATCH 10/53] ci: This PR is to trigger periodic CI testing From 81a07659a826388b2600feff0c84fa2ce5aa885c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 9 Dec 2023 07:08:11 +0000 Subject: [PATCH 11/53] ci: This PR is to trigger periodic CI testing From 9c311904bbd16e83e5a79d763cc6bf40b1c52b60 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 16 Dec 2023 07:07:59 +0000 Subject: [PATCH 12/53] ci: This PR is to trigger periodic CI testing From 2a9b3ac35e94d346f7f668cff036bc3befa25a66 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 23 Dec 2023 07:08:07 +0000 Subject: [PATCH 13/53] ci: This PR is to trigger periodic CI testing From 47accccd3bbf23d147d2a0feb0faf708c33704e4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 30 Dec 2023 07:07:59 +0000 Subject: [PATCH 14/53] ci: This PR is to trigger periodic CI testing From 574412828d0493383fbacb4e9ed866070db06627 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 6 Jan 2024 07:08:18 +0000 Subject: [PATCH 15/53] ci: This PR is to trigger periodic CI testing From 60220589a1314b2cfdff5de6075733b34c44cd94 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 07:08:12 +0000 Subject: [PATCH 16/53] ci: This PR is to trigger periodic CI testing From 4348a5ba7514f5f21eab0b00d2a642b38c260d9a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 20 Jan 2024 07:08:20 +0000 Subject: [PATCH 17/53] ci: This PR is to trigger periodic CI testing From a2254f892f7909e2006503dedaafb95cd45777fb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 27 Jan 2024 07:08:11 +0000 Subject: [PATCH 18/53] ci: This PR is to trigger periodic CI testing From 01203d9b675c283470752ab7ad8a80783f4a8cad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 3 Feb 2024 07:08:41 +0000 Subject: [PATCH 19/53] ci: This PR is to trigger periodic CI testing From 86bd6ac533ed8d85563f8a01ea518a2febf8939f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 10 Feb 2024 07:08:28 +0000 Subject: [PATCH 20/53] ci: This PR is to trigger periodic CI testing From 01308b242907209459b16b40c93db7de94a35d85 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 17 Feb 2024 07:07:59 +0000 Subject: [PATCH 21/53] ci: This PR is to trigger periodic CI testing From 224da26d8c571474d5f0a67413a48cc38800f478 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 24 Feb 2024 07:08:37 +0000 Subject: [PATCH 22/53] ci: This PR is to trigger periodic CI testing From 656b58a350e9be8d71942f1b5815c27636a06bae Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 2 Mar 2024 07:07:46 +0000 Subject: [PATCH 23/53] ci: This PR is to trigger periodic CI testing From e4d244e608dc67192c3cc62957124768db92bfa0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 9 Mar 2024 07:08:09 +0000 Subject: [PATCH 24/53] ci: This PR is to trigger periodic CI testing From 4cb2c9a011bbc5c29ad99c993e1eb11c95d9bbd3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 16 Mar 2024 07:08:46 +0000 Subject: [PATCH 25/53] ci: This PR is to trigger periodic CI testing From 401c40b1b63c9604ddc0a6821cf24ebbc71b3e49 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 23 Mar 2024 07:09:48 +0000 Subject: [PATCH 26/53] ci: This PR is to trigger periodic CI testing From adc1549196ddad78a89ecd036a26b6a79ea64ee5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 30 Mar 2024 07:09:14 +0000 Subject: [PATCH 27/53] ci: This PR is to trigger periodic CI testing From a60916d620e78ee129adbc260dcc1dc02bdfe1bf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 6 Apr 2024 07:08:56 +0000 Subject: [PATCH 28/53] ci: This PR is to trigger periodic CI testing From a0c901444ed2420f340d89dc2c5ba930e96bc396 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 13 Apr 2024 07:09:57 +0000 Subject: [PATCH 29/53] ci: This PR is to trigger periodic CI testing From 8385c72051592d5fccc77a0d78b2911809abd1fa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 20 Apr 2024 07:08:23 +0000 Subject: [PATCH 30/53] ci: This PR is to trigger periodic CI testing From 380c5d07bdcad3dbf577c3eb55c2e3049c0f67a7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 27 Apr 2024 07:08:13 +0000 Subject: [PATCH 31/53] ci: This PR is to trigger periodic CI testing From 81739df9f6aeed939dd6b5ad666022eb6cd9651a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 4 May 2024 07:09:25 +0000 Subject: [PATCH 32/53] ci: This PR is to trigger periodic CI testing From 8268aca38680da30f70ab2273c9cb4db326ed014 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 11 May 2024 07:10:15 +0000 Subject: [PATCH 33/53] ci: This PR is to trigger periodic CI testing From d6dbaa9ff3987ccee69cab4fb4e43ba5a78e1b4a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 May 2024 07:09:18 +0000 Subject: [PATCH 34/53] ci: This PR is to trigger periodic CI testing From b140ba76c4638429f4bd2999de393e03f7778dfb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 May 2024 07:08:22 +0000 Subject: [PATCH 35/53] ci: This PR is to trigger periodic CI testing From e0d5e531f4d3376a91e6cb963ecb6507961d1941 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 1 Jun 2024 07:08:44 +0000 Subject: [PATCH 36/53] ci: This PR is to trigger periodic CI testing From 9ac8e9361d2d362781d1a0c8b0a5aa99431e5d3a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 8 Jun 2024 07:10:02 +0000 Subject: [PATCH 37/53] ci: This PR is to trigger periodic CI testing From f4f3866259b70f93d3be5e66e93c004423bc5fe9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 15 Jun 2024 07:10:49 +0000 Subject: [PATCH 38/53] ci: This PR is to trigger periodic CI testing From 9173a3de4e5ac4853009f81ce76cb31ab099af0d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 22 Jun 2024 07:10:49 +0000 Subject: [PATCH 39/53] ci: This PR is to trigger periodic CI testing From cc810ae2794be3326687ce8e178ff4c96521b5b6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 29 Jun 2024 07:10:19 +0000 Subject: [PATCH 40/53] ci: This PR is to trigger periodic CI testing From 6cb750918af7661f8fa062796d58b98790e9de8f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 6 Jul 2024 07:08:57 +0000 Subject: [PATCH 41/53] ci: This PR is to trigger periodic CI testing From edc852ac76f37dd8a6277e80b500ee2d18e973b9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 13 Jul 2024 07:10:10 +0000 Subject: [PATCH 42/53] ci: This PR is to trigger periodic CI testing From 86ebfb0cc655aecbf67d10bb5e0b9ccdc1a9732e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 20 Jul 2024 07:10:10 +0000 Subject: [PATCH 43/53] ci: This PR is to trigger periodic CI testing From e792542341411a26f437ed9f68f51038d7b49fbc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 27 Jul 2024 07:10:47 +0000 Subject: [PATCH 44/53] ci: This PR is to trigger periodic CI testing From ef570790af661466d3c1410d2e913b51a773624b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 3 Aug 2024 07:09:00 +0000 Subject: [PATCH 45/53] 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 74e69ea944932b3f0234c7fe422bab80fe7d05a1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 10 Aug 2024 07:09:13 +0000 Subject: [PATCH 46/53] ci: This PR is to trigger periodic CI testing From f71720ace60721fcf6b74e6897efc34b5b2e3c7f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 17 Aug 2024 07:09:08 +0000 Subject: [PATCH 47/53] ci: This PR is to trigger periodic CI testing From 8ab8d2ca3adef829c6ea69c60800ca13d4eb32fc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 24 Aug 2024 07:09:08 +0000 Subject: [PATCH 48/53] ci: This PR is to trigger periodic CI testing From 8d62ff45021fd7fb8a8d296bf92cbb9835ebe388 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 31 Aug 2024 07:09:33 +0000 Subject: [PATCH 49/53] ci: This PR is to trigger periodic CI testing From 3694121730d50210163065570f5ff8db3bcf3331 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 7 Sep 2024 07:11:35 +0000 Subject: [PATCH 50/53] ci: This PR is to trigger periodic CI testing From 98f5d79e01ecacc767aaa278509cba715c63d513 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 14 Sep 2024 07:11:05 +0000 Subject: [PATCH 51/53] ci: This PR is to trigger periodic CI testing From bd8600c7468472f5541581ccced3dbc63a785149 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 21 Sep 2024 07:10:11 +0000 Subject: [PATCH 52/53] ci: This PR is to trigger periodic CI testing From 4b2406dd84568ca084190b336eb92ffd8590919b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 28 Sep 2024 07:16:55 +0000 Subject: [PATCH 53/53] ci: This PR is to trigger periodic CI testing