-
Notifications
You must be signed in to change notification settings - Fork 5
ci: This PR is to trigger periodic CI testing #8
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
Open
systemroller
wants to merge
81
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.
+64
−0
Open
Changes from all commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
0265d53
ci: This PR is to trigger periodic CI testing
github-actions[bot] 4c8a0c1
ci: This PR is to trigger periodic CI testing
github-actions[bot] f86be54
ci: This PR is to trigger periodic CI testing
github-actions[bot] 677881d
ci: This PR is to trigger periodic CI testing
github-actions[bot] 4e8f1df
ci: This PR is to trigger periodic CI testing
github-actions[bot] afc7d52
ci: This PR is to trigger periodic CI testing
github-actions[bot] 9516f57
ci: This PR is to trigger periodic CI testing
github-actions[bot] 8986b76
ci: This PR is to trigger periodic CI testing
github-actions[bot] 297885f
ci: This PR is to trigger periodic CI testing
github-actions[bot] e04f73c
ci: This PR is to trigger periodic CI testing
github-actions[bot] d2cd682
ci: This PR is to trigger periodic CI testing
github-actions[bot] 1e1f334
ci: This PR is to trigger periodic CI testing
github-actions[bot] a998fd0
ci: This PR is to trigger periodic CI testing
github-actions[bot] f5fa586
ci: This PR is to trigger periodic CI testing
github-actions[bot] c56a5a3
ci: This PR is to trigger periodic CI testing
github-actions[bot] 1314358
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2f559e8
ci: This PR is to trigger periodic CI testing
github-actions[bot] 0c2eb5d
ci: This PR is to trigger periodic CI testing
github-actions[bot] a1d475c
ci: This PR is to trigger periodic CI testing
github-actions[bot] b53a19b
ci: This PR is to trigger periodic CI testing
github-actions[bot] fc8f027
ci: This PR is to trigger periodic CI testing
github-actions[bot] b88e4dc
ci: This PR is to trigger periodic CI testing
github-actions[bot] 82e7cfb
ci: This PR is to trigger periodic CI testing
github-actions[bot] 048ab07
ci: This PR is to trigger periodic CI testing
github-actions[bot] e4b080a
ci: This PR is to trigger periodic CI testing
github-actions[bot] 82e0929
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2a202a1
ci: This PR is to trigger periodic CI testing
github-actions[bot] c89071e
ci: This PR is to trigger periodic CI testing
github-actions[bot] 4cd6d86
ci: This PR is to trigger periodic CI testing
github-actions[bot] 469d201
ci: This PR is to trigger periodic CI testing
github-actions[bot] 07df2c1
ci: This PR is to trigger periodic CI testing
github-actions[bot] 03f31f5
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2cf946b
ci: This PR is to trigger periodic CI testing
github-actions[bot] a26ec78
ci: This PR is to trigger periodic CI testing
github-actions[bot] 34b8aed
ci: This PR is to trigger periodic CI testing
github-actions[bot] e3a5388
ci: This PR is to trigger periodic CI testing
github-actions[bot] 11a6c36
ci: This PR is to trigger periodic CI testing
github-actions[bot] bb34981
ci: This PR is to trigger periodic CI testing
github-actions[bot] 3c820e8
ci: This PR is to trigger periodic CI testing
github-actions[bot] 4bd5e13
ci: This PR is to trigger periodic CI testing
github-actions[bot] 0ec4cbc
ci: This PR is to trigger periodic CI testing
github-actions[bot] c918b3a
ci: This PR is to trigger periodic CI testing
github-actions[bot] bd24dd0
ci: This PR is to trigger periodic CI testing
github-actions[bot] a9f9d27
ci: This PR is to trigger periodic CI testing
github-actions[bot] 3bfb511
ci: This PR is to trigger periodic CI testing
github-actions[bot] aea2af4
ci: This PR is to trigger periodic CI testing
github-actions[bot] 3310339
ci: This PR is to trigger periodic CI testing
github-actions[bot] e7db8b7
ci: This PR is to trigger periodic CI testing
github-actions[bot] 9241b64
ci: This PR is to trigger periodic CI testing
github-actions[bot] 27069a9
ci: This PR is to trigger periodic CI testing
github-actions[bot] 25074a7
ci: This PR is to trigger periodic CI testing
github-actions[bot] 8d053dc
ci: This PR is to trigger periodic CI testing
github-actions[bot] 7363ff4
ci: This PR is to trigger periodic CI testing
github-actions[bot] b07113e
ci: This PR is to trigger periodic CI testing
github-actions[bot] 40e3e5a
ci: This PR is to trigger periodic CI testing
github-actions[bot] 4d82c80
ci: This PR is to trigger periodic CI testing
github-actions[bot] ef9ecfa
ci: This PR is to trigger periodic CI testing
github-actions[bot] d4839af
ci: This PR is to trigger periodic CI testing
github-actions[bot] 3bad3a7
ci: This PR is to trigger periodic CI testing
github-actions[bot] 1002ac7
ci: This PR is to trigger periodic CI testing
github-actions[bot] 820ca7e
ci: This PR is to trigger periodic CI testing
github-actions[bot] a127bce
ci: This PR is to trigger periodic CI testing
github-actions[bot] 68522b7
ci: This PR is to trigger periodic CI testing
github-actions[bot] 9a666f0
ci: This PR is to trigger periodic CI testing
github-actions[bot] c99851a
ci: This PR is to trigger periodic CI testing
github-actions[bot] 43b630b
ci: This PR is to trigger periodic CI testing
github-actions[bot] 6829c90
ci: This PR is to trigger periodic CI testing
github-actions[bot] 01d8c44
ci: This PR is to trigger periodic CI testing
github-actions[bot] 496b7b2
ci: This PR is to trigger periodic CI testing
github-actions[bot] 23fb486
ci: This PR is to trigger periodic CI testing
github-actions[bot] 224fcfd
ci: This PR is to trigger periodic CI testing
github-actions[bot] cf18098
ci: This PR is to trigger periodic CI testing
github-actions[bot] ca4a805
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2576688
ci: This PR is to trigger periodic CI testing
github-actions[bot] ae49394
ci: This PR is to trigger periodic CI testing
github-actions[bot] 245017b
ci: This PR is to trigger periodic CI testing
github-actions[bot] 12e2ccf
ci: This PR is to trigger periodic CI testing
github-actions[bot] 8d926c0
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2380f66
ci: This PR is to trigger periodic CI testing
github-actions[bot] 5aa777f
ci: This PR is to trigger periodic CI testing
github-actions[bot] fe62c83
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