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 79 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
822445a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 7, 2023
4d11ce8
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 9, 2023
8bf2c2a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 14, 2023
74c57ff
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 21, 2023
dcfe4ab
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 28, 2023
3dc41b0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 4, 2023
509e0d2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 11, 2023
df8cb59
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 18, 2023
d874ae9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 25, 2023
f4fe038
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 2, 2023
ebb3227
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 9, 2023
48ce34f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 16, 2023
d7f6253
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 23, 2023
31d0afc
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 30, 2023
d09b3ae
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 6, 2024
f855701
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 13, 2024
a21dd4f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 20, 2024
48d885f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 27, 2024
bb6e941
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 3, 2024
8d77d6f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 10, 2024
1ff5f72
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 17, 2024
e36a126
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 24, 2024
9bccd3e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 2, 2024
169f2b9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 9, 2024
1232438
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 16, 2024
356748e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 23, 2024
19d2630
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 30, 2024
d76be48
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 6, 2024
e93bfe2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 13, 2024
ed4c078
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 20, 2024
a1f4920
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 27, 2024
9414211
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 4, 2024
16ec9ef
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 11, 2024
d8add2a
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 18, 2024
1ab3e1e
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 25, 2024
8f7cd53
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 1, 2024
d14eee7
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 8, 2024
69a69a8
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 15, 2024
2a7dbaa
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 22, 2024
23cb392
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 29, 2024
a8ece90
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 6, 2024
0e0f8e3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 13, 2024
c41a9c8
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 20, 2024
3fecfe5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 27, 2024
083dd77
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 3, 2024
3ebaa9f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 10, 2024
6c0e69e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 17, 2024
e4ebd24
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 24, 2024
e6700a1
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 31, 2024
82031cf
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 7, 2024
7de5988
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 14, 2024
7d4ef32
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 21, 2024
776a9df
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 28, 2024
2463046
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 5, 2024
c2ce0dd
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 12, 2024
636a9b5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 19, 2024
2270603
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 26, 2024
b8708e5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 2, 2024
344ef19
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 10, 2024
f323cf9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 16, 2024
39e2b4b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 23, 2024
0cde5ee
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 30, 2024
8c209dc
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 7, 2024
6556eb0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 14, 2024
6355e4a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 21, 2024
bfe17a4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 28, 2024
0a8fe20
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 4, 2025
6b3276d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 11, 2025
032fac2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 18, 2025
3dbf519
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 25, 2025
5132ebd
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 1, 2025
332f270
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 8, 2025
230823b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 15, 2025
5b64066
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 22, 2025
9544895
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 1, 2025
26a0050
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 8, 2025
e726639
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 15, 2025
559e678
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 22, 2025
40a4c51
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 29, 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