Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

omap notification subscription #579

wants to merge 3 commits into from

Conversation

JenySadadia
Copy link
Collaborator

Enable automated test report for omap tree.

Jeny Sadadia added 3 commits September 18, 2024 16:19
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]>
Copy link
Collaborator

@spbnick spbnick left a 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
Copy link
Collaborator

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}
Copy link
Collaborator

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}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants