From 9f3c2c67c7a81af3033c380e68d628f89291e090 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/36] 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 48038a7fa462a92af63456dcecbb237a7e44a37b 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/36] ci: This PR is to trigger periodic CI testing From e375e2023139b38f3ad02122599fe3a907f20f84 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/36] ci: This PR is to trigger periodic CI testing From 41014bd044de586125c1eead3c8d280fc7a30f5a 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/36] ci: This PR is to trigger periodic CI testing From 19121d64d61381e993f7a59f161cb435f39a834a 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/36] ci: This PR is to trigger periodic CI testing From a7cbcaa861930494acf032282292637fff2844f2 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/36] ci: This PR is to trigger periodic CI testing From ef9154a869058c4cebc8ea6e6cc09cfef1e3e8d1 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/36] ci: This PR is to trigger periodic CI testing From 952c624e3cc4bb4e301716b09f68c0f658ac1b25 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/36] ci: This PR is to trigger periodic CI testing From ff3fa603888378aad313b24b541a81a6d2addbad 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/36] ci: This PR is to trigger periodic CI testing From 5fc3054ba2e8a2129be109fe3d8c904763bad1bc 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/36] ci: This PR is to trigger periodic CI testing From 183e90e48f4b15cbc0d6f9d170a199f5fe8527ea 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/36] ci: This PR is to trigger periodic CI testing From 2c0b98d64f5f0d2381f986ee628953c6179f00d3 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/36] ci: This PR is to trigger periodic CI testing From e7e51f9cf719558d58439e9357fe04d27fc9a72e 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/36] ci: This PR is to trigger periodic CI testing From b762068d5c40f896c2840bf54971486ca2f04677 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/36] 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 5c45297c2bb53bcd7b53695447d50afafa1356fe 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/36] ci: This PR is to trigger periodic CI testing From 3bd5133fab51e798fdb98bbacf79b04c3e09d963 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/36] ci: This PR is to trigger periodic CI testing From 5e7ad7473afb37765f3f51c7c205b5599589b270 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/36] ci: This PR is to trigger periodic CI testing From 9a42fe07c7807810c60d77af4b601fd6f9182ed9 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/36] ci: This PR is to trigger periodic CI testing From c437f16c9a2ca9b5f81492ccb97a15462c7d0826 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/36] ci: This PR is to trigger periodic CI testing From c0385b7a197823efeeaa3910a1564d59cb42bb1c 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/36] ci: This PR is to trigger periodic CI testing From 2dd02c1c332f4227a9fb5da94f5d5e5f39a03c41 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/36] ci: This PR is to trigger periodic CI testing From ea1fc11067929710fe734beb73402c179d75dfbe 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/36] ci: This PR is to trigger periodic CI testing From 8b8dd14f5bcbe54dd190cc40b99a371f06314f15 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/36] ci: This PR is to trigger periodic CI testing From 18425ef117951d289c59868bd243f64f4eb5fd93 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/36] ci: This PR is to trigger periodic CI testing From 7511cf696b89f5a1fdbc22355588e8e0789de64f 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/36] ci: This PR is to trigger periodic CI testing From 1677f86a5ef84f800b41e035c0664b64d47c3290 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/36] ci: This PR is to trigger periodic CI testing From 7fc3b8c212f20d2af0c862077669e353fc7680d0 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/36] ci: This PR is to trigger periodic CI testing From 1a34c6d8ff36554e4a4c3c66d3fb731b7a8dbb5c 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/36] ci: This PR is to trigger periodic CI testing From 59c81f320377cab6b551f5ffd894bcff628b334a 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/36] ci: This PR is to trigger periodic CI testing From cfa06fa48df83ccf64c14175d18b300a5f9eedc0 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/36] ci: This PR is to trigger periodic CI testing From 4f8f9b586a131fe0855798a0576d5aba7e02bd16 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/36] ci: This PR is to trigger periodic CI testing From 0bdc1933a5f00dbcd9b8b1226487b5c656d0f621 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/36] ci: This PR is to trigger periodic CI testing From 41f670b70f29937149b0eebf05e43b2f226cbd01 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/36] ci: This PR is to trigger periodic CI testing From 5e615eb39a774fd8921f1825bb9d571dee66e151 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/36] ci: This PR is to trigger periodic CI testing From 4cd20f3843dbf9f15865e9538b40790e1c0f356a 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/36] ci: This PR is to trigger periodic CI testing From c1519145ed621d146c0f5ee5d2cbc36b4638c356 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/36] ci: This PR is to trigger periodic CI testing