-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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(issue summary) Only show possible cause if confident and novel #84349
Merged
kddubey
merged 7 commits into
master
from
kddubey/issue-summary/thresholds-possible-cause-frontend
Jan 31, 2025
Merged
feat(issue summary) Only show possible cause if confident and novel #84349
kddubey
merged 7 commits into
master
from
kddubey/issue-summary/thresholds-possible-cause-frontend
Jan 31, 2025
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
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #84349 +/- ##
===========================================
+ Coverage 60.35% 87.62% +27.27%
===========================================
Files 9606 9601 -5
Lines 543349 543049 -300
Branches 21333 21275 -58
===========================================
+ Hits 327945 475860 +147915
+ Misses 215050 66836 -148214
+ Partials 354 353 -1 |
roaga
reviewed
Jan 30, 2025
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.
The code looks fine, but wanna add a test?
kddubey
commented
Jan 30, 2025
…ry/thresholds-possible-cause-frontend
no review notes, but this is awesome. great work |
roaga
approved these changes
Jan 31, 2025
19c3449
to
1fc50e7
Compare
andrewshie-sentry
pushed a commit
that referenced
this pull request
Feb 5, 2025
…84349) ## Background `possible_cause_confidence` increases when there's less speculation (which correlates w/ slightly more accurate causes) `possible_cause_novelty` increases when there's more novelty / less redundancy wrt `whats_wrong` thresholds led to 50% of possible causes getting dropped on our autofix sentry issues ([notebook here](https://github.com/getsentry/data-analysis/blob/main/autofix/issue_summary/issue_summary_confidence.ipynb)) ## Backend changes corresponding backend change to sentry: #84346 corresponding backend change to seer: getsentry/seer#1788 without the sentry backend change (there are no `data.scores`), default to current behavior: always show possible cause  with the change, only show it if both scores are greater than the threshold  (note: this example is actually considered novel and confident-enough. I hardcoded the threshold to test the behavior)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Background
possible_cause_confidence
increases when there's less speculation (which correlates w/ slightly more accurate causes)possible_cause_novelty
increases when there's more novelty / less redundancy wrtwhats_wrong
thresholds led to 50% of possible causes getting dropped on our autofix sentry issues (notebook here)
Backend changes
corresponding backend change to sentry: #84346
corresponding backend change to seer: getsentry/seer#1788
without the sentry backend change (there are no
data.scores
), default to current behavior: always show possible causewith the change, only show it if both scores are greater than the threshold
(note: this example is actually considered novel and confident-enough. I hardcoded the threshold to test the behavior)