-
Notifications
You must be signed in to change notification settings - Fork 31
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] Add patching speed check #1148
Conversation
// @TODO: get these speed values from local checks of download/write speed | ||
const downloadSpeedInKBPerSecond = 25 * 1024 | ||
const extractionSpeedInKBPerSecond = 50 * 1024 |
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.
open to suggestions here. I'd suggest we leave for another future iteration though
// @TODO: get this value from local check of patching speed | ||
const patchingSpeedEstimateInKBPerSecond = 5 * 1024 |
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.
open to suggestions here as well. perhaps this could be the fallback value and we could attempt to get it from a LD flag?
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.
Maybe add an object with these amounts and we can import them from LD.
This way we can alter any of them to make the calculation more precise.
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.
This looks great, testing now!
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.
LGTM
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.
Summary
Throw if patching will take longer than the download.
Using rough estimate numbers to get some estimates.
Log with "Patching Too Slow" instead of "Patching Error" so metrics graphs don't see it as a failed event.
closes https://github.com/HyperPlay-Gaming/product-management/issues/755