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

This PR is to trigger periodic CI testing #5

Draft
wants to merge 61 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
fb82208
This PR is to trigger periodic CI testing
github-actions[bot] Nov 18, 2023
8356ef4
This PR is to trigger periodic CI testing
github-actions[bot] Nov 25, 2023
b850894
This PR is to trigger periodic CI testing
github-actions[bot] Dec 2, 2023
0e2fbd9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 9, 2023
a3d3780
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 16, 2023
bd90fde
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 23, 2023
0ff13f3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 30, 2023
e328660
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 6, 2024
ca2a8b0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 13, 2024
d710f4b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 20, 2024
ddc85ce
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 27, 2024
c81f8b3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 3, 2024
fc434de
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 10, 2024
8757d20
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 17, 2024
caca50a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 24, 2024
e32de39
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 2, 2024
d151702
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 9, 2024
8afb909
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 16, 2024
f6dd211
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 23, 2024
05efb95
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 30, 2024
f43c3eb
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 6, 2024
6ff593d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 13, 2024
f7ccf51
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 20, 2024
54e5bf5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 27, 2024
a99af27
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 4, 2024
bcf55d4
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 11, 2024
0ad1708
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 18, 2024
40982f1
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 25, 2024
9f4295b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 1, 2024
3f58675
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 8, 2024
4dc370a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 15, 2024
739ca7f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 22, 2024
c8d55fa
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 29, 2024
978e31d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 6, 2024
3450d89
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 13, 2024
b788220
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 20, 2024
acaeb51
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 27, 2024
18b1acf
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 3, 2024
6dadefe
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 10, 2024
c93b7c2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 17, 2024
f8ba542
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 24, 2024
74b1d01
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 31, 2024
c8d6f08
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 7, 2024
d939a53
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 14, 2024
ae8d0e1
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 21, 2024
0199705
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 28, 2024
976c299
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 5, 2024
41751d3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 12, 2024
7de3ef9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 19, 2024
83a5917
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 26, 2024
4bbdb93
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 2, 2024
8572315
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 9, 2024
9fd4623
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 16, 2024
f31e02e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 23, 2024
ba94fcc
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 30, 2024
1d05585
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 7, 2024
e7621ce
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 14, 2024
d7419a3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 21, 2024
e4c06ff
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 28, 2024
4e75d79
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 4, 2025
a20e71b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 11, 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