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(anomaly detection): backend call for historical anomalies endpoint #77879

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mifu67
Copy link
Contributor

@mifu67 mifu67 commented Sep 20, 2024

Replace the dummy function with the real Seer call.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 20, 2024
Copy link

codecov bot commented Sep 20, 2024

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
21633 1 21632 205
View the top 1 failed tests by shortest run time
tests.sentry.api.endpoints.test_organization_events_anomalies.OrganizationEventsAnomaliesEndpointTest test_simple
Stack Traces | 4.77s run time
#x1B[1m#x1B[.../api/endpoints/test_organization_events_anomalies.py#x1B[0m:43: in test_simple
    assert resp.data == [
#x1B[1m#x1B[31mE   AssertionError: assert [] == [{'anomaly': ... 0.047910238}]#x1B[0m
#x1B[1m#x1B[31mE     #x1B[0m
#x1B[1m#x1B[31mE     Right contains 2 more items, first extra item: {'anomaly': {'anomaly_score': -0.38810767243044786, 'anomaly_type': 'none'}, 'timestamp': 169, 'value': 0.048480431}#x1B[0m
#x1B[1m#x1B[31mE     #x1B[0m
#x1B[1m#x1B[31mE     Full diff:#x1B[0m
#x1B[1m#x1B[31mE     + []#x1B[0m
#x1B[1m#x1B[31mE     - [#x1B[0m
#x1B[1m#x1B[31mE     -     {#x1B[0m
#x1B[1m#x1B[31mE     -         'anomaly': {#x1B[0m
#x1B[1m#x1B[31mE     -             'anomaly_score': -0.38810767243044786,#x1B[0m
#x1B[1m#x1B[31mE     -             'anomaly_type': 'none',#x1B[0m
#x1B[1m#x1B[31mE     -         },#x1B[0m
#x1B[1m#x1B[31mE     -         'timestamp': 169,#x1B[0m
#x1B[1m#x1B[31mE     -         'value': 0.048480431,#x1B[0m
#x1B[1m#x1B[31mE     -     },#x1B[0m
#x1B[1m#x1B[31mE     -     {#x1B[0m
#x1B[1m#x1B[31mE     -         'anomaly': {#x1B[0m
#x1B[1m#x1B[31mE     -             'anomaly_score': -0.3890542800124323,#x1B[0m
#x1B[1m#x1B[31mE     -             'anomaly_type': 'none',#x1B[0m
#x1B[1m#x1B[31mE     -         },#x1B[0m
#x1B[1m#x1B[31mE     -         'timestamp': 170,#x1B[0m
#x1B[1m#x1B[31mE     -         'value': 0.047910238,#x1B[0m
#x1B[1m#x1B[31mE     -     },#x1B[0m
#x1B[1m#x1B[31mE     - ]#x1B[0m

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

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