-
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
74
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
Draft
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
e9d7bd7
ci: This PR is to trigger periodic CI testing
github-actions[bot] f187098
ci: This PR is to trigger periodic CI testing
github-actions[bot] d2e4fc8
ci: This PR is to trigger periodic CI testing
github-actions[bot] 250cb4c
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2417e56
ci: This PR is to trigger periodic CI testing
github-actions[bot] 5a47ae7
ci: This PR is to trigger periodic CI testing
github-actions[bot] ff29161
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2b839fe
ci: This PR is to trigger periodic CI testing
github-actions[bot] 1659d56
ci: This PR is to trigger periodic CI testing
github-actions[bot] 05790aa
ci: This PR is to trigger periodic CI testing
github-actions[bot] e13a985
ci: This PR is to trigger periodic CI testing
github-actions[bot] d36149b
ci: This PR is to trigger periodic CI testing
github-actions[bot] 8ee8125
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2fe414a
ci: This PR is to trigger periodic CI testing
github-actions[bot] 8b5264e
ci: This PR is to trigger periodic CI testing
github-actions[bot] bb53d64
ci: This PR is to trigger periodic CI testing
github-actions[bot] 29333b8
ci: This PR is to trigger periodic CI testing
github-actions[bot] 7948d1b
ci: This PR is to trigger periodic CI testing
github-actions[bot] 81bd258
ci: This PR is to trigger periodic CI testing
github-actions[bot] 804fbd1
ci: This PR is to trigger periodic CI testing
github-actions[bot] 74ca70e
ci: This PR is to trigger periodic CI testing
github-actions[bot] e71a236
ci: This PR is to trigger periodic CI testing
github-actions[bot] 01958ce
ci: This PR is to trigger periodic CI testing
github-actions[bot] d929d64
ci: This PR is to trigger periodic CI testing
github-actions[bot] 9e33b10
ci: This PR is to trigger periodic CI testing
github-actions[bot] a20b2d2
ci: This PR is to trigger periodic CI testing
github-actions[bot] 148c6de
ci: This PR is to trigger periodic CI testing
github-actions[bot] b963012
ci: This PR is to trigger periodic CI testing
github-actions[bot] d66d38f
ci: This PR is to trigger periodic CI testing
github-actions[bot] 8895f79
ci: This PR is to trigger periodic CI testing
github-actions[bot] 9e144ab
ci: This PR is to trigger periodic CI testing
github-actions[bot] 4c1dcb7
ci: This PR is to trigger periodic CI testing
github-actions[bot] c5e57a4
ci: This PR is to trigger periodic CI testing
github-actions[bot] ca83758
ci: This PR is to trigger periodic CI testing
github-actions[bot] b3b30a7
ci: This PR is to trigger periodic CI testing
github-actions[bot] 0801f40
ci: This PR is to trigger periodic CI testing
github-actions[bot] 921823c
ci: This PR is to trigger periodic CI testing
github-actions[bot] 9bf4877
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2a8ada9
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2988a4b
ci: This PR is to trigger periodic CI testing
github-actions[bot] a1596f0
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2100889
ci: This PR is to trigger periodic CI testing
github-actions[bot] dabb5b9
ci: This PR is to trigger periodic CI testing
github-actions[bot] a9150e6
ci: This PR is to trigger periodic CI testing
github-actions[bot] d9e7d46
ci: This PR is to trigger periodic CI testing
github-actions[bot] de8fec4
ci: This PR is to trigger periodic CI testing
github-actions[bot] da26d13
ci: This PR is to trigger periodic CI testing
github-actions[bot] bede983
ci: This PR is to trigger periodic CI testing
github-actions[bot] dfa3d5e
ci: This PR is to trigger periodic CI testing
github-actions[bot] 1ae9b0c
ci: This PR is to trigger periodic CI testing
github-actions[bot] 24c1dc0
ci: This PR is to trigger periodic CI testing
github-actions[bot] b9251f4
ci: This PR is to trigger periodic CI testing
github-actions[bot] 54cccad
ci: This PR is to trigger periodic CI testing
github-actions[bot] 14ea9e4
ci: This PR is to trigger periodic CI testing
github-actions[bot] d19afbb
ci: This PR is to trigger periodic CI testing
github-actions[bot] 3cd6a72
ci: This PR is to trigger periodic CI testing
github-actions[bot] f638029
ci: This PR is to trigger periodic CI testing
github-actions[bot] cae5464
ci: This PR is to trigger periodic CI testing
github-actions[bot] 6f5b5a2
ci: This PR is to trigger periodic CI testing
github-actions[bot] 8bafb09
ci: This PR is to trigger periodic CI testing
github-actions[bot] c80f169
ci: This PR is to trigger periodic CI testing
github-actions[bot] a0e5c06
ci: This PR is to trigger periodic CI testing
github-actions[bot] a9893dc
ci: This PR is to trigger periodic CI testing
github-actions[bot] d752076
ci: This PR is to trigger periodic CI testing
github-actions[bot] 71d18fa
ci: This PR is to trigger periodic CI testing
github-actions[bot] 076b3ed
ci: This PR is to trigger periodic CI testing
github-actions[bot] e0dc44d
ci: This PR is to trigger periodic CI testing
github-actions[bot] 2a3b5bb
ci: This PR is to trigger periodic CI testing
github-actions[bot] c713317
ci: This PR is to trigger periodic CI testing
github-actions[bot] 41ac45b
ci: This PR is to trigger periodic CI testing
github-actions[bot] d562a36
ci: This PR is to trigger periodic CI testing
github-actions[bot] 628bcae
ci: This PR is to trigger periodic CI testing
github-actions[bot] da65dd0
ci: This PR is to trigger periodic CI testing
github-actions[bot] 5a30209
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