Skip to content

feat(workflow-engine): Implement Seer Activity handler#116410

Merged
leeandher merged 4 commits into
masterfrom
leanderrodrigues/iswf-2726-implement-seer-activity-handler
May 28, 2026
Merged

feat(workflow-engine): Implement Seer Activity handler#116410
leeandher merged 4 commits into
masterfrom
leanderrodrigues/iswf-2726-implement-seer-activity-handler

Conversation

@leeandher
Copy link
Copy Markdown
Member

This will trigger the process_workflow_activity for relevant Seer activities, noop for unrelated activities or organizations missing the necessary flag.

The rest of the workflow engine will consume the activity just fine, but we're still lacking the data condition to set up alerts and the fixes on actions to support firing properly, (M2 and M3 respectively)

In practice an organization would need two flags, one for this workflow processor, one that permits creating seer activities in the first place.

leeandher and others added 2 commits May 28, 2026 13:39
Implement the seer_activity_handler that dispatches seer-related
group activities to the process_workflow_activity task. The handler
validates the activity type against a supported list, checks a feature
flag, resolves the issue stream detector for the project, and enqueues
the task for async processing.

Co-Authored-By: Claude Opus 4 <noreply@example.com>
@leeandher leeandher requested review from a team as code owners May 28, 2026 18:03
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 28, 2026

ISWF-2726

@leeandher leeandher requested a review from Christinarlong May 28, 2026 18:03
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 28, 2026
Comment thread src/sentry/workflow_engine/handlers/workflow/workflow_activity_handlers.py Outdated
Comment thread src/sentry/workflow_engine/handlers/workflow/workflow_activity_handlers.py Outdated
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ba4cef0. Configure here.

Copy link
Copy Markdown
Contributor

@Christinarlong Christinarlong left a comment

Choose a reason for hiding this comment

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

left some impr comments but looks good overall

Comment thread src/sentry/workflow_engine/handlers/workflow/workflow_activity_handlers.py Outdated
Comment thread src/sentry/workflow_engine/handlers/workflow/workflow_activity_handlers.py Outdated
Comment thread tests/sentry/seer/entrypoints/test_operator.py Outdated
Comment thread src/sentry/workflow_engine/handlers/workflow/workflow_activity_handlers.py Outdated
@leeandher leeandher merged commit d758737 into master May 28, 2026
65 checks passed
@leeandher leeandher deleted the leanderrodrigues/iswf-2726-implement-seer-activity-handler branch May 28, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants