Skip to content

feat(workflow_engine): Evaluate issue activities without a preferred detector - #132446

Draft
shashjar wants to merge 3 commits into
shashjar/stack/iswf-3714-activity-basefrom
shashjar/feat/iswf-3714-activity-evaluation
Draft

shashjar wants to merge 3 commits into
shashjar/stack/iswf-3714-activity-basefrom
shashjar/feat/iswf-3714-activity-evaluation

Conversation

@shashjar

Copy link
Copy Markdown
Member

An issue Activity can now select its organization's enabled Inbox workflows when the preferred issue detector is missing. The worker checks that the persisted Activity belongs to the supplied group. When organization selection finds candidates it can use the internal activity detector for evaluation and carry the selected ID into the action task. Detector-linked candidates still come from the normal issue detector lookup.

Review against the integration base combining #132399, #132443, and #132444. Retarget to master after those dependencies land. This change accepts the new task shape before producers start sending it.

Refs https://linear.app/getsentry/issue/ISWF-3714.

@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown

ISWF-3714

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 24, 2026
@sentry

sentry Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Sentry Snapshot Testing

Name Added Removed Changed Renamed Unchanged Skipped Status
sentry-frontend
sentry-frontend
- - - - - - ✅ 1084 uploaded

Base commit fd53a1ea6a744be8ec81c575c349f2164a0c5df6 did not produce snapshots to compare against. Did its snapshot job fail? Try rebasing this branch on a commit with a successful snapshot job.

⚙️ sentry-frontend Snapshot Settings

@github-actions

Copy link
Copy Markdown
Contributor

Backend Test Failures

Failures on e51f45b in this run:

tests/sentry/seer/agent/test_service_map_utils.py::TestClassifyServiceRolesIntegration::test_peripheral_classification — log
[gw2] linux -- Python 3.13.18 /home/runner/work/sentry/sentry/.venv/bin/python3
tests/sentry/seer/agent/test_service_map_utils.py:987: in test_peripheral_classification
    project_a = self.create_project(organization=self.organization, slug="svc-a")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/sentry/testutils/cases.py:1112: in create_project
    return super().create_project(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/sentry/testutils/fixtures.py:406: in create_project
    return Factories.create_project(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.13.18/arm64/lib/python3.13/contextlib.py:85: in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
src/sentry/testutils/factories.py:814: in create_project
    project = Project.objects.create(organization=organization, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/sentry/silo/base.py:157: in override
    return original_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/django/db/models/manager.py:87: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/sentry/silo/base.py:157: in override
    return original_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/django/db/models/query.py:665: in create
    obj.save(force_insert=True, using=self.db)
src/sentry/silo/base.py:157: in override
    return original_method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/sentry/models/project.py:423: in save
    self._save_project(save_callback)
src/sentry/models/project.py:412: in _save_project
    save_with_snowflake_id(
src/sentry/utils/snowflake.py:64: in save_with_snowflake_id
    raise MaxSnowflakeRetryError
E   sentry.utils.snowflake.MaxSnowflakeRetryError: Max allowed ID retry reached. Please try again in a second

@shashjar
shashjar added this pull request to stack #132449 November 24, 2026 22:11

This branch has not been deployed

No deployments
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.

1 participant