-
Notifications
You must be signed in to change notification settings - Fork 59
Add fedora ci checks using the shared repo #2990
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1510,6 +1510,24 @@ def _payload_rpmlint(self, distro: str, compose: str) -> dict: | |
| } | ||
| return payload | ||
|
|
||
| # TODO: this placeholder would no longer be needed if all the other tests | ||
| # are defined in it. It requires splitting the check status for each plan | ||
| # and restarting individual plans (either from this shared or custom) | ||
| @implements_fedora_ci_test("shared") | ||
| def _payload_shared(self, distro: str, compose: str) -> dict: | ||
| git_repo = "https://forge.fedoraproject.org/ci/shared-tests" | ||
| git_ref = "main" | ||
|
Comment on lines
+1518
to
+1519
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| # The shared plans will define their own provision steps, requiring | ||
| # compose to be turned off. | ||
| payload = self._get_tf_base_payload(distro, None) | ||
| payload["test"] = { | ||
| "tmt": { | ||
| "url": git_repo, | ||
| "ref": git_ref, | ||
| }, | ||
| } | ||
| return payload | ||
|
Comment on lines
+1517
to
+1529
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The newly added method Repository Style Guide: lines 378, 410 References
|
||
|
|
||
| @staticmethod | ||
| def is_fmf_configured(project: GitProject, metadata: EventData) -> bool: | ||
| try: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This TODO comment indicates a future refactoring or improvement. It's good to acknowledge, but for better tracking and to keep the codebase clean, consider creating a dedicated issue in your issue tracker for this task. This ensures the work is formally tracked and doesn't get lost as the codebase evolves.