Skip to content

Move email notification from the listener to the agents - #6708

Open
evgenyrp wants to merge 8 commits into
mozilla:masterfrom
evgenyrp:email-action-6664
Open

Move email notification from the listener to the agents#6708
evgenyrp wants to merge 8 commits into
mozilla:masterfrom
evgenyrp:email-action-6664

Conversation

@evgenyrp

Copy link
Copy Markdown
Contributor
  • add a new action to runtime
  • update CI agents
  • tested them locally with sending emails and those look unchanged
  • remove now unneeded notificaitons and polling from the listener (1st step before migrating to Treeherder)

fixes #6664
fixes #6269

@evgenyrp
evgenyrp requested a review from a team as a code owner August 24, 2026 22:18
Comment thread docs/hackbot/actions.md Outdated
Comment thread docs/hackbot/deployment.md
Comment thread libs/hackbot-runtime/hackbot_runtime/actions/handlers/email_handler.py Outdated
Comment thread libs/hackbot-runtime/hackbot_runtime/changes.py Outdated
Comment thread libs/hackbot-runtime/hackbot_runtime/context.py Outdated
MAX_PATCH_LINES = 400


def record_email(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need a function where it can be passed as a agent tool?

self.uploader, self.run_artifacts_dir, key, payload
)

def _collect_changes(self) -> changes.ChangeSet | None:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The caching here could be a bit tricky. If source_patch() gets called early in the process for any reason, this will not reflect the final tree changes.

What if we ready patch at send time in the handler from the GCS, similar to what we do with submit to Phab? Then we do not need to keep two copies of the same patch.

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.

Migrate email notification from the pulse listener to a runtime action Add support for email notifications

2 participants