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

Fix Infinity exceptions in hot score calculator #3678

Merged
merged 2 commits into from
Sep 10, 2019
Merged

Conversation

javierm
Copy link
Member

@javierm javierm commented Aug 20, 2019

References

Objectives

Fix a rare case we've found on some Travis builds where the system time suddenly moved back to the past a couple of tenths of a second, meaning Time.current - resource.created_at returned a negative number, which lead to a division by zero.

spec/rails_helper.rb Outdated Show resolved Hide resolved
@javierm javierm changed the base branch from master to capybara_webmock September 5, 2019 18:41
@javierm javierm force-pushed the capybara_webmock branch 4 times, most recently from a784261 to 8bb5462 Compare September 7, 2019 11:23
@javierm javierm changed the base branch from capybara_webmock to master September 10, 2019 13:05
There was a rare case we've found on some Travis builds where the system
time suddenly moved back to the past a couple of tenths of a second,
meaning `Time.current - resource.created_at` returned a negative number,
which lead to a division by zero.
@javierm
Copy link
Member Author

javierm commented Sep 10, 2019

Travis failure is not related to this pull request.

@javierm javierm merged commit 48b1287 into master Sep 10, 2019
@javierm javierm added this to Release 1.1.0 in Roadmap Sep 10, 2019
@javierm javierm deleted the fix_nan_score branch September 10, 2019 15:53
smarques pushed a commit to venetochevogliamo/consul that referenced this pull request Apr 29, 2020
Fix Infinity exceptions in hot score calculator
@javierm javierm added Flaky bug and removed Specs labels Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Roadmap
  
Release 1.1.0
Development

Successfully merging this pull request may close these issues.

Flaky specs in score calculator: FloatDomainError: NaN
2 participants