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
Upgrade arb to 2.15.1 #26360
Comments
comment:1
It would be nice to have some hook for doctests so that balls by default are compared in terms of overlapping and that the radii are the same within a factor 10, say. |
Replying to @timokau:
I'm okay with it, but I'd like to see what Jeroen says since he insisted for exact doctests back then.
Is that really necessary? If you use absolute tolerances, having the same tolerance for the center and the radius isn't too bad. Something like what Fredrik suggests would be better, of course. Since arb provides a way to parse strings of the form |
comment:4
Replying to @mezzarobba:
Jeroen, do you still insist on exact doctests here? |
comment:5
That might also a (while not pretty) workable solution.
Is the doctesting framework even that flexible? |
comment:6
Replying to @timokau:
I don't recall why I originally insisted on that. So go ahead. |
comment:7
Replying to @mezzarobba:
I'm not convinced that we need to patch the doctest framework for that. |
comment:8
I can't really do much about the remaining failures, since I lack the subject knowledge to decide weather or not they are real errors:
|
comment:9
That's a genuine regression in Arb 2.15. I have not tried to debug it, but quite likely the original code was buggy and only worked by accident -- it works if you add CBF("+/- 1e-10") to pi/2. |
comment:10
So should we just do that in the doctests? |
comment:11
This commit should provide a bugfix: flintlib/arb@eb60d7a The other failure ("unsupported string format") is due to too greedy search & replace to insert ... |
comment:12
Do you plan to make a release with that fix included anytime soon? |
comment:13
Done. https://github.com/fredrik-johansson/arb/archive/2.15.1.tar.gz |
comment:14
Thank you! Could you expand on what you mean by "due to too greedy search & replace to insert"? As far as I can see it is caused by |
comment:15
There is "..." in the input string which shouldn't have been inserted there in place of the numerical value. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:17
Oh, stupid mistake. Thanks. Doctests pass now. |
This comment has been minimized.
This comment has been minimized.
comment:18
I think rather than so many |
comment:19
I wouldn't know how to do that. |
comment:20
I mean, I would, but I don't know exactly what it is you need in this case. |
comment:21
Replying to @timokau:
Did you ever try this? I don't really see it as "pretty" or not "pretty". An |
comment:22
Replying to @embray:
We'd need to use proper comparison methods instead of just comparing the digits. Something like what Fredrik said. Replying to @embray:
No I haven't. It would require either a lot of manual adding of |
comment:23
I'll give it a try and see. I'm pretty good at ridiculous regular expressions :) |
comment:24
I suggest merging this as-is. The doctest improvement would be nice to have but it's not worth delaying the upgrade over it. |
comment:25
@fredrik-johansson was that a review? I'm guessing @embray has different priorities right now, would be nice to get this into the next release. |
comment:26
It's true I have different priorities. I'm pretty sad about this doctest issue but not enough to do anything about it right now so I don't think this should be held up over it. I'll open a ticket though. |
comment:27
See #26774 with an idea for a generalized solution. |
comment:28
#26774 would be really nice. In addition to arb I'm sure there are a lot of other areas where the doctests could be improved. That'll take a while however. Lets get this merged for now. |
Reviewer: Marc Mezzarobba |
Changed branch from u/gh-timokau/arb-2.15.0 to |
Arb 2.15.1 is out and the upgrade breaks a lot (~200) doctests with changes that are not actually failures. Nearly all the changes are minor differences in the accuracy of the radius. As previously discussed in #25966, I think we should fix this once and for all. The tests are brittle and break with more or less every arb upgrade. All those "failures" distract from the actual failures. It makes arb upgrades painful and is a burden on distributions.
I suspect the solution here (lots of
...
) will be controversial. I don't like it very much myself. But I think it is better than the status quo. What we really want are different tolerances for the "mid" and the "radius". I don't know if that is possible in the doctesting framework without explicitly testing for.mid()
and.radius()
in different tests each time. We may even want to test the.accuracy()
instead of the radius.Upstream tarball: https://github.com/fredrik-johansson/arb/archive/2.15.1.tar.gz
CC: @fredrik-johansson @embray @mezzarobba @jdemeyer @kiwifb
Component: packages: standard
Keywords: arb, upgrade
Author: Timo Kaufmann
Branch/Commit:
30cc778
Reviewer: Marc Mezzarobba
Issue created by migration from https://trac.sagemath.org/ticket/26360
The text was updated successfully, but these errors were encountered: