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

Try at fixing FloatDomainError more closely restoring origin version #564

Merged
merged 5 commits into from
Mar 18, 2017

Conversation

PragTob
Copy link
Collaborator

@PragTob PragTob commented Mar 17, 2017

  • Fixes NaN FloatDomainError after upgrading to 0.14.0 #563 hopefully
  • tracked the bug back to hopefully b35f569 (only thing
    that touched the caller of the method, but maybe there is some
    other interaction ongoing)
  • Guess is/was that this might trigger if there aren't any lines
    covered... obviously test cases still missing to up our
    coverage here :)

* Fixes #563 hopefully
* tracked the bug back to hopefully b35f569 (only thing
  that touched the caller of the method, but maybe there is some
  other interaction ongoing)
* Guess is/was that this might trigger if there aren't any lines
  covered... obviously test cases still missing to up our
  coverage here :)
@PragTob
Copy link
Collaborator Author

PragTob commented Mar 17, 2017

@stevehanson @chief if either one (or both if one already succeeded) could check this branch out to give me feedback if this fixes the problem otherwise I have to dig deeper, adjust. Thanks in advance :)

@bf4
Copy link
Collaborator

bf4 commented Mar 17, 2017

@PragTob LGTM

@stevehanson
Copy link

@PragTob worked for me, too 👍

@PragTob
Copy link
Collaborator Author

PragTob commented Mar 17, 2017

Thanks for checking it out and trying it out @bf4 @stevehanson 💚

This also takes the previous no_lines? case as if there are no
lines or all the lines are never lines, then relevant_lines is
also 0.
@PragTob
Copy link
Collaborator Author

PragTob commented Mar 18, 2017

Heyho!

Wrote tests - imo the error came from files that were skipped as a whole.

With better understanding I also took a stab at simplifying the original fix in 05d877d (both pass the tests), if @stevehanson could have time for last test run that'd be great and I'd feel comfortable about releasing :)

@PragTob
Copy link
Collaborator Author

PragTob commented Mar 18, 2017

Ok, with more digging I'm confident now that I snatched up all those error cases (and even found a 3rd one) - which are all fixed by the latest fix :)

@stevehanson
Copy link

Hey, @PragTob. I just checked out this branch and all worked 😺 👍

@PragTob PragTob merged commit 7b12093 into master Mar 18, 2017
@PragTob PragTob deleted the fix-nan-float-domain-error-563 branch March 18, 2017 21:23
@PragTob
Copy link
Collaborator Author

PragTob commented Mar 18, 2017

Released thanks for testing @stevehanson 🎉

jsonn pushed a commit to jsonn/pkgsrc that referenced this pull request Mar 20, 2017
0.14.1 2017-03-18 ([changes](simplecov-ruby/simplecov@v0.14.0...v0.14.1))
========

## Bugfixes

* Files that were skipped as a whole/had no relevant coverage could lead to Float errors. See [#564](simplecov-ruby/simplecov#564) (thanks to @stevehanson for the report in [#563](simplecov-ruby/simplecov#563))

0.14.0 2017-03-15 ([changes](simplecov-ruby/simplecov@v0.13.0...v0.14.0))
==========

## Enhancements

* Officially support JRuby 9.1+ going forward (should also work with previous releases). See [#547](simplecov-ruby/simplecov#547) (ping @PragTob when encountering issues)
* Add Channel group to Rails profile, when `ActionCable` is loaded. See [#492](simplecov-ruby/simplecov#492) (thanks @BenMorganIO)
* Stop `extend`ing instances of `Array` and `Hash` during merging results avoiding problems frozen results while manually merging results. See [#558](simplecov-ruby/simplecov#558) (thanks @aroben)

## Bugfixes

* Fix parallel_tests when a thread ends up running no tests. See [#533](simplecov-ruby/simplecov#533) (thanks @cshaffer)
* Skip the `:nocov:` comments along with the code that they skip. See [#551](simplecov-ruby/simplecov#551) (thanks @ebiven)
* Fix crash when Home environment variable is unset. See [#482](simplecov-ruby/simplecov#482) (thanks @waldyr)
* Make track_files work again when explicitly setting it to nil. See [#463](simplecov-ruby/simplecov#463) (thanks @craiglittle)
* Do not overwrite .last_run.json file when refuse_coverage_drop option is enabled and the coverage has dropped (lead to you being able to just rerun tests and everything was _fine_). See [#553](simplecov-ruby/simplecov#553) (thanks @Miloshes)

0.13.0 2016-01-25 ([changes](simplecov-ruby/simplecov@v0.12.0...v0.13.0))
==========

## Enhancements

* Faster run times when a very large number of files is loaded into SimpleCov. See [#520](simplecov-ruby/simplecov#520) (thanks @alyssais)
* Only read in source code files that are actually used (faster when files are ignored etc.). See [#540](simplecov-ruby/simplecov#540) (tahks @yui-knk)

## Bugfixes

* Fix merging of resultsets if a file is missing on one side. See [#513](simplecov-ruby/simplecov#513) (thanks @hanazuki)
* Fix Ruby 2.4 deprecation warnings by using Integer instead of Fixnum. See [#523](simplecov-ruby/simplecov#523) (thanks @nobu)
* Force Ruby 2 to json 2. See [dc7417d50](simplecov-ruby/simplecov@dc7417d) (thanks @amatsuda)
* Various other gem dependency fixes for different gems on different ruby versions. (thanks @amatsuda)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants