-
Notifications
You must be signed in to change notification settings - Fork 34
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
omap
notification subscription
#579
base: main
Are you sure you want to change the base?
Conversation
Add argument to provide context variables to `NotificationMessage` class. Use the context variable to generate email notification message in `Notification` class. Signed-off-by: Jeny Sadadia <[email protected]>
Provide `stable-rc` repo URL as context variable to `stable_rc_revision_description` template. It will enable us to re-use the same template to get revision description information for a different tree such as `omap`. Signed-off-by: Jeny Sadadia <[email protected]>
The report would contain build and boot failures. Signed-off-by: Jeny Sadadia <[email protected]>
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.
LGTM, just a couple nitpicks. Thank you!
@@ -31,12 +31,13 @@ | |||
LOGGER = logging.getLogger(__name__) | |||
|
|||
|
|||
class NotificationMessage: | |||
class NotificationMessage: # pylint: disable=too-many-instance-attributes |
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.
Could you put this above the class declaration? It will be easier to spot then, and will match the existing convention.
@@ -32,5 +32,6 @@ def match_revision(revision): | |||
"Shreeya Patel <[email protected]>"], | |||
body='{% include "stable_rc_revision_description.txt.j2" %}', | |||
cc=["KernelCI Results Staging <[email protected]>"], | |||
due=datetime.now(timezone.utc) + timedelta(hours=3) | |||
due=datetime.now(timezone.utc) + timedelta(hours=3), | |||
context={'repo_url': repo_url} |
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.
Could you name this main_repo_url
, or something like that, so it's clearer there are other repos, and it's not the only one?
"Helen Mae Koike Fornazier <[email protected]>"], | ||
body='{% include "stable_rc_revision_description.txt.j2" %}', | ||
due=datetime.now(timezone.utc) + timedelta(hours=3), | ||
context={'repo_url': repo_url} |
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.
Same here.
Enable automated test report for
omap
tree.