Merged
Conversation
Turns a test_skip into a test. This may have been passing since PR#23194 but never made a requirement. This change removes the single largest contribution to "total broken tests" in the whole test suite.
Member
|
Member
Author
|
Yeah, there seem to be a few edge cases left. Would could allow a small failure rate, or just close this. Thoughts? |
Member
|
Why is it failing only on some platforms? Is it not deterministic? |
Member
|
An example case I found: julia> (start, delta, stop) = -2.8345144f0, 0.9447948f0, -0.00012993813f0
(-2.8345144f0, 0.9447948f0, -0.00012993813f0)
julia> r = start:delta:stop
-2.8345144f0:0.9447948f0:-0.00013005733f0
julia> last(r) ≈ stop
falseThe problem here is that julia> start + 3*delta # intermediate values in Float32
-0.00012993813f0
julia> Float32(Float64(start) + 3*Float64(delta)) # intermediate values in higher precision
-0.00013005733f0This particular case uses the fallback branch, since the rational part fails: julia> num, den = Base.rat(delta)
(599, 634)
julia> Float32(num/den)
0.94479495f0The question here is what criteria we should use for determining The fix for now is to adjust the tolerance. |
simonbyrne
reviewed
Jan 31, 2023
oscardssmith
approved these changes
Jan 31, 2023
Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
Member
Author
|
LGTM, thanks @simonbyrne |
Member
|
Seen on CI: |
simonbyrne
added a commit
that referenced
this pull request
Feb 6, 2023
Follow up on #48465. Addresses CI failure noted here #48465 (comment).
simonbyrne
added a commit
that referenced
this pull request
Feb 9, 2023
* Fix bounds on floating point range testing Follow up on #48465. Addresses CI failure noted here #48465 (comment). * Use simpler error bound
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Turns a
@test_skipinto a@test. This may have been passing since #23194 but was never turned into a requirement. This change removes the single largest contribution to "total broken tests" in the whole test suite.