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

Draft
wants to merge 67 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
8ca3a6d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 8, 2023
024423e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 9, 2023
a763ccc
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 15, 2023
590a695
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 22, 2023
493fe1b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 29, 2023
f3f3cea
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 5, 2023
ea6e2e9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 12, 2023
201b2a6
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 19, 2023
d8a9ea3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 26, 2023
4218299
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 3, 2023
22f5886
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 10, 2023
db96de0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 17, 2023
f254388
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 24, 2023
b6f16be
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 31, 2023
cf63ccf
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 7, 2024
218b9df
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 14, 2024
19fe345
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 21, 2024
0d26176
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 28, 2024
0985a20
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 4, 2024
e9eff35
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 11, 2024
2eaf66c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 18, 2024
cd027a2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 25, 2024
c7e5060
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 3, 2024
744d704
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 10, 2024
8e543b4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 17, 2024
4a3b423
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 24, 2024
036ca24
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 31, 2024
af1da95
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 7, 2024
5ee0ee7
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 14, 2024
c34119f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 21, 2024
d5cae9a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 28, 2024
05d6bba
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 5, 2024
d7bf967
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 12, 2024
96b6c95
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 19, 2024
a6dfd06
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 26, 2024
d3b387a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 2, 2024
73aa910
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 9, 2024
597281f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 16, 2024
faa461d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 23, 2024
f1dc134
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 30, 2024
a0745da
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 7, 2024
b2480ad
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 14, 2024
88f5665
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 21, 2024
b34f9ba
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 28, 2024
4083965
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 4, 2024
c058c51
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 11, 2024
1227298
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 18, 2024
464cbbe
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 25, 2024
f466af1
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 1, 2024
c5f466b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 8, 2024
95685bc
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 15, 2024
89db5ff
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 22, 2024
9d898f8
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 29, 2024
1c51682
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 6, 2024
24a4183
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 13, 2024
f4e420b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 20, 2024
76d14f6
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 27, 2024
3ef03c4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 3, 2024
3664a6f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 10, 2024
13b088e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 17, 2024
64ebef1
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 24, 2024
c997500
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 1, 2024
1238262
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 8, 2024
4bff1d0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 15, 2024
e11671e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 22, 2024
699ff75
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 29, 2024
8517778
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 5, 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