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 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
edbe657
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 8, 2023
5666a4f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 9, 2023
cccbfaa
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 15, 2023
ff96ce5
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 22, 2023
579dd25
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 29, 2023
1de8e7e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 5, 2023
22c0a8a
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 12, 2023
a850ec2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 19, 2023
7a03fc8
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 26, 2023
833ce12
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 3, 2023
3087f1f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 10, 2023
3f9a7a4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 17, 2023
dc0a88e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 24, 2023
8d9dcc3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 31, 2023
5a7a6e3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 7, 2024
e04fa2b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 14, 2024
d4c5bd7
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 21, 2024
52d06ab
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 28, 2024
09ca42e
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 4, 2024
5edf613
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 11, 2024
32cac1f
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 18, 2024
a492de7
ci: This PR is to trigger periodic CI testing
github-actions[bot] Feb 25, 2024
63c6d36
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 3, 2024
149d396
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 10, 2024
698b805
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 17, 2024
7216fb9
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 24, 2024
0796f13
ci: This PR is to trigger periodic CI testing
github-actions[bot] Mar 31, 2024
837c9bd
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 7, 2024
99f7407
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 14, 2024
d9ba905
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 21, 2024
5dd57da
ci: This PR is to trigger periodic CI testing
github-actions[bot] Apr 28, 2024
549f092
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 5, 2024
a8c4f55
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 12, 2024
de1e2cd
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 19, 2024
4cdb656
ci: This PR is to trigger periodic CI testing
github-actions[bot] May 26, 2024
294cb64
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 2, 2024
466066c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 9, 2024
0c57148
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 16, 2024
5dda9de
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 23, 2024
d9f4a21
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jun 30, 2024
e1620ff
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 7, 2024
5fbe51c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 14, 2024
b930d11
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 21, 2024
e72f0ab
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jul 28, 2024
bf0a941
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 4, 2024
4b2c765
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 11, 2024
70bc353
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 18, 2024
fe9cca6
ci: This PR is to trigger periodic CI testing
github-actions[bot] Aug 25, 2024
2cfedc3
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 1, 2024
10b981b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 8, 2024
d3bae34
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 15, 2024
1d934bf
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 22, 2024
9c8ba1c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Sep 29, 2024
4e74b32
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 6, 2024
6905879
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 13, 2024
5b293cd
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 20, 2024
3b40d36
ci: This PR is to trigger periodic CI testing
github-actions[bot] Oct 27, 2024
88cd643
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 3, 2024
a9ffcd4
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 10, 2024
6a7bfbe
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 17, 2024
1289a2b
ci: This PR is to trigger periodic CI testing
github-actions[bot] Nov 24, 2024
36fbba2
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 1, 2024
a0cadfa
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 8, 2024
24946ba
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 15, 2024
8d7e5a1
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 22, 2024
9456285
ci: This PR is to trigger periodic CI testing
github-actions[bot] Dec 29, 2024
e11bba7
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 5, 2025
9106b8c
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 12, 2025
d632aa0
ci: This PR is to trigger periodic CI testing
github-actions[bot] Jan 19, 2025
355ebf2
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