-
Notifications
You must be signed in to change notification settings - Fork 60
[WIP] Run custom tests as soon as relevant scratch build is available #3141
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鈥檒l 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 | ||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1444,6 +1444,18 @@ def parse_koji_task_event(event) -> Optional[koji.result.Task]: | |||||||||||||||||||||||||||||||||||||||||||||||
| start_time = nested_get(event, "info", "start_time") | ||||||||||||||||||||||||||||||||||||||||||||||||
| completion_time = nested_get(event, "info", "completion_time") | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| # Check if it is an early update to an archbuild | ||||||||||||||||||||||||||||||||||||||||||||||||
| if nested_get(event, "info", "method") == "buildArch": | ||||||||||||||||||||||||||||||||||||||||||||||||
| parent = nested_get(event, "info", "parent") | ||||||||||||||||||||||||||||||||||||||||||||||||
| return koji.result.Task( | ||||||||||||||||||||||||||||||||||||||||||||||||
| parent=parent, | ||||||||||||||||||||||||||||||||||||||||||||||||
| task_id=task_id, | ||||||||||||||||||||||||||||||||||||||||||||||||
| state=state_enum, | ||||||||||||||||||||||||||||||||||||||||||||||||
| old_state=old_state, | ||||||||||||||||||||||||||||||||||||||||||||||||
| start_time=start_time, | ||||||||||||||||||||||||||||||||||||||||||||||||
| completion_time=completion_time, | ||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1448
to
+1457
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. To support reacting early to
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
| rpm_build_task_ids = {} | ||||||||||||||||||||||||||||||||||||||||||||||||
| rpm_build_failed_arch_list: list[str] = [] | ||||||||||||||||||||||||||||||||||||||||||||||||
| for children in nested_get(event, "info", "children", default=[]): | ||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
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.
The
parentparameter is added toTask.__init__, but it is currently missing fromTask.from_event_dict()(around line 225). When Celery deserializes the event on the worker side, theparentattribute will be lost and default toNone.\n\nPlease updateTask.from_event_dict()to deserializeparent:\n\npython\n@classmethod\ndef from_event_dict(cls, event: dict) -> \"Task\":\n return Task(\n task_id=event.get(\"task_id\"),\n state=KojiTaskState(event.get(\"state\")) if event.get(\"state\") else None,\n parent=event.get(\"parent\"),\n ...\n )\n