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 #58

Draft
wants to merge 69 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
f813070
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 7, 2023
7ed35bd
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 9, 2023
54b0c09
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 14, 2023
319b281
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 21, 2023
feb5d94
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 28, 2023
84fd1d6
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 4, 2023
94a2ba5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 11, 2023
8ea50db
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 18, 2023
a9124c2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 25, 2023
2d14678
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 2, 2023
b6f7c07
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 9, 2023
fb4a5fa
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 16, 2023
f6fec21
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 23, 2023
b686fbd
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 30, 2023
6d765af
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 6, 2024
11cae53
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 13, 2024
912d3ce
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 20, 2024
5a9e6a7
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 27, 2024
809ea35
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 3, 2024
11bdaaa
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 10, 2024
a269092
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 17, 2024
306b417
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 24, 2024
c2243f3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 2, 2024
b606496
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 9, 2024
e92eb43
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 16, 2024
2b7f2ce
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 23, 2024
9ad3d13
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 30, 2024
55b2624
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 6, 2024
0fc9d36
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 13, 2024
b755a61
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 20, 2024
106ff96
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 27, 2024
5813f05
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 4, 2024
f92a53c
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 11, 2024
aae4985
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 18, 2024
d1d68fb
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 25, 2024
da3c5a2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 1, 2024
88117ad
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 8, 2024
7756d95
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 15, 2024
1f216b4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 22, 2024
582c565
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 29, 2024
4b05d67
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 6, 2024
a43802e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 13, 2024
bd1b730
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 20, 2024
f1397c3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 27, 2024
ef352f9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 3, 2024
9794796
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 10, 2024
f4a68ea
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 17, 2024
df32eff
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 24, 2024
3079a5b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 31, 2024
e715537
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 7, 2024
9591555
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 14, 2024
22101ad
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 21, 2024
22434f7
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 28, 2024
fac2f0e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 5, 2024
5da3d01
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 12, 2024
f307c39
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 19, 2024
e689c55
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 26, 2024
598beee
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 2, 2024
074cb84
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 10, 2024
c4256d2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 16, 2024
dcda3a4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 23, 2024
7c350d1
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 30, 2024
f78edc3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 7, 2024
57aee6c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 14, 2024
b7d9797
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 21, 2024
39dc751
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 28, 2024
d9ba665
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 4, 2025
f78509f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 11, 2025
0779b3d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 18, 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