-
-
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(symbolication): Selection logic for low priority queue [NATIVE-211] #29258
Merged
Merged
Changes from 24 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
2a07723
First stab at decision logic
2a6f329
better typing
9c94019
fixup rates
3c39eff
hardcode recent time
d5e40fd
Make sure to set p75_duration only once
0753ffe
use a separate variable to track if this was set
11464fe
Tighter requirements
d22c382
Hack to avoid rare division by 0
7e8749b
mumble something about integer division under breath
8acca2d
some wip
bb3c30f
Apply suggestions from code review
5a5e719
wip tests
ba779fb
WIP tests
loewenheim d466249
Tests and fixes for durations computation
7654bb2
Add metrics for the internal computation
c709099
Do not describe exact algorithm, I'll just get out of date.
0ca445e
Remove some old unused code
43c6f2b
No prints in prod please
13ca31d
Merge branch 'master' into lpq/computation
5a2a1f1
Move rate calculations to the BucketedCounts
3c198ac
A few more test scenarios
b904a36
Moar special case tests
e2e6fb1
grammar police
d9bbaa5
remove unused todo
relaxolotl 941244c
More detailed reason for moving to lpq
adb7a23
More edge cases
ee467c4
Add __init__.py files to make tests a full package
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
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.
@loewenheim since you asked about tagged unions in python. I think generally you don't but duck-type instead. It seems with mypy this looks something like this. It was a little easier before mypy, the class attribute would have been simply
TOTAL_PERIOD = object()
and you get a singleton you can compare withis
. Apparently with mypy you need to do this kind of enum-with-one-variant thing.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 Rust-like tagged union would have been an arg of type:
in case you're lost why i bring this up here.