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 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
d5adfee
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 8, 2023
b80f825
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 9, 2023
5ecb82f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 15, 2023
041e2df
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 22, 2023
101d6ee
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 29, 2023
7a1476d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 5, 2023
ebf0bc3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 12, 2023
95e0f25
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 19, 2023
263cf7f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 26, 2023
cb9bc52
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 3, 2023
c12c6c2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 10, 2023
4614a02
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 17, 2023
890aaf8
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 24, 2023
89d4c7b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 31, 2023
fa61956
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 7, 2024
7ed8507
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 14, 2024
a5f643c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 21, 2024
21f019a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 28, 2024
4c224cc
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 4, 2024
97372dc
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 11, 2024
0e16de8
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 18, 2024
05c4c6e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 25, 2024
5d7fdce
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 3, 2024
8676147
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 10, 2024
3f3af9c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 17, 2024
690d869
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 24, 2024
e9bf5bd
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 31, 2024
fd6e600
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 7, 2024
c3465d6
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 14, 2024
2a2baaa
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 21, 2024
c3ad782
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 28, 2024
5569f90
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 5, 2024
2c281c6
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 12, 2024
fb57cd7
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 19, 2024
1baa249
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 26, 2024
0fd688b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 2, 2024
7bdf1c9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 9, 2024
26137c1
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 16, 2024
095c6d0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 23, 2024
895e345
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 30, 2024
bdb91bd
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 7, 2024
462695a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 14, 2024
c3a76b5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 21, 2024
b441629
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 28, 2024
2ed6f0d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 4, 2024
f11aa3b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 11, 2024
988104e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 18, 2024
c4fc855
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 25, 2024
658cdd6
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 1, 2024
5d39359
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 8, 2024
01bdb4f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 15, 2024
f7e866e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 22, 2024
5f808f2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 29, 2024
328922f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 6, 2024
5ae5434
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 13, 2024
af67fa5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 20, 2024
4f57729
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 27, 2024
2358d6c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 3, 2024
830cc30
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 10, 2024
8993a21
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 17, 2024
37b6136
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 24, 2024
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