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

Draft
wants to merge 70 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
af22511
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 8, 2023
00e88ff
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 9, 2023
801bd49
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 15, 2023
c24eead
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 22, 2023
fe1185f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 29, 2023
27666d2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 5, 2023
e6cdc68
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 12, 2023
e6bd9c3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 19, 2023
c3659bf
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 26, 2023
d6fa838
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 3, 2023
ffb2113
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 10, 2023
cbb0f76
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 17, 2023
4396237
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 24, 2023
caa44e1
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 31, 2023
bdbc7f0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 7, 2024
446b5da
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 14, 2024
874fbef
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 21, 2024
8a67a05
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 28, 2024
3288bfc
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 4, 2024
5dcfbd9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 11, 2024
4d63879
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 18, 2024
045a6cc
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 25, 2024
8f1aca8
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 3, 2024
471b73e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 10, 2024
4d027c5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 17, 2024
331c592
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 24, 2024
406fbe0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 31, 2024
f7b27e9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 7, 2024
03ac4c6
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 14, 2024
0613aa7
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 21, 2024
ac19fb0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 28, 2024
96f859e
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 5, 2024
2d030a3
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 12, 2024
0501b2e
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 19, 2024
f7fb3d5
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 26, 2024
84b573e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 2, 2024
5436f21
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 9, 2024
3b3fd85
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 16, 2024
7f285a2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 23, 2024
b8347c4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 30, 2024
ad952be
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 7, 2024
764ce69
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 14, 2024
82c8cb8
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 21, 2024
71f200e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 28, 2024
fa67894
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 4, 2024
4d9268d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 11, 2024
8322a8e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 18, 2024
9d41a47
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 25, 2024
33f1ba8
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 1, 2024
d719bee
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 8, 2024
cbda080
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 15, 2024
e29a6be
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 22, 2024
a04d189
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 29, 2024
e7859b1
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 6, 2024
8656c9f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 13, 2024
1e2dd00
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 20, 2024
06b1edd
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 27, 2024
8024ef3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 3, 2024
feaf8a4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 10, 2024
8e491ea
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 17, 2024
3e2705d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 24, 2024
40433c1
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 1, 2024
dc72ea4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 8, 2024
293208b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 15, 2024
58527ca
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 22, 2024
d7060f0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 29, 2024
d820bf1
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 5, 2025
ac48163
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 12, 2025
c21b2a2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 19, 2025
8e25217
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 26, 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