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

feat(workflow_engine): Adding support for process_workflows in the IssuePlatform #81975

Merged
merged 24 commits into from
Dec 13, 2024

Conversation

saponifi3d
Copy link
Contributor

Description

  • This PR will add a new post process group for our test MetricIssue.
  • Adds a test_integration with two core tests;
    • For processing the data and creating issue occurrences (workflow_engine -> IssuePlatform)
    • Another for taking occurrences and invoking workflows (IssuePlatform -> workflow_engine.workflows)

@saponifi3d saponifi3d requested review from a team as code owners December 11, 2024 19:09
@saponifi3d saponifi3d requested a review from a team December 11, 2024 19:09
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 11, 2024
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 97.36842% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/tasks/post_process.py 88.88% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #81975   +/-   ##
=======================================
  Coverage   80.37%   80.37%           
=======================================
  Files        7275     7275           
  Lines      321394   321440   +46     
  Branches    20962    20962           
=======================================
+ Hits       258316   258355   +39     
- Misses      62667    62674    +7     
  Partials      411      411           

src/sentry/features/temporary.py Outdated Show resolved Hide resolved
src/sentry/incidents/grouptype.py Outdated Show resolved Hide resolved
src/sentry/incidents/grouptype.py Outdated Show resolved Hide resolved
src/sentry/incidents/grouptype.py Outdated Show resolved Hide resolved
src/sentry/incidents/grouptype.py Outdated Show resolved Hide resolved
src/sentry/incidents/grouptype.py Outdated Show resolved Hide resolved
src/sentry/workflow_engine/models/detector.py Outdated Show resolved Hide resolved
src/sentry/workflow_engine/models/detector.py Outdated Show resolved Hide resolved
Comment on lines 50 to +51
ERROR = "ErrorDetector"
METRIC_ALERT_FIRE = "metric_alert_fire"
Copy link
Member

Choose a reason for hiding this comment

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

What are these meant to map to? I feel like we should have a consistent format

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this maps to the grouptype's slug through the detector. Agree though, i'm thinking we should set these as types on the detector base class.

I was going to do that in a follow-up PR (we also need something similar for data_sources)

src/sentry/incidents/grouptype.py Outdated Show resolved Hide resolved
src/sentry/incidents/grouptype.py Outdated Show resolved Hide resolved
@saponifi3d saponifi3d disabled auto-merge December 13, 2024 22:02
@saponifi3d saponifi3d merged commit fcda2c8 into master Dec 13, 2024
49 checks passed
@saponifi3d saponifi3d deleted the jcallender/post_process_workflow_engine branch December 13, 2024 22:28
evanh pushed a commit that referenced this pull request Dec 17, 2024
…IssuePlatform (#81975)

## Description
- This PR will add a new post process group for our test `MetricIssue`.
- Adds a `test_integration` with two core tests;
- For processing the data and creating issue occurrences
(workflow_engine -> IssuePlatform)
- Another for taking occurrences and invoking workflows (IssuePlatform
-> workflow_engine.workflows)

---------

Co-authored-by: Snigdha Sharma <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Dec 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants