-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Anomaly Detection: Unit and Integration Tests #1146
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aayush-se
changed the title
Anomaly detection/unit tests
Anomaly Detection: Unit and Integration Tests
Sep 10, 2024
ram-senth
reviewed
Sep 10, 2024
tests/seer/anomaly_detection/detectors/test_anomaly_detectors.py
Outdated
Show resolved
Hide resolved
tests/seer/anomaly_detection/detectors/test_anomaly_detectors.py
Outdated
Show resolved
Hide resolved
tests/seer/anomaly_detection/detectors/test_anomaly_detectors.py
Outdated
Show resolved
Hide resolved
corps
reviewed
Sep 10, 2024
) | ||
|
||
# Successful | ||
self.assertEqual( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert response == X
👋 Hi there! This PR was automatically generated by Autofix 🤖 This fix was triggered by Jenn Mueng Fixes [SEER-9R](https://sentry.io/organizations/sentry/issues/5734622145/) This change updates the `ThreadDetails` model in the `src/seer/automation/models.py` file. Specifically, it modifies the `id` field to be optional by setting its default value to `None`. Additionally, a blank line has been added before the class definition for better readability. If you have any questions or feedback for the Sentry team about this fix, please email [autofix@sentry.io](mailto:autofix@sentry.io) with the Run ID (see below). ### 🤓 Stats for the nerds: Run ID: **738** Prompt tokens: **97008** Completion tokens: **5084** Total tokens: **102092** --------- Co-authored-by: sentry-autofix-experimental[bot] <157164994+sentry-autofix-experimental[bot]@users.noreply.github.com> Co-authored-by: jenn.muengtaweepongsa <jenn.muengtaweepongsa@sentry.io>
…ion errors (#1111) Some issues don't have all the breadcrumbs fields, so we make them optional now.
Mainly for the staging deployment in `ml-ai` Introduces an `ENFORCE_API_AUTH` env variable that will enforce either the rpc secret signing or the bearer token.
…stead of response (#1108) This PR includes: 1. Changing the issue summary storage logic to store the raw output `IssueSummary` from GPT, rather than the trimmed `SummarizeIssueResponse` as before. The extra info, such as `reason_step_by_step` is useful. 2. Pass the issue summary to Autofix as additional context. (part of #998) Remove pre-processing step on event details as well. Improvement in evals: 0.48/0.52 -> 0.51/0.55 3. Allow optional issue summary in `AutofixRequest` to support new eval dataset
#1112) The job to delete old Autofix runs failed when there was a PR mapped to it. This PR adds a cascade delete so that it works. https://sentry.sentry.io/issues/5764875740/?project=6178942&query=is:unresolved%20issue.priority:%5Bhigh,%20medium%5D&statsPeriod=14d&stream_index=4 It also adds on to the job to delete old Issue Summaries for the TTL. Issue #1116
This reverts commit 4cb53fd.
Need to clean up existing test data before applying db migration to fix [SEER-A9](https://sentry.sentry.io/issues/5797165799)
- Set up upper bound to avoid `window_size` overflow when hitting `_score()` (upper limit is np.integer max size which is 2**63 - 1) - Write basic unit tests to confirm functionality
Switches coding agent to Claude (#951) Evals: 0.51/0.55 -> 0.54/0.61 (huge bump!) Note: don't deploy this until Sept 5, 2024
This reverts commit 365fcd5.
Reverted changes -- improperly merged from main. Will updated changes from comments again. |
This reverts commit 774ffc7.
ram-senth
approved these changes
Sep 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Generated Synthetic timeseries (cyclical, cyclical with anomaly, noisy, noisy with anomaly) to use for unit and integration tests
data-analysis
GitHub repoWrote unit tests for the following modules in anomaly_detection:
anomaly_detectors.py
mp_config.py
mp_scorers.py
mp_utils.py
normalizers.py
window_size_selctors.py
converters.py
timeseries_anomalies.py
timeseries.py
Wrote integration tests for the
store
anddetect
endpoints for batch, stream, and combo pipelinesNOTE: Wanted to submit this PR to start getting some feedback as there are a lot of changes. As of submitting this PR, the following unit/integration tests do not work and I wanted to get some feedback:
test_detect_anomalies_online
intest_anomaly_detection.py
: Was unsure how to handle database changes during integration testtest_detect
intest_anomaly_detectors.py
: was running into shape errors with the matrix profiletest_incorrect_padding
intest_mp_utils.py
: this one is fixed as of this PR so needs to be merged into main to reflect changes