Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: This PR is to trigger periodic CI testing #132

Draft
wants to merge 68 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
a77ddb9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 8, 2023
28bd715
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 9, 2023
912c8a9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 15, 2023
396d2c5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 22, 2023
a82dee2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 29, 2023
3c53fad
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 5, 2023
6d9b3cb
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 12, 2023
19f3628
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 19, 2023
b731cf9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 26, 2023
b68886b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 3, 2023
9658621
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 10, 2023
bf245a9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 17, 2023
5e83dd0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 24, 2023
2ebad52
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 31, 2023
9358227
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 7, 2024
7b4a9af
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 14, 2024
bb6a33c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 21, 2024
3626af2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 28, 2024
e39d0e2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 4, 2024
d50a8cf
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 11, 2024
27b658a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 18, 2024
87d5855
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 25, 2024
4f21ff5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 3, 2024
f38c632
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 10, 2024
7a460d6
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 17, 2024
20aee52
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 24, 2024
fcc33d7
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 31, 2024
bd68d19
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 7, 2024
94dc0b3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 14, 2024
2c63710
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 21, 2024
5d93940
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 28, 2024
3c32a48
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 5, 2024
b0e7c6e
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 12, 2024
33b6644
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 19, 2024
e2a229f
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 26, 2024
99486e5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 2, 2024
96bec07
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 9, 2024
5cbc1e4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 16, 2024
096d588
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 23, 2024
b9beb33
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 30, 2024
093480c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 7, 2024
7e0eb9d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 14, 2024
bcfdaa2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 21, 2024
e2bd9e7
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 28, 2024
8a484de
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 4, 2024
afb6139
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 11, 2024
1476073
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 18, 2024
b455272
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 25, 2024
99c10f1
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 1, 2024
719da49
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 8, 2024
b9896c4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 15, 2024
0f8d7e9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 22, 2024
259b04e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 29, 2024
17def2a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 6, 2024
f2bcb43
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 13, 2024
34e7909
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 20, 2024
e9c979b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 27, 2024
2f08f96
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 3, 2024
8f3d846
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 10, 2024
c28e733
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 17, 2024
58dd79d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 24, 2024
52c1eb4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 1, 2024
8e0e612
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 8, 2024
b6bb20d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 15, 2024
20bc0ee
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 22, 2024
892532d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 29, 2024
2ac061b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 5, 2025
65d876d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions tests/callback_plugins/dump_packages.py
Original file line number Diff line number Diff line change
@@ -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