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

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
76de270
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 7, 2023
1ab659d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 9, 2023
a2c9376
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 14, 2023
412e153
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 21, 2023
8a658e3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 28, 2023
ca3598c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 4, 2023
e75cb1c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 11, 2023
26ba53f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 18, 2023
5a79172
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 25, 2023
fdcb1dc
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 2, 2023
be4a8a2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 9, 2023
d9fc297
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 16, 2023
9a01b66
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 23, 2023
2d8dd9d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 30, 2023
80eff26
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 6, 2024
8e2deab
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 13, 2024
b1f3b92
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 20, 2024
a89ed73
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 27, 2024
e869a86
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 3, 2024
181e1b0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 10, 2024
a4c1658
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 17, 2024
58b8941
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 24, 2024
45806d4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 2, 2024
073c999
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 9, 2024
bb04b88
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 16, 2024
b94a98c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 23, 2024
adc2024
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 30, 2024
e3d97ec
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 6, 2024
baf764a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 13, 2024
8662102
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 20, 2024
00f4d9e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 27, 2024
d7230b1
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 4, 2024
d64d5a4
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 11, 2024
1584644
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 18, 2024
4a4299b
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 25, 2024
a503b92
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 1, 2024
28ef626
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 8, 2024
d4354c2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 15, 2024
f8b124d
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 22, 2024
fe6bb49
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 29, 2024
d916899
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 6, 2024
4edb0b0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 13, 2024
2fefc63
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 20, 2024
8c67029
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 27, 2024
1f075e0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 3, 2024
2dec09b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 10, 2024
de4ae86
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 17, 2024
e0eb34e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 24, 2024
e4e57d6
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 31, 2024
67c15bc
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 7, 2024
faa8d7b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 14, 2024
0186800
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 21, 2024
fc680b3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 28, 2024
2920a41
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 5, 2024
ae4a9a2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 12, 2024
e5dda81
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 19, 2024
e171c90
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 26, 2024
a4ecb90
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 2, 2024
72fd79f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 9, 2024
5ebfd6f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 16, 2024
858884b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 23, 2024
b336cd4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 30, 2024
d15d92a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 7, 2024
b2b4fd0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 14, 2024
bf807e3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 21, 2024
8dc2684
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 28, 2024
98f7c38
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 4, 2025
6646fa5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 11, 2025
5f19cbc
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 18, 2025
ca9d51a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 25, 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