-
Notifications
You must be signed in to change notification settings - Fork 112
ci: This PR is to trigger periodic CI testing #722
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
Draft
systemroller
wants to merge
76
commits into
main
Choose a base branch
from
weekly-ci
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
baa3793
ci: This PR is to trigger periodic CI testing
github-actions[bot] a98a3d6
ci: This PR is to trigger periodic CI testing
github-actions[bot] a17e67d
ci: This PR is to trigger periodic CI testing
github-actions[bot] 6f27081
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2f461f9
ci: This PR is to trigger periodic CI testing
github-actions[bot] 0b66e14
ci: This PR is to trigger periodic CI testing
github-actions[bot] 53f8081
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2797ebb
ci: This PR is to trigger periodic CI testing
github-actions[bot] 00f9ded
ci: This PR is to trigger periodic CI testing
github-actions[bot] 02df7c3
ci: This PR is to trigger periodic CI testing
github-actions[bot] 92e0f2f
ci: This PR is to trigger periodic CI testing
github-actions[bot] e5f0ee2
ci: This PR is to trigger periodic CI testing
github-actions[bot] 55350fe
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2ed5ace
ci: This PR is to trigger periodic CI testing
github-actions[bot] aa47dd0
ci: This PR is to trigger periodic CI testing
github-actions[bot] d3e7fec
ci: This PR is to trigger periodic CI testing
github-actions[bot] 07a395e
ci: This PR is to trigger periodic CI testing
github-actions[bot] f281619
ci: This PR is to trigger periodic CI testing
github-actions[bot] 084b53a
ci: This PR is to trigger periodic CI testing
github-actions[bot] eeba799
ci: This PR is to trigger periodic CI testing
github-actions[bot] 0c5a49d
ci: This PR is to trigger periodic CI testing
github-actions[bot] a345e57
ci: This PR is to trigger periodic CI testing
github-actions[bot] 58d698d
ci: This PR is to trigger periodic CI testing
github-actions[bot] 4ffd51a
ci: This PR is to trigger periodic CI testing
github-actions[bot] f388484
ci: This PR is to trigger periodic CI testing
github-actions[bot] 751746b
ci: This PR is to trigger periodic CI testing
github-actions[bot] a9a1552
ci: This PR is to trigger periodic CI testing
github-actions[bot] 20d36a9
ci: This PR is to trigger periodic CI testing
github-actions[bot] 03c22f0
ci: This PR is to trigger periodic CI testing
github-actions[bot] 7fd8121
ci: This PR is to trigger periodic CI testing
github-actions[bot] 9f57b02
ci: This PR is to trigger periodic CI testing
github-actions[bot] e098a40
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2e5394a
ci: This PR is to trigger periodic CI testing
github-actions[bot] 0513076
ci: This PR is to trigger periodic CI testing
github-actions[bot] 1ba1a5f
ci: This PR is to trigger periodic CI testing
github-actions[bot] 445bb31
ci: This PR is to trigger periodic CI testing
github-actions[bot] 321c275
ci: This PR is to trigger periodic CI testing
github-actions[bot] 64129c5
ci: This PR is to trigger periodic CI testing
github-actions[bot] 579500e
ci: This PR is to trigger periodic CI testing
github-actions[bot] 7bfdd92
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2613cb2
ci: This PR is to trigger periodic CI testing
github-actions[bot] 3edf048
ci: This PR is to trigger periodic CI testing
github-actions[bot] 18851bd
ci: This PR is to trigger periodic CI testing
github-actions[bot] 54eedee
ci: This PR is to trigger periodic CI testing
github-actions[bot] 7a0a635
ci: This PR is to trigger periodic CI testing
github-actions[bot] 55064f1
ci: This PR is to trigger periodic CI testing
github-actions[bot] 09c8c33
ci: This PR is to trigger periodic CI testing
github-actions[bot] a43bd24
ci: This PR is to trigger periodic CI testing
github-actions[bot] 36b153f
ci: This PR is to trigger periodic CI testing
github-actions[bot] 49f2bf5
ci: This PR is to trigger periodic CI testing
github-actions[bot] 556ec1a
ci: This PR is to trigger periodic CI testing
github-actions[bot] 6266362
ci: This PR is to trigger periodic CI testing
github-actions[bot] f931240
ci: This PR is to trigger periodic CI testing
github-actions[bot] aab9773
ci: This PR is to trigger periodic CI testing
github-actions[bot] fc3b744
ci: This PR is to trigger periodic CI testing
github-actions[bot] 8c7a4cc
ci: This PR is to trigger periodic CI testing
github-actions[bot] 037be9a
ci: This PR is to trigger periodic CI testing
github-actions[bot] b44a8b9
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2df7831
ci: This PR is to trigger periodic CI testing
github-actions[bot] bb3adfe
ci: This PR is to trigger periodic CI testing
github-actions[bot] 53c68a6
ci: This PR is to trigger periodic CI testing
github-actions[bot] 3ea211b
ci: This PR is to trigger periodic CI testing
github-actions[bot] bdfb87b
ci: This PR is to trigger periodic CI testing
github-actions[bot] 70c5939
ci: This PR is to trigger periodic CI testing
github-actions[bot] ac0965e
ci: This PR is to trigger periodic CI testing
github-actions[bot] eda0835
ci: This PR is to trigger periodic CI testing
github-actions[bot] e0545d0
ci: This PR is to trigger periodic CI testing
github-actions[bot] d1410a8
ci: This PR is to trigger periodic CI testing
github-actions[bot] f56a02f
ci: This PR is to trigger periodic CI testing
github-actions[bot] 8a7a2a5
ci: This PR is to trigger periodic CI testing
github-actions[bot] 39bea6a
ci: This PR is to trigger periodic CI testing
github-actions[bot] 8e274e0
ci: This PR is to trigger periodic CI testing
github-actions[bot] 8c744cb
ci: This PR is to trigger periodic CI testing
github-actions[bot] 4da16e0
ci: This PR is to trigger periodic CI testing
github-actions[bot] 46dbf44
ci: This PR is to trigger periodic CI testing
github-actions[bot] cbe96ee
ci: This PR is to trigger periodic CI testing
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / CodeQL
Potentially uninitialized local variable